Skip to content

Commit 685fe1b

Browse files
committed
Revert "Fix Preferences tabs not highlighting when hovered on Fluent theme"
This reverts commit 7c3eca3.
1 parent 1ad24b3 commit 685fe1b

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

scripts/draw_window_preferences/draw_window_preferences.gml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,20 @@ function draw_window_preferences() {
126126
draw_set_color(c_black)
127127
if (fdark) draw_set_color(c_white)
128128
}
129-
if (c) {
130-
if (mouse_check_button(mb_left)) {
131-
// draw_sprite(spr_tabbuttons_f, 6 + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
132-
// draw_sprite_ext(spr_tabbuttons_f, 7 + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
133-
// draw_sprite(spr_tabbuttons_f, 8 + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
134-
if (fdark) {
135-
if (selected_tab = a) draw_set_color(10724259)
136-
else draw_set_color(11579568)
137-
} else {
138-
if (selected_tab = a) draw_set_color(10000536)
139-
else draw_set_color(7631988)
140-
}
141-
} else {
142-
// draw_sprite(spr_tabbuttons_f, 0 + 3 * c + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
143-
// draw_sprite_ext(spr_tabbuttons_f, 1 + 3 * c + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
144-
// draw_sprite(spr_tabbuttons_f, 2 + 3 * c + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
145-
if (fdark) draw_set_color(11579568)
146-
else draw_set_color(10000536)
147-
}
129+
if (mouse_check_button(mb_left) && c) {
130+
// draw_sprite(spr_tabbuttons_f, 6 + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
131+
// draw_sprite_ext(spr_tabbuttons_f, 7 + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
132+
// draw_sprite(spr_tabbuttons_f, 8 + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
133+
draw_set_color(7631988)
134+
if (fdark) draw_set_color(11579568)
135+
if (selected_tab = a) draw_set_color(10000536)
136+
if (selected_tab = a && fdark) draw_set_color(10724259)
137+
} else if (c) {
138+
// draw_sprite(spr_tabbuttons_f, 0 + 3 * c + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
139+
// draw_sprite_ext(spr_tabbuttons_f, 1 + 3 * c + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
140+
// draw_sprite(spr_tabbuttons_f, 2 + 3 * c + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
141+
if (selected_tab = a) draw_set_color(7631988)
142+
if (selected_tab = a && fdark) draw_set_color(11579568)
148143
}
149144
draw_text_dynamic(x1 + b + 6, y1 + 30 + 21 - 8, str[a])
150145
if (mouse_check_button_released(mb_left) && c) nsel = a

0 commit comments

Comments
 (0)