From 48cb898c8636b2caf2a3291d36a2864aaacd5f2c Mon Sep 17 00:00:00 2001 From: Eduardo Date: Mon, 8 Jul 2024 21:29:53 +0200 Subject: [PATCH] created a theme and added some cool buttons --- assets/resources/ui_theme.tres | 38 ++++++++++++++++++ assets/ui/button_square_depth_line.png | Bin 0 -> 661 bytes assets/ui/button_square_depth_line.png.import | 34 ++++++++++++++++ assets/ui/button_square_line.png | Bin 0 -> 533 bytes assets/ui/button_square_line.png.import | 34 ++++++++++++++++ 5 files changed, 106 insertions(+) create mode 100644 assets/resources/ui_theme.tres create mode 100644 assets/ui/button_square_depth_line.png create mode 100644 assets/ui/button_square_depth_line.png.import create mode 100644 assets/ui/button_square_line.png create mode 100644 assets/ui/button_square_line.png.import diff --git a/assets/resources/ui_theme.tres b/assets/resources/ui_theme.tres new file mode 100644 index 0000000..3922ff6 --- /dev/null +++ b/assets/resources/ui_theme.tres @@ -0,0 +1,38 @@ +[gd_resource type="Theme" load_steps=6 format=3 uid="uid://c6osikflt1uy1"] + +[ext_resource type="Texture2D" uid="uid://caxlr5o014d0h" path="res://assets/ui/button_square_depth_line.png" id="1_78d1i"] +[ext_resource type="Texture2D" uid="uid://b3depm3avmfan" path="res://assets/ui/button_square_line.png" id="2_8kr4w"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_737n7"] +texture = ExtResource("1_78d1i") +texture_margin_left = 15.0 +texture_margin_top = 15.0 +texture_margin_right = 15.0 +texture_margin_bottom = 25.0 +modulate_color = Color(0.568973, 0.568973, 0.568973, 1) + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_jnuq6"] +texture = ExtResource("1_78d1i") +texture_margin_left = 15.0 +texture_margin_top = 15.0 +texture_margin_right = 15.0 +texture_margin_bottom = 25.0 + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_whw1g"] +texture = ExtResource("2_8kr4w") +texture_margin_left = 15.0 +texture_margin_top = 15.0 +texture_margin_right = 15.0 +texture_margin_bottom = 25.0 + +[resource] +Button/colors/font_color = Color(0.172833, 0.172833, 0.172832, 1) +Button/colors/font_disabled_color = Color(0, 0, 0, 0.5) +Button/colors/font_focus_color = Color(0.172549, 0.172549, 0.172549, 1) +Button/colors/font_hover_color = Color(0.172549, 0.172549, 0.172549, 1) +Button/colors/font_pressed_color = Color(0.172549, 0.172549, 0.172549, 1) +Button/styles/disabled = SubResource("StyleBoxTexture_737n7") +Button/styles/focus = SubResource("StyleBoxTexture_jnuq6") +Button/styles/hover = SubResource("StyleBoxTexture_jnuq6") +Button/styles/normal = SubResource("StyleBoxTexture_jnuq6") +Button/styles/pressed = SubResource("StyleBoxTexture_whw1g") diff --git a/assets/ui/button_square_depth_line.png b/assets/ui/button_square_depth_line.png new file mode 100644 index 0000000000000000000000000000000000000000..fb731f049d8b7736f6c8205c32217f680977dc4e GIT binary patch literal 661 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&v7|ftIx;Y9?C1WI$O`1o3GfMV zEiP^^D(V1|Q>QL2Dd_-{ZPTVL0;1w#5TmrTZOW9TKz2z<`;;jQA&jY0feID_&DgeW z|LfOp-@X5G>eR*0U%qeHuGJOUcC0?$qS$@x9&U#8vg(P|AK`cY(P6i zOM?7@=j-3k_dnl%zdzpIUVeSO|NH&(_cQpcx4*)`z}W2R;uunK>+S91lMWdOuv}0~ zFGymxOqT9R{r&%cuIVQyQG0{K3x6-z64RVEhB{`)m;vbE>0U3dH!KM8KF~1p_nC8*^TL5Do}amTPG`Y!dHbmqa(8ZbpZMG0zI4Lw->gUU z6;_8BJr8$~t-km3*W6{T0hhj9w`GmKtN4#U{#%)@OK~b=xiy3R|8AWH70e%&{$Odi z@){HuWCAuml1DplPTZCi ztZ#01d(uPqfc&*7kC&x&Di#;*-hDJ`TixD*t?Jwc=6er5K5O9MpYWU4^zFuO(^rq@ zuFad2?_V5|+rs-Xt@J_K{AF&Y!C5buq(pws`nxaoZl4LGvYcJ{*I&E8ewn@H*GtQ~ r{A#JMalg0j>tA%x<;DY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