From 45e30e4438134a8dd873ae5a10fdf5e079193088 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 19 Jun 2025 12:06:28 +0800 Subject: [PATCH] Revert "Fix Button not listing `hover_pressed` stylebox" This reverts commit cc11089786de6fc84a58f4b0af004997131b5b02. (cherry picked from commit 62feeaab33d3e753790bc99b3d1a07b9a9c9661b) --- doc/classes/Button.xml | 3 --- scene/resources/default_theme/default_theme.cpp | 1 - 2 files changed, 4 deletions(-) diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index 6ea73ca4075..a520fbbd0fb 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -113,9 +113,6 @@ [StyleBox] used when the [Button] is being hovered. - - [StyleBox] used when the [Button] is being hovered and pressed. - Default [StyleBox] for the [Button]. diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index bb94d2e22c5..375d711e4d5 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -230,7 +230,6 @@ void fill_default_theme(Ref &theme, const Ref &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);