From 0a576900992acd9a4f9cb9f78e5e37a755237ba8 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Thu, 7 Dec 2023 00:21:39 +0200 Subject: [PATCH] Change the unpressed textures for checkbox & radio buttons to be like they used to in Godot 3.x --- assets/graphics/misc/checkbox_unpressed.png | Bin 0 -> 116 bytes .../misc/checkbox_unpressed.png.import | 34 +++++++++++++++ assets/graphics/misc/radio_unpressed.png | Bin 0 -> 192 bytes .../graphics/misc/radio_unpressed.png.import | 34 +++++++++++++++ assets/themes/dark/theme.tres | 41 +++++++++++------- 5 files changed, 94 insertions(+), 15 deletions(-) create mode 100644 assets/graphics/misc/checkbox_unpressed.png create mode 100644 assets/graphics/misc/checkbox_unpressed.png.import create mode 100644 assets/graphics/misc/radio_unpressed.png create mode 100644 assets/graphics/misc/radio_unpressed.png.import diff --git a/assets/graphics/misc/checkbox_unpressed.png b/assets/graphics/misc/checkbox_unpressed.png new file mode 100644 index 0000000000000000000000000000000000000000..f2a4e1114c450b87b9a68f77569402ed948fa7ec GIT binary patch literal 116 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|^gLZ0Lo9le zQxXyq3W|$=pLbxpu{B#mdKI;Vst0EGA;;{X5v literal 0 HcmV?d00001 diff --git a/assets/graphics/misc/checkbox_unpressed.png.import b/assets/graphics/misc/checkbox_unpressed.png.import new file mode 100644 index 000000000..5547e7d2f --- /dev/null +++ b/assets/graphics/misc/checkbox_unpressed.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ybfsxkc2qap7" +path="res://.godot/imported/checkbox_unpressed.png-4c5614ef21e1361f32e7886a1d063053.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/misc/checkbox_unpressed.png" +dest_files=["res://.godot/imported/checkbox_unpressed.png-4c5614ef21e1361f32e7886a1d063053.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/graphics/misc/radio_unpressed.png b/assets/graphics/misc/radio_unpressed.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ea12130dd29bafaebaaad3d7a705a688bb767c GIT binary patch literal 192 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|sytmBLo9la zPWI+&P~dTq*E?8T_+lRSomXr=swdoiYfiV#g#6eSbkd(VOn%cp{Gk!@RDfSu56bhI)9UM|Cw7HH~h_4ImNQE`of(!p)*S^ pbbooPr7k0oZ#S8B+r%k{WiE1Pp1CQhmIQPKgQu&X%Q~loCIH9}N0$Hq literal 0 HcmV?d00001 diff --git a/assets/graphics/misc/radio_unpressed.png.import b/assets/graphics/misc/radio_unpressed.png.import new file mode 100644 index 000000000..5a2f5dee9 --- /dev/null +++ b/assets/graphics/misc/radio_unpressed.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://brdgp0y4tarar" +path="res://.godot/imported/radio_unpressed.png-a75f2d5cd86ae93980e481d43b3f4550.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/misc/radio_unpressed.png" +dest_files=["res://.godot/imported/radio_unpressed.png-a75f2d5cd86ae93980e481d43b3f4550.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/themes/dark/theme.tres b/assets/themes/dark/theme.tres index 3d2ddab3e..d8617f28b 100644 --- a/assets/themes/dark/theme.tres +++ b/assets/themes/dark/theme.tres @@ -1,10 +1,12 @@ -[gd_resource type="Theme" load_steps=76 format=3 uid="uid://bka2dkyhkqpmq"] +[gd_resource type="Theme" load_steps=78 format=3 uid="uid://bka2dkyhkqpmq"] -[ext_resource type="Texture2D" uid="uid://ct8wn8m6x4m54" path="res://assets/graphics/misc/value_arrow.svg" id="1_5321c"] -[ext_resource type="Texture2D" uid="uid://bq8h66v4ie8xl" path="res://assets/graphics/misc/value_arrow_hover.svg" id="2_x2sdh"] -[ext_resource type="Texture2D" uid="uid://hhxenhteahv6" path="res://assets/graphics/misc/value_arrow_press.svg" id="3_4mngv"] -[ext_resource type="Texture2D" uid="uid://c7u0yofrpm50a" path="res://assets/graphics/misc/value_slider.png" id="4_qvnsa"] -[ext_resource type="FontFile" uid="uid://cvc4lelf6hl7x" path="res://assets/fonts/Roboto-Regular.ttf" id="5_siwvf"] +[ext_resource type="Texture2D" uid="uid://brdgp0y4tarar" path="res://assets/graphics/misc/radio_unpressed.png" id="1_kn20g"] +[ext_resource type="Texture2D" uid="uid://ybfsxkc2qap7" path="res://assets/graphics/misc/checkbox_unpressed.png" id="2_7juvu"] +[ext_resource type="Texture2D" uid="uid://ct8wn8m6x4m54" path="res://assets/graphics/misc/value_arrow.svg" id="3_btpci"] +[ext_resource type="Texture2D" uid="uid://bq8h66v4ie8xl" path="res://assets/graphics/misc/value_arrow_hover.svg" id="4_qdc67"] +[ext_resource type="Texture2D" uid="uid://hhxenhteahv6" path="res://assets/graphics/misc/value_arrow_press.svg" id="5_hgs3n"] +[ext_resource type="Texture2D" uid="uid://c7u0yofrpm50a" path="res://assets/graphics/misc/value_slider.png" id="6_3ipyf"] +[ext_resource type="FontFile" uid="uid://cvc4lelf6hl7x" path="res://assets/fonts/Roboto-Regular.ttf" id="7_unniq"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_755mo"] content_margin_left = 8.0 @@ -532,7 +534,7 @@ border_color = Color(1, 1, 1, 1) shadow_color = Color(0, 0, 0, 0.3) shadow_size = 4 -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_el8kk"] +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_s2kub"] content_margin_left = 4.0 content_margin_top = 4.0 content_margin_right = 4.0 @@ -651,7 +653,7 @@ expand_margin_bottom = 4.0 [resource] resource_name = "Dark" -default_font = ExtResource("5_siwvf") +default_font = ExtResource("7_unniq") default_font_size = 16 AcceptDialog/styles/panel = SubResource("StyleBoxFlat_755mo") BoxContainer/constants/separation = 4 @@ -668,6 +670,10 @@ Button/styles/focus = SubResource("23") Button/styles/hover = SubResource("23") Button/styles/normal = SubResource("23") Button/styles/pressed = SubResource("StyleBoxFlat_t0f5f") +CheckBox/icons/radio_unchecked = ExtResource("1_kn20g") +CheckBox/icons/radio_unchecked_disabled = ExtResource("1_kn20g") +CheckBox/icons/unchecked = ExtResource("2_7juvu") +CheckBox/icons/unchecked_disabled = ExtResource("2_7juvu") CheckBox/styles/disabled = SubResource("StyleBoxFlat_lbyuh") CheckBox/styles/focus = SubResource("StyleBoxFlat_4dymj") CheckBox/styles/hover = SubResource("StyleBoxFlat_4jbvl") @@ -681,7 +687,7 @@ CheckButton/styles/hover_pressed = SubResource("StyleBoxFlat_viauy") CheckButton/styles/normal = SubResource("StyleBoxFlat_ygru1") CheckButton/styles/pressed = SubResource("StyleBoxFlat_h750t") CollapsibleContainer/base_type = &"VBoxContainer" -CollapsibleContainer/icons/arrow_normal = ExtResource("1_5321c") +CollapsibleContainer/icons/arrow_normal = ExtResource("3_btpci") ColorPicker/constants/h_width = 28 ColorPicker/constants/margin = 8 ColorPickerButton/styles/disabled = null @@ -749,6 +755,10 @@ Panel/styles/panel = SubResource("103") PanelContainer/styles/panel = SubResource("104") PopupMenu/colors/font_color = Color(0.77832, 0.77832, 0.77832, 1) PopupMenu/colors/font_disabled_color = Color(0.776471, 0.776471, 0.776471, 0.501961) +PopupMenu/icons/radio_unchecked = ExtResource("1_kn20g") +PopupMenu/icons/radio_unchecked_disabled = ExtResource("1_kn20g") +PopupMenu/icons/unchecked = ExtResource("2_7juvu") +PopupMenu/icons/unchecked_disabled = ExtResource("2_7juvu") PopupMenu/styles/hover = SubResource("112") PopupMenu/styles/labeled_separator_left = SubResource("113") PopupMenu/styles/labeled_separator_right = SubResource("114") @@ -804,7 +814,8 @@ Tree/colors/guide_color = Color(1, 1, 1, 0.05) Tree/colors/relationship_line_color = Color(1, 1, 1, 0.1) Tree/colors/title_button_color = Color(0.77832, 0.77832, 0.77832, 1) Tree/constants/scroll_border = 40 -Tree/styles/bg = SubResource("StyleBoxFlat_el8kk") +Tree/icons/unchecked = ExtResource("2_7juvu") +Tree/styles/bg = SubResource("StyleBoxFlat_s2kub") Tree/styles/button_pressed = SubResource("156") Tree/styles/cursor = SubResource("157") Tree/styles/cursor_unfocused = SubResource("157") @@ -829,12 +840,12 @@ VSplitContainer/constants/separation = 8 ValueSlider/base_type = &"TextureProgressBar" ValueSlider/colors/progress_color = Color(0.231373, 0.231373, 0.231373, 1) ValueSlider/colors/under_color = Color(0.0666667, 0.0666667, 0.0666667, 1) -ValueSlider/icons/arrow_hover = ExtResource("2_x2sdh") -ValueSlider/icons/arrow_normal = ExtResource("1_5321c") -ValueSlider/icons/arrow_pressed = ExtResource("3_4mngv") +ValueSlider/icons/arrow_hover = ExtResource("4_qdc67") +ValueSlider/icons/arrow_normal = ExtResource("3_btpci") +ValueSlider/icons/arrow_pressed = ExtResource("5_hgs3n") ValueSlider/icons/texture_over = null -ValueSlider/icons/texture_progress = ExtResource("4_qvnsa") -ValueSlider/icons/texture_under = ExtResource("4_qvnsa") +ValueSlider/icons/texture_progress = ExtResource("6_3ipyf") +ValueSlider/icons/texture_under = ExtResource("6_3ipyf") Window/colors/title_color = Color(0.776471, 0.776471, 0.776471, 1) Window/constants/title_height = 24 Window/styles/embedded_border = SubResource("StyleBoxFlat_pgljm")