@@ -1030,9 +1030,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
1030
1030
}
1031
1031
1032
1032
Ref<StyleBoxFlat> style_flat_button_pressed = style_widget_pressed->duplicate ();
1033
- Color flat_pressed_color = dark_color_1.lerp (accent_color, 0.2 ) * Color (0.8 , 0.8 , 0.8 , 0.85 );
1033
+ Color flat_pressed_color = dark_color_1.lightened ( 0.24 ). lerp (accent_color, 0.2 ) * Color (0.8 , 0.8 , 0.8 , 0.85 );
1034
1034
if (dark_theme) {
1035
- flat_pressed_color = dark_color_1.lerp (accent_color, 0.2 ) * Color (0.6 , 0.6 , 0.6 , 0.85 );
1035
+ flat_pressed_color = dark_color_1.lerp (accent_color, 0.12 ) * Color (0.6 , 0.6 , 0.6 , 0.85 );
1036
1036
}
1037
1037
style_flat_button_pressed->set_bg_color (flat_pressed_color);
1038
1038
@@ -1074,7 +1074,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
1074
1074
theme->set_color (" icon_normal_color" , " EditorLogFilterButton" , icon_disabled_color);
1075
1075
// When pressed, add a small bottom border to the buttons to better show their active state,
1076
1076
// similar to active tabs.
1077
- Ref<StyleBoxFlat> editor_log_button_pressed = style_widget_pressed->duplicate ();
1077
+
1078
+ Ref<StyleBoxFlat> editor_log_button_pressed = style_flat_button_pressed->duplicate ();
1078
1079
editor_log_button_pressed->set_border_width (SIDE_BOTTOM, 2 * EDSCALE);
1079
1080
editor_log_button_pressed->set_border_color (accent_color);
1080
1081
theme->set_stylebox (" pressed" , " EditorLogFilterButton" , editor_log_button_pressed);
0 commit comments