add theme

currently supported controls: Button, LineEdit, TextEdit, and VScrollBar.
This commit is contained in:
2022-07-04 04:10:20 +03:00
parent 836c101e6f
commit b1a7b736b4
19 changed files with 212 additions and 62 deletions

7
theme/FontMono.tres Normal file
View File

@ -0,0 +1,7 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://theme/FreeMonoBold.ttf" type="DynamicFontData" id=1]
[resource]
size = 18
font_data = ExtResource( 1 )

6
theme/FontRg.tres Normal file
View File

@ -0,0 +1,6 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://theme/FreeSans.ttf" type="DynamicFontData" id=1]
[resource]
font_data = ExtResource( 1 )

BIN
theme/FreeMono.ttf Normal file

Binary file not shown.

BIN
theme/FreeMonoBold.ttf Normal file

Binary file not shown.

BIN
theme/FreeSans.ttf Normal file

Binary file not shown.

BIN
theme/default_theme.theme Normal file

Binary file not shown.

View File

@ -0,0 +1,14 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
content_margin_left = 8.0
content_margin_right = 8.0
content_margin_top = 10.0
content_margin_bottom = 10.0
bg_color = Color( 0.168, 0.192, 0.2, 1 )
border_width_bottom = 3
border_color = Color( 0.2788, 0.41, 0.296293, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

View File

@ -0,0 +1,17 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
content_margin_left = 8.0
content_margin_right = 8.0
content_margin_top = 10.0
content_margin_bottom = 10.0
bg_color = Color( 0.0705882, 0.164706, 0.196078, 1 )
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 5
border_color = Color( 0.164706, 0.85098, 0.254902, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

View File

@ -0,0 +1,14 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
content_margin_left = 8.0
content_margin_right = 8.0
content_margin_top = 10.0
content_margin_bottom = 10.0
bg_color = Color( 0.0705882, 0.164706, 0.196078, 1 )
border_width_bottom = 3
border_color = Color( 0.164706, 0.85098, 0.254902, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

View File

@ -0,0 +1,17 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
content_margin_left = 8.0
content_margin_right = 8.0
content_margin_top = 10.0
content_margin_bottom = 10.0
bg_color = Color( 0.0705882, 0.164706, 0.196078, 1 )
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color( 0.164706, 0.85098, 0.254902, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

View File

@ -0,0 +1,17 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
content_margin_left = 8.0
content_margin_right = 8.0
content_margin_top = 10.0
content_margin_bottom = 12.0
bg_color = Color( 0.0705882, 0.164706, 0.196078, 1 )
border_width_left = 2
border_width_top = 3
border_width_right = 3
border_width_bottom = 6
border_color = Color( 0.164706, 0.85098, 0.254902, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

View File

@ -0,0 +1,17 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
content_margin_left = 8.0
content_margin_right = 8.0
content_margin_top = 10.0
content_margin_bottom = 10.0
bg_color = Color( 0.168, 0.192, 0.2, 1 )
border_width_left = 2
border_width_top = 3
border_width_right = 3
border_width_bottom = 6
border_color = Color( 0.2788, 0.41, 0.296293, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4

View File

@ -0,0 +1,8 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.4002, 0.87, 0.46284, 1 )
corner_radius_top_left = 12
corner_radius_top_right = 12
corner_radius_bottom_right = 12
corner_radius_bottom_left = 12

View File

@ -0,0 +1,8 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.1764, 0.63, 0.23688, 1 )
corner_radius_top_left = 12
corner_radius_top_right = 12
corner_radius_bottom_right = 12
corner_radius_bottom_left = 12

View File

@ -0,0 +1,8 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.164706, 0.85098, 0.254902, 1 )
corner_radius_top_left = 12
corner_radius_top_right = 12
corner_radius_bottom_right = 12
corner_radius_bottom_left = 12

View File

@ -0,0 +1,13 @@
[gd_resource type="StyleBoxFlat" format=2]
[resource]
bg_color = Color( 0.168627, 0.192157, 0.2, 0 )
border_width_left = 3
border_width_top = 4
border_width_right = 3
border_width_bottom = 4
border_color = Color( 0.168627, 0.192157, 0.2, 0 )
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10