Skip to content

Commit fbea45c

Browse files
committed
feat: refactor theme for custom fonts
Use this theme on everything that you want the custom font applied to
1 parent f7425cf commit fbea45c

File tree

2 files changed

+247
-13
lines changed

2 files changed

+247
-13
lines changed

editor.tscn

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
[gd_scene load_steps=15 format=3 uid="uid://bj6s526sep4xw"]
1+
[gd_scene load_steps=15 format=3 uid="uid://bdgbhk76vmfr4"]
22

33
[ext_resource type="FontFile" uid="uid://drrhlpxmc4pq4" path="res://Fonts/FiraCode-VariableFont_wght.ttf" id="1_cd7xi"]
44
[ext_resource type="Script" path="res://Scripts/file_manager.gd" id="1_x00ag"]
55
[ext_resource type="Script" path="res://Scripts/settings.gd" id="2_7x3ll"]
6-
[ext_resource type="FontFile" uid="uid://d1v66naqhhggj" path="res://Fonts/FiraCode-Regular.ttf" id="2_wpuu1"]
76
[ext_resource type="PackedScene" uid="uid://dk43uvvc3j228" path="res://Scenes/settings_list.tscn" id="5_6usn0"]
87
[ext_resource type="Script" path="res://Scripts/file_dialog.gd" id="5_bhd70"]
98
[ext_resource type="PackedScene" uid="uid://c2gyvklbna1ss" path="res://Scenes/theme_chooser.tscn" id="6_10xx2"]
10-
[ext_resource type="VideoStream" path="res://output.ogv" id="7_aq7lb"]
9+
[ext_resource type="VideoStream" path="res://Videos/jumping_cat.ogv" id="7_aq7lb"]
1110
[ext_resource type="Shader" path="res://Shaders/greenscreen.gdshader" id="7_gkiie"]
1211
[ext_resource type="Script" path="res://Scripts/theme_chooser.gd" id="9_ba634"]
1312
[ext_resource type="Script" path="res://Scripts/hyperlink.gd" id="11_m1mse"]
1413

14+
[sub_resource type="Theme" id="Theme_1rere"]
15+
1516
[sub_resource type="CodeHighlighter" id="CodeHighlighter_p2au2"]
1617

1718
[sub_resource type="ShaderMaterial" id="ShaderMaterial_elmks"]
@@ -23,17 +24,17 @@ shader_parameter/similarity = 0.18
2324
shader_parameter/smoothness = 0.08
2425
shader_parameter/spill = 0.04
2526

26-
[node name="Editor" type="Node2D"]
27+
[node name="Editor2" type="Node2D"]
2728
script = ExtResource("1_x00ag")
2829

2930
[node name="Code" type="CodeEdit" parent="."]
3031
unique_name_in_owner = true
3132
offset_right = 1920.0
3233
offset_bottom = 1080.0
33-
theme_override_colors/current_line_color = Color(0.168627, 0.168627, 0.168627, 1)
34+
theme = SubResource("Theme_1rere")
3435
theme_override_colors/background_color = Color(0, 0, 0, 1)
36+
theme_override_colors/current_line_color = Color(0.168627, 0.168627, 0.168627, 1)
3537
theme_override_colors/caret_color = Color(0.321569, 0.545098, 1, 1)
36-
theme_override_fonts/font = ExtResource("2_wpuu1")
3738
text = "function getRandomColor() {
3839
const letters = '0123456789ABCDEF';
3940
let color = '#';
@@ -118,7 +119,6 @@ unique_name_in_owner = true
118119
visible = false
119120

120121
[node name="RichTextLabel" type="RichTextLabel" parent="Intro"]
121-
auto_translate_mode = 1
122122
offset_left = 836.0
123123
offset_top = 112.0
124124
offset_right = 3336.0
@@ -130,7 +130,6 @@ bbcode_enabled = true
130130
text = "Greetings!"
131131

132132
[node name="RichTextLabel2" type="RichTextLabel" parent="Intro"]
133-
auto_translate_mode = 1
134133
offset_left = 841.0
135134
offset_top = 244.0
136135
offset_right = 3341.0
@@ -142,7 +141,6 @@ bbcode_enabled = true
142141
text = "You're currently using [color=#c9daf8]Bussin[/color] [color=#85c6ff]GriddyCode[/color]"
143142

144143
[node name="RichTextLabel3" type="RichTextLabel" parent="Intro"]
145-
auto_translate_mode = 1
146144
offset_left = 841.0
147145
offset_top = 380.0
148146
offset_right = 3341.0
@@ -191,7 +189,6 @@ unique_name_in_owner = true
191189
position = Vector2(-1289, 0)
192190

193191
[node name="RichTextLabel" type="RichTextLabel" parent="Info"]
194-
auto_translate_mode = 1
195192
offset_left = 285.0
196193
offset_top = 28.0
197194
offset_right = 4821.0
@@ -203,7 +200,6 @@ bbcode_enabled = true
203200
text = "[color=#c9daf8]Bussin[/color] [color=#85c6ff]GriddyCode[/color]"
204201

205202
[node name="RichTextLabel2" type="RichTextLabel" parent="Info"]
206-
auto_translate_mode = 1
207203
offset_left = 293.0
208204
offset_top = 165.0
209205
offset_right = 6395.0

0 commit comments

Comments
 (0)