You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Merge pull request #97335 from SlienCode/master
Fix `font_hover_pressed_color` and `icon_hover_pressed_color` not working for no stylebox use on `Button`
This commit is contained in:
@@ -296,19 +296,12 @@ void Button::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case DRAW_HOVER_PRESSED: {
|
case DRAW_HOVER_PRESSED: {
|
||||||
// Edge case for CheckButton and CheckBox.
|
font_color = theme_cache.font_hover_pressed_color;
|
||||||
if (has_theme_stylebox("hover_pressed")) {
|
if (has_theme_color(SNAME("icon_hover_pressed_color"))) {
|
||||||
if (has_theme_color(SNAME("font_hover_pressed_color"))) {
|
icon_modulate_color = theme_cache.icon_hover_pressed_color;
|
||||||
font_color = theme_cache.font_hover_pressed_color;
|
|
||||||
}
|
|
||||||
if (has_theme_color(SNAME("icon_hover_pressed_color"))) {
|
|
||||||
icon_modulate_color = theme_cache.icon_hover_pressed_color;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
[[fallthrough]];
|
} break;
|
||||||
case DRAW_PRESSED: {
|
case DRAW_PRESSED: {
|
||||||
if (has_theme_color(SNAME("font_pressed_color"))) {
|
if (has_theme_color(SNAME("font_pressed_color"))) {
|
||||||
font_color = theme_cache.font_pressed_color;
|
font_color = theme_cache.font_pressed_color;
|
||||||
|
|||||||
Reference in New Issue
Block a user