فهرست منبع

Revert "Fix Button not listing `hover_pressed` stylebox"

This reverts commit cc11089786de6fc84a58f4b0af004997131b5b02.

(cherry picked from commit 62feeaab33d3e753790bc99b3d1a07b9a9c9661b)
Haoyu Qiu 1 ماه پیش
والد
کامیت
45e30e4438
2فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 3
      doc/classes/Button.xml
  2. 0 1
      scene/resources/default_theme/default_theme.cpp

+ 0 - 3
doc/classes/Button.xml

@@ -113,9 +113,6 @@
 		<theme_item name="hover" data_type="style" type="StyleBox">
 			[StyleBox] used when the [Button] is being hovered.
 		</theme_item>
-		<theme_item name="hover_pressed" data_type="style" type="StyleBox">
-			[StyleBox] used when the [Button] is being hovered and pressed.
-		</theme_item>
 		<theme_item name="normal" data_type="style" type="StyleBox">
 			Default [StyleBox] for the [Button].
 		</theme_item>

+ 0 - 1
scene/resources/default_theme/default_theme.cpp

@@ -230,7 +230,6 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
 	theme->set_stylebox("normal", "Button", sb_button_normal);
 	theme->set_stylebox("pressed", "Button", sb_button_pressed);
 	theme->set_stylebox("hover", "Button", sb_button_hover);
-	theme->set_stylebox("hover_pressed", "Button", sb_button_hover);
 	theme->set_stylebox("disabled", "Button", sb_button_disabled);
 	theme->set_stylebox("focus", "Button", sb_button_focus);