Fix remaining web study mode artifacts

This commit is contained in:
hz
2026-07-16 23:28:19 -05:00
parent ae283c2243
commit fd372532b5
3 changed files with 18 additions and 35 deletions
+10 -5
View File
@@ -193,6 +193,8 @@ func _build_ui() -> void:
theme_button.custom_minimum_size = Vector2(44, 44)
theme_button.size_flags_horizontal = Control.SIZE_SHRINK_CENTER
theme_button.size_flags_vertical = Control.SIZE_SHRINK_CENTER
theme_button.alignment = HORIZONTAL_ALIGNMENT_CENTER
theme_button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
theme_button.focus_mode = Control.FOCUS_NONE
theme_button.pressed.connect(theme_service.toggle_theme)
_style_shell_theme_button(theme_button)
@@ -600,16 +602,19 @@ func _style_shell_theme_button(button: Button) -> void:
normal.bg_color = Color("111b30") if dark else Brand.LIGHT_SURFACE
normal.border_color = Color("33415d") if dark else Brand.LIGHT_BORDER
normal.set_border_width_all(1)
normal.set_corner_radius_all(24)
normal.content_margin_left = 10
normal.content_margin_right = 10
normal.content_margin_top = 10
normal.content_margin_bottom = 10
normal.set_corner_radius_all(22)
normal.content_margin_left = 0
normal.content_margin_right = 0
normal.content_margin_top = 0
normal.content_margin_bottom = 0
var hover := normal.duplicate() as StyleBoxFlat
hover.border_color = Brand.AMBER
var focus := StyleBoxEmpty.new()
button.add_theme_stylebox_override("normal", normal)
button.add_theme_stylebox_override("hover", hover)
button.add_theme_stylebox_override("pressed", hover)
button.add_theme_stylebox_override("focus", focus)
button.add_theme_constant_override("h_separation", 0)
button.add_theme_color_override("font_color", Brand.AMBER)
button.add_theme_color_override("font_hover_color", Brand.AMBER)