Skip to content

Commit adae7f0

Browse files
committed
Update button theme
Update button theme to give the choice buttons a better look.
1 parent 6ffdc38 commit adae7f0

File tree

4 files changed

+102
-34
lines changed

4 files changed

+102
-34
lines changed
Lines changed: 64 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,54 @@
1-
[gd_resource type="Theme" load_steps=4 format=2]
1+
[gd_resource type="Theme" load_steps=9 format=2]
22

3+
[ext_resource path="res://addons/textalog/assets/themes/default_theme/plain_black_name_style.tres" type="StyleBox" id=1]
34
[ext_resource path="res://addons/textalog/assets/fonts/Poppins/godot_fonts/Poppins-Normal.tres" type="DynamicFont" id=2]
5+
[ext_resource path="res://addons/textalog/assets/themes/default_theme/plain_black_textbox_style.tres" type="StyleBox" id=3]
6+
7+
[sub_resource type="StyleBoxFlat" id=1]
8+
bg_color = Color( 0.02, 0.02, 0.02, 0.8 )
9+
border_width_left = 1
10+
border_width_top = 1
11+
border_width_right = 1
12+
border_width_bottom = 1
13+
border_color = Color( 0, 0, 0, 0.537255 )
14+
border_blend = true
15+
corner_radius_top_left = 12
16+
corner_radius_top_right = 12
17+
corner_radius_bottom_right = 12
18+
corner_radius_bottom_left = 12
419

520
[sub_resource type="StyleBoxFlat" id=2]
6-
resource_name = "NameStyle"
7-
content_margin_left = 16.0
8-
content_margin_right = 16.0
9-
content_margin_top = 16.0
10-
content_margin_bottom = 16.0
1121
bg_color = Color( 0.0980392, 0.0980392, 0.0980392, 0.745098 )
22+
draw_center = false
23+
border_width_left = 2
24+
border_width_top = 2
25+
border_width_right = 2
26+
border_width_bottom = 2
27+
border_color = Color( 0.411765, 0.611765, 0.909804, 1 )
28+
border_blend = true
29+
corner_radius_top_left = 12
30+
corner_radius_top_right = 12
31+
corner_radius_bottom_right = 12
32+
corner_radius_bottom_left = 12
33+
34+
[sub_resource type="StyleBoxFlat" id=3]
35+
bg_color = Color( 0.211765, 0.188235, 0.188235, 0.745098 )
36+
border_width_left = 1
1237
border_width_top = 1
1338
border_width_right = 1
1439
border_width_bottom = 1
1540
border_color = Color( 0, 0, 0, 0.537255 )
1641
border_blend = true
17-
corner_radius_top_right = 20
18-
corner_radius_bottom_left = 20
19-
corner_detail = 1
42+
corner_radius_top_left = 12
43+
corner_radius_top_right = 12
44+
corner_radius_bottom_right = 12
45+
corner_radius_bottom_left = 12
2046

21-
[sub_resource type="StyleBoxFlat" id=1]
22-
resource_name = "TextStyle"
23-
content_margin_left = 16.0
24-
content_margin_right = 16.0
25-
content_margin_top = 16.0
26-
content_margin_bottom = 16.0
47+
[sub_resource type="StyleBoxFlat" id=4]
48+
content_margin_left = 4.0
49+
content_margin_right = 4.0
50+
content_margin_top = 4.0
51+
content_margin_bottom = 4.0
2752
bg_color = Color( 0.0980392, 0.0980392, 0.0980392, 0.745098 )
2853
border_width_left = 1
2954
border_width_top = 1
@@ -36,8 +61,30 @@ corner_radius_top_right = 12
3661
corner_radius_bottom_right = 12
3762
corner_radius_bottom_left = 12
3863

