From 4530a7ea67d6b2cbf8e7ebca63675285acb9ef21 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Sun, 17 Nov 2024 02:54:58 +0400 Subject: [PATCH] Fix checkbox styles --- editor_theme.tres | 20 +++++++++++++++++++- editor_theme_high_ppi.tres | 20 +++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/editor_theme.tres b/editor_theme.tres index 80fb18a..488a0b4 100644 --- a/editor_theme.tres +++ b/editor_theme.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=69 format=3 uid="uid://bcibt73qths3v"] +[gd_resource type="Theme" load_steps=70 format=3 uid="uid://bcibt73qths3v"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_503jw"] content_margin_left = 0.0 @@ -215,6 +215,21 @@ corner_radius_top_right = 4 corner_radius_bottom_right = 4 corner_radius_bottom_left = 4 +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_twyxl"] +content_margin_left = 10.0 +content_margin_top = 5.0 +content_margin_right = 10.0 +content_margin_bottom = 5.0 +bg_color = Color(0.101569, 0.101569, 0.101569, 1) +draw_center = false +border_color = Color(0.0798039, 0.0798039, 0.0798039, 1) +corner_radius_top_left = 8 +corner_radius_top_right = 8 +corner_radius_bottom_right = 8 +corner_radius_bottom_left = 8 +corner_detail = 5 +anti_aliasing = false + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2305v"] content_margin_left = 4.0 content_margin_top = 4.0 @@ -853,6 +868,9 @@ Button/styles/normal = SubResource("StyleBoxFlat_ubyga") Button/styles/normal_mirrored = SubResource("StyleBoxFlat_ubyga") Button/styles/pressed = SubResource("StyleBoxFlat_dpijl") Button/styles/pressed_mirrored = SubResource("StyleBoxFlat_dpijl") +CheckBox/colors/font_hover_pressed_color = Color(1, 1, 1, 1) +CheckBox/colors/font_pressed_color = Color(1, 1, 1, 0.705882) +CheckBox/styles/normal = SubResource("StyleBoxFlat_twyxl") Editor/colors/background = Color(0.1, 0.1, 0.1, 1) Editor/colors/box_selection_fill_color = Color(1, 1, 1, 0.117647) Editor/colors/box_selection_stroke_color = Color(1, 1, 1, 0.352941) diff --git a/editor_theme_high_ppi.tres b/editor_theme_high_ppi.tres index af722b8..155d187 100644 --- a/editor_theme_high_ppi.tres +++ b/editor_theme_high_ppi.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=69 format=3 uid="uid://bcibt73qths3v"] +[gd_resource type="Theme" load_steps=70 format=3 uid="uid://bcibt73qths3v"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_503jw"] content_margin_left = 0.0 @@ -215,6 +215,21 @@ corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_twyxl"] +content_margin_left = 10.0 +content_margin_top = 5.0 +content_margin_right = 10.0 +content_margin_bottom = 5.0 +bg_color = Color(0.101569, 0.101569, 0.101569, 1) +draw_center = false +border_color = Color(0.0798039, 0.0798039, 0.0798039, 1) +corner_radius_top_left = 8 +corner_radius_top_right = 8 +corner_radius_bottom_right = 8 +corner_radius_bottom_left = 8 +corner_detail = 5 +anti_aliasing = false + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2305v"] content_margin_left = 8.0 content_margin_top = 8.0 @@ -853,6 +868,9 @@ Button/styles/normal = SubResource("StyleBoxFlat_ubyga") Button/styles/normal_mirrored = SubResource("StyleBoxFlat_ubyga") Button/styles/pressed = SubResource("StyleBoxFlat_dpijl") Button/styles/pressed_mirrored = SubResource("StyleBoxFlat_dpijl") +CheckBox/colors/font_hover_pressed_color = Color(1, 1, 1, 1) +CheckBox/colors/font_pressed_color = Color(1, 1, 1, 0.705882) +CheckBox/styles/normal = SubResource("StyleBoxFlat_twyxl") Editor/colors/background = Color(0.1, 0.1, 0.1, 1) Editor/colors/box_selection_fill_color = Color(1, 1, 1, 0.117647) Editor/colors/box_selection_stroke_color = Color(1, 1, 1, 0.352941)