Add a theme resource, which applies fonts/styles to all Control elements

This commit is contained in:
Sebastian Morr 2020-09-21 17:00:00 +02:00
parent 3cfd6ec710
commit 24f194872b
12 changed files with 300 additions and 75 deletions

View file

@ -1,6 +1,6 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://fonts/iosevka-regular.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://fonts/cabin-bold.ttf" type="DynamicFontData" id=1]
[resource]
size = 40

BIN
fonts/cabin-bold.ttf Normal file

Binary file not shown.

BIN
fonts/cabin-regular.ttf Normal file

Binary file not shown.

View file

@ -1,6 +1,6 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://fonts/iosevka-regular.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://fonts/cabin-regular.ttf" type="DynamicFontData" id=1]
[resource]
size = 20

7
fonts/monospace.tres Normal file
View file

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