64+
[sub_resource type="StyleBoxFlat" id=5]
65+
content_margin_left = 2.0
66+
content_margin_right = 2.0
67+
content_margin_top = 2.0
68+
content_margin_bottom = 2.0
69+
bg_color = Color( 0.0980392, 0.0980392, 0.0980392, 0.745098 )
70+
border_width_left = 8
71+
border_width_top = 8
72+
border_width_right = 8
73+
border_width_bottom = 2
74+
border_color = Color( 0, 0, 0, 0.537255 )
75+
border_blend = true
76+
corner_radius_top_left = 12
77+
corner_radius_top_right = 12
78+
corner_radius_bottom_right = 12
79+
corner_radius_bottom_left = 12
80+
3981
[resource]
4082
default_font = ExtResource( 2 )
83+
Button/styles/disabled = SubResource( 1 )
84+
Button/styles/focus = SubResource( 2 )
85+
Button/styles/hover = SubResource( 3 )
86+
Button/styles/normal = SubResource( 4 )
87+
Button/styles/pressed = SubResource( 5 )
4188
DialogNode/styles/bubble = null
42-
DialogNode/styles/name = SubResource( 2 )
43-
DialogNode/styles/text = SubResource( 1 )
89+
DialogNode/styles/name = ExtResource( 1 )
90+
DialogNode/styles/text = ExtResource( 3 )
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[gd_resource type="StyleBoxFlat" format=2]
2+
3+
[resource]
4+
resource_name = "NameStyle"
5+
content_margin_left = 16.0
6+
content_margin_right = 16.0
7+
content_margin_top = 16.0
8+
content_margin_bottom = 16.0
9+
bg_color = Color( 0.0980392, 0.0980392, 0.0980392, 0.745098 )
10+
border_width_top = 1
11+
border_width_right = 1
12+
border_width_bottom = 1
13+
border_color = Color( 0, 0, 0, 0.537255 )
14+
border_blend = true
15+
corner_radius_top_right = 20
16+
corner_radius_bottom_left = 20
17+
corner_detail = 1
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[gd_resource type="StyleBoxFlat" format=2]
2+
3+
[resource]
4+
resource_name = "TextStyle"
5+
content_margin_left = 16.0
6+
content_margin_right = 16.0
7+
content_margin_top = 16.0
8+
content_margin_bottom = 16.0
9+
bg_color = Color( 0.0980392, 0.0980392, 0.0980392, 0.745098 )
10+
border_width_left = 1
11+
border_width_top = 1
12+
border_width_right = 1
13+
border_width_bottom = 1
14+
border_color = Color( 0, 0, 0, 0.537255 )
15+
border_blend = true
16+
corner_radius_top_left = 12
17+
corner_radius_top_right = 12
18+
corner_radius_bottom_right = 12
19+
corner_radius_bottom_left = 12

addons/textalog/nodes/dialogue_base_node/dialogue_base_node.tscn

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,7 @@
55
[ext_resource path="res://addons/textalog/nodes/dialogue_base_node/portraits_node/portraits_node.gd" type="Script" id=3]
66
[ext_resource path="res://addons/textalog/nodes/dialogue_base_node/options_node/options_node.tscn" type="PackedScene" id=4]
77
[ext_resource path="res://addons/textalog/assets/themes/default_theme/plain_black.tres" type="Theme" id=5]
8-
9-
[sub_resource type="StyleBoxFlat" id=2]
10-
resource_name = "NameStyle"
11-
content_margin_left = 16.0
12-
content_margin_right = 16.0
13-
content_margin_top = 16.0
14-
content_margin_bottom = 16.0
15-
bg_color = Color( 0.0980392, 0.0980392, 0.0980392, 0.745098 )
16-
border_width_top = 1
17-
border_width_right = 1
18-
border_width_bottom = 1
19-
border_color = Color( 0, 0, 0, 0.537255 )
20-
border_blend = true
21-
corner_radius_top_right = 20
22-
corner_radius_bottom_left = 20
23-
corner_detail = 1
8+
[ext_resource path="res://addons/textalog/assets/themes/default_theme/plain_black_name_style.tres" type="StyleBox" id=6]
249

2510
[node name="DialogNode" type="Control"]
2611
anchor_right = 1.0
@@ -68,7 +53,7 @@ margin_right = -0.344009
6853
margin_bottom = 4.49994
6954
grow_horizontal = 2
7055
grow_vertical = 2
71-
custom_styles/normal = SubResource( 2 )
56+
custom_styles/normal = ExtResource( 6 )
7257
text = "Sample Name"
7358
align = 1
7459
valign = 1

0 commit comments

Comments
 (0)