From 2f90eab98aaec578bd35751304c24d4c7f6f690c Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Fri, 3 Oct 2025 09:04:03 +0400 Subject: [PATCH] Fix tab container contrast --- minimal_theme.tres | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/minimal_theme.tres b/minimal_theme.tres index 334a841..5cf94db 100644 --- a/minimal_theme.tres +++ b/minimal_theme.tres @@ -69,7 +69,7 @@ func _init() -> void: contrast = -0.4 # Surface colors - var color_surface_lowest : Color = _get_base_color(-1.3 if dark_theme else -2.2, 0.9) + var color_surface_lowest : Color = _get_base_color(-1.25 if dark_theme else -2.2, 0.9) var color_surface_lower : Color = _get_base_color(-0.85 if dark_theme else -1.8, 0.9) var color_surface_low : Color = _get_base_color(-0.55 if dark_theme else -0.9) var color_surface_base : Color = _get_base_color(-0.2) @@ -379,6 +379,14 @@ func _init() -> void: sb.set_content_margin_all(base_margin * scale) set_stylebox('label_bg', 'EditorSpinSlider', sb) + # EditorNode + + sb = base_sb.duplicate() + sb.set_content_margin_all(0) + sb.set_corner_radius_all(0) + sb.bg_color = color_surface_lowest + set_stylebox('Background', 'EditorStyles', sb) + # Viewport sb = base_sb.duplicate() @@ -850,13 +858,12 @@ func _init() -> void: sb.bg_color = color_surface_base set_stylebox('panel', 'TabContainerOdd', sb) - sb = empty_sb.duplicate() - _set_margin(sb, 0, 0, base_margin * 2, 0) - set_stylebox('tabbar_background', 'TabContainer', sb) - sb = base_sb.duplicate() sb.bg_color = color_surface_lowest - _set_margin(sb, 0, base_margin, base_margin * 2, 0) + sb.corner_radius_bottom_left = 0 + sb.corner_radius_bottom_right = 0 + _set_margin(sb, 0, base_margin * 0.25, base_margin, 0) + set_stylebox('tabbar_background', 'TabContainer', sb) set_stylebox('tabbar_background', 'TabContainerOdd', sb) # Tree