From e7c690ac1d30520693425493777f536fb21db7ad Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 8 Dec 2023 22:47:37 +0100 Subject: [PATCH] Added light btn styles --- .../App/theme/btn/l_style_box_flat_hover.tres | 17 +++++++++++++++++ .../App/theme/btn/l_style_box_flat_norm.tres | 17 +++++++++++++++++ .../App/theme/btn/l_style_box_flat_press.tres | 17 +++++++++++++++++ I18N Commander/App/theme/ui_theme_light.tres | 14 +++++++++++++- 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 I18N Commander/App/theme/btn/l_style_box_flat_hover.tres create mode 100644 I18N Commander/App/theme/btn/l_style_box_flat_norm.tres create mode 100644 I18N Commander/App/theme/btn/l_style_box_flat_press.tres diff --git a/I18N Commander/App/theme/btn/l_style_box_flat_hover.tres b/I18N Commander/App/theme/btn/l_style_box_flat_hover.tres new file mode 100644 index 0000000..1ab0430 --- /dev/null +++ b/I18N Commander/App/theme/btn/l_style_box_flat_hover.tres @@ -0,0 +1,17 @@ +[gd_resource type="StyleBoxFlat" format=3 uid="uid://d0s01k14o6kda"] + +[resource] +content_margin_left = 16.0 +content_margin_top = 16.0 +content_margin_right = 16.0 +content_margin_bottom = 16.0 +bg_color = Color(0.980392, 0.980392, 0.980392, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.129412, 0.129412, 0.129412, 1) +corner_radius_top_left = 6 +corner_radius_top_right = 6 +corner_radius_bottom_right = 6 +corner_radius_bottom_left = 6 diff --git a/I18N Commander/App/theme/btn/l_style_box_flat_norm.tres b/I18N Commander/App/theme/btn/l_style_box_flat_norm.tres new file mode 100644 index 0000000..9fc1a4d --- /dev/null +++ b/I18N Commander/App/theme/btn/l_style_box_flat_norm.tres @@ -0,0 +1,17 @@ +[gd_resource type="StyleBoxFlat" format=3 uid="uid://cilpphe2p81om"] + +[resource] +content_margin_left = 16.0 +content_margin_top = 16.0 +content_margin_right = 16.0 +content_margin_bottom = 16.0 +bg_color = Color(0.980392, 0.980392, 0.980392, 1) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color(0.129412, 0.129412, 0.129412, 1) +corner_radius_top_left = 6 +corner_radius_top_right = 6 +corner_radius_bottom_right = 6 +corner_radius_bottom_left = 6 diff --git a/I18N Commander/App/theme/btn/l_style_box_flat_press.tres b/I18N Commander/App/theme/btn/l_style_box_flat_press.tres new file mode 100644 index 0000000..a8d023f --- /dev/null +++ b/I18N Commander/App/theme/btn/l_style_box_flat_press.tres @@ -0,0 +1,17 @@ +[gd_resource type="StyleBoxFlat" format=3 uid="uid://dv2hxit6cs1cx"] + +[resource] +content_margin_left = 16.0 +content_margin_top = 16.0 +content_margin_right = 16.0 +content_margin_bottom = 16.0 +bg_color = Color(0.878431, 0.878431, 0.878431, 1) +border_width_left = 5 +border_width_top = 5 +border_width_right = 5 +border_width_bottom = 5 +border_color = Color(0.129412, 0.129412, 0.129412, 1) +corner_radius_top_left = 6 +corner_radius_top_right = 6 +corner_radius_bottom_right = 6 +corner_radius_bottom_left = 6 diff --git a/I18N Commander/App/theme/ui_theme_light.tres b/I18N Commander/App/theme/ui_theme_light.tres index f088d42..4c192a1 100644 --- a/I18N Commander/App/theme/ui_theme_light.tres +++ b/I18N Commander/App/theme/ui_theme_light.tres @@ -1,10 +1,22 @@ -[gd_resource type="Theme" load_steps=2 format=3 uid="uid://w3bmkb0q753m"] +[gd_resource type="Theme" load_steps=5 format=3 uid="uid://w3bmkb0q753m"] +[ext_resource type="StyleBox" uid="uid://cilpphe2p81om" path="res://theme/btn/l_style_box_flat_norm.tres" id="1_21txx"] [ext_resource type="StyleBox" uid="uid://b2nkgvg40j6tc" path="res://theme/panel/l_style_box_flat.tres" id="1_87qhj"] +[ext_resource type="StyleBox" uid="uid://d0s01k14o6kda" path="res://theme/btn/l_style_box_flat_hover.tres" id="1_apys2"] +[ext_resource type="StyleBox" uid="uid://dv2hxit6cs1cx" path="res://theme/btn/l_style_box_flat_press.tres" id="3_cpdnc"] [resource] +Button/colors/font_color = Color(0.160784, 0.160784, 0.160784, 1) +Button/colors/font_focus_color = Color(0.160784, 0.160784, 0.160784, 1) +Button/colors/font_hover_color = Color(0.160784, 0.160784, 0.160784, 1) +Button/colors/font_hover_pressed_color = Color(0.160784, 0.160784, 0.160784, 1) +Button/colors/font_pressed_color = Color(0.160784, 0.160784, 0.160784, 1) +Button/colors/icon_disabled_color = Color(0.160784, 0.160784, 0.160784, 1) Button/constants/h_separation = 6 Button/font_sizes/font_size = 32 +Button/styles/hover = ExtResource("1_apys2") +Button/styles/normal = ExtResource("1_21txx") +Button/styles/pressed = ExtResource("3_cpdnc") CheckBox/constants/h_separation = 16 CheckBox/font_sizes/font_size = 32 CheckButton/font_sizes/font_size = 32