mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-03 20:14:22 +02:00
Allow theme inheritance
Terminal colors and fonts will be inherited from ancestor nodes if not defined.
This commit is contained in:
parent
c81da3820b
commit
5f399ed46e
6 changed files with 70 additions and 40 deletions
|
@ -1,13 +1,11 @@
|
|||
[gd_resource type="Theme" load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://addons/godot_xterm/themes/fonts/regular.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://themes/fonts/bold_italic.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://themes/fonts/italic.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://themes/fonts/bold.tres" type="DynamicFont" id=4]
|
||||
|
||||
[ext_resource path="res://themes/fonts/regular.tres" type="DynamicFont" id=5]
|
||||
|
||||
[resource]
|
||||
default_font = ExtResource( 1 )
|
||||
Terminal/colors/Background = Color( 0.12549, 0.145098, 0.192157, 1 )
|
||||
Terminal/colors/Black = Color( 0, 0, 0, 1 )
|
||||
Terminal/colors/Blue = Color( 0.341176, 0.698039, 1, 1 )
|
||||
|
@ -29,4 +27,4 @@ Terminal/colors/Yellow = Color( 1, 0.866667, 0.396078, 1 )
|
|||
Terminal/fonts/Bold = ExtResource( 4 )
|
||||
"Terminal/fonts/Bold Italic" = ExtResource( 2 )
|
||||
Terminal/fonts/Italic = ExtResource( 3 )
|
||||
Terminal/fonts/Regular = ExtResource( 1 )
|
||||
Terminal/fonts/Regular = ExtResource( 5 )
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[gd_resource type="DynamicFont" load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://addons/godot_xterm/themes/fonts/nerd_fonts/symbols_2048_em_nerd_font_complete-2.1.0.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://addons/godot_xterm/themes/fonts/noto_color_emoji/noto_color_emoji-20201206-phase3.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://addons/godot_xterm/themes/fonts/unifont/unifont-13.0.06.ttf" type="DynamicFontData" id=3]
|
||||
[ext_resource path="res://themes/fonts/unifont/unifont_upper-13.0.06.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://themes/fonts/unifont/unifont-13.0.06.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://themes/fonts/noto_color_emoji/noto_color_emoji-20201206-phase3.ttf" type="DynamicFontData" id=3]
|
||||
[ext_resource path="res://addons/godot_xterm/themes/fonts/hack/hack_regular-3.003.ttf" type="DynamicFontData" id=4]
|
||||
[ext_resource path="res://addons/godot_xterm/themes/fonts/unifont/unifont_upper-13.0.06.ttf" type="DynamicFontData" id=5]
|
||||
[ext_resource path="res://themes/fonts/nerd_fonts/symbols_2048_em_nerd_font_complete-2.1.0.ttf" type="DynamicFontData" id=5]
|
||||
|
||||
[resource]
|
||||
size = 14
|
||||
font_data = ExtResource( 4 )
|
||||
fallback/0 = ExtResource( 1 )
|
||||
fallback/1 = ExtResource( 2 )
|
||||
fallback/2 = ExtResource( 3 )
|
||||
fallback/3 = ExtResource( 5 )
|
||||
fallback/0 = ExtResource( 5 )
|
||||
fallback/1 = ExtResource( 3 )
|
||||
fallback/2 = ExtResource( 2 )
|
||||
fallback/3 = ExtResource( 1 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue