mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Put top menu & ruler styles inside the themes
Instead of using stylebox files.
This commit is contained in:
parent
fe2ed42819
commit
79bd015c19
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.12549, 0.145098, 0.192157, 1 )
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.12549, 0.145098, 0.192157, 1 )
|
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.419608, 0.403922, 0.337255, 1 )
|
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="Theme" load_steps=38 format=2]
|
||||
[gd_resource type="Theme" load_steps=40 format=2]
|
||||
|
||||
[ext_resource path="res://assets/fonts/Roboto-Regular.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://assets/themes/light/icons/grabber.png" type="Texture" id=2]
|
||||
|
@ -7,6 +7,9 @@
|
|||
[ext_resource path="res://assets/themes/light/icons/vsplit.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/themes/light/icons/spinbox.png" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=33]
|
||||
bg_color = Color( 0.419608, 0.403922, 0.337255, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 5.0
|
||||
content_margin_right = 5.0
|
||||
|
@ -189,6 +192,9 @@ corner_radius_top_right = 4
|
|||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=32]
|
||||
bg_color = Color( 0.709804, 0.517647, 0.188235, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=20]
|
||||
bg_color = Color( 0.854902, 0.74902, 0.494118, 1 )
|
||||
|
||||
|
@ -302,6 +308,7 @@ Button/colors/font_color_hover = Color( 0, 0, 0, 1 )
|
|||
Button/colors/font_color_pressed = Color( 0, 0, 0, 1 )
|
||||
Button/constants/hseparation = 2
|
||||
Button/fonts/font = null
|
||||
Button/styles/Ruler = SubResource( 33 )
|
||||
Button/styles/disabled = SubResource( 1 )
|
||||
Button/styles/focus = null
|
||||
Button/styles/hover = SubResource( 2 )
|
||||
|
@ -439,6 +446,7 @@ OptionButton/styles/focus = null
|
|||
OptionButton/styles/hover = null
|
||||
OptionButton/styles/normal = null
|
||||
OptionButton/styles/pressed = null
|
||||
Panel/styles/TopMenu = SubResource( 32 )
|
||||
Panel/styles/panel = SubResource( 20 )
|
||||
Panel/styles/panelf = null
|
||||
Panel/styles/panelnc = null
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.709804, 0.517647, 0.188235, 1 )
|
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="Theme" load_steps=43 format=2]
|
||||
[gd_resource type="Theme" load_steps=45 format=2]
|
||||
|
||||
[ext_resource path="res://assets/fonts/Roboto-Regular.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://assets/themes/dark/icons/grabber.png" type="Texture" id=2]
|
||||
|
@ -7,6 +7,9 @@
|
|||
[ext_resource path="res://assets/themes/dark/icons/vsplit.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/themes/dark/icons/spinbox.png" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=38]
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 5.0
|
||||
content_margin_right = 5.0
|
||||
|
@ -210,13 +213,16 @@ corner_radius_bottom_right = 4
|
|||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=23]
|
||||
bg_color = Color( 0.0823529, 0.0823529, 0.0823529, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=24]
|
||||
content_margin_left = 0.0
|
||||
content_margin_right = 0.0
|
||||
content_margin_top = 2.0
|
||||
content_margin_bottom = 2.0
|
||||
bg_color = Color( 0.0627451, 0.0627451, 0.0627451, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=24]
|
||||
[sub_resource type="StyleBoxFlat" id=25]
|
||||
content_margin_left = 4.5
|
||||
content_margin_right = 4.5
|
||||
content_margin_top = 3.0
|
||||
|
@ -227,7 +233,7 @@ corner_radius_top_right = 5
|
|||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=25]
|
||||
[sub_resource type="StyleBoxFlat" id=26]
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
border_width_left = 6
|
||||
border_width_top = 10
|
||||
|
@ -240,10 +246,10 @@ corner_radius_bottom_right = 4
|
|||
corner_radius_bottom_left = 4
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=26]
|
||||
[sub_resource type="StyleBoxFlat" id=27]
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=27]
|
||||
[sub_resource type="StyleBoxFlat" id=28]
|
||||
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
|
||||
border_width_left = 5
|
||||
border_width_top = 10
|
||||
|
@ -256,7 +262,7 @@ corner_radius_bottom_right = 4
|
|||
corner_radius_bottom_left = 4
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=28]
|
||||
[sub_resource type="StyleBoxFlat" id=29]
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
border_width_left = 10
|
||||
border_width_top = 6
|
||||
|
@ -264,7 +270,7 @@ border_width_right = 10
|
|||
border_width_bottom = 8
|
||||
border_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=29]
|
||||
[sub_resource type="StyleBoxFlat" id=30]
|
||||
bg_color = Color( 0.145098, 0.145098, 0.164706, 1 )
|
||||
border_width_left = 10
|
||||
border_width_top = 6
|
||||
|
@ -272,7 +278,7 @@ border_width_right = 10
|
|||
border_width_bottom = 8
|
||||
border_color = Color( 0.145098, 0.145098, 0.164706, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=30]
|
||||
[sub_resource type="StyleBoxFlat" id=31]
|
||||
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
|
||||
border_width_left = 10
|
||||
border_width_top = 6
|
||||
|
@ -281,7 +287,7 @@ border_width_bottom = 8
|
|||
border_color = Color( 0.321569, 0.321569, 0.321569, 1 )
|
||||
expand_margin_bottom = 3.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=31]
|
||||
[sub_resource type="StyleBoxFlat" id=32]
|
||||
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
|
||||
border_width_left = 5
|
||||
border_width_top = 10
|
||||
|
@ -290,7 +296,7 @@ border_width_bottom = 5
|
|||
border_color = Color( 0.321569, 0.321569, 0.321569, 1 )
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=32]
|
||||
[sub_resource type="StyleBoxFlat" id=33]
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
border_width_left = 10
|
||||
border_width_top = 6
|
||||
|
@ -299,7 +305,7 @@ border_width_bottom = 8
|
|||
border_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
expand_margin_bottom = 3.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=33]
|
||||
[sub_resource type="StyleBoxFlat" id=34]
|
||||
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
|
||||
border_width_left = 4
|
||||
border_width_top = 4
|
||||
|
@ -312,15 +318,15 @@ corner_radius_bottom_right = 4
|
|||
corner_radius_bottom_left = 4
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=34]
|
||||
[sub_resource type="StyleBoxFlat" id=35]
|
||||
border_width_left = 2
|
||||
border_width_right = 2
|
||||
border_color = Color( 0.321569, 0.321569, 0.321569, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=35]
|
||||
[sub_resource type="StyleBoxFlat" id=36]
|
||||
bg_color = Color( 0.133333, 0.133333, 0.133333, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=36]
|
||||
[sub_resource type="StyleBoxFlat" id=37]
|
||||
bg_color = Color( 0.0705882, 0.0705882, 0.0705882, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 20
|
||||
|
@ -337,6 +343,7 @@ Button/colors/font_color_hover = Color( 0.941176, 0.941176, 0.941176, 1 )
|
|||
Button/colors/font_color_pressed = Color( 1, 1, 1, 1 )
|
||||
Button/constants/hseparation = 2
|
||||
Button/fonts/font = null
|
||||
Button/styles/Ruler = SubResource( 38 )
|
||||
Button/styles/disabled = SubResource( 1 )
|
||||
Button/styles/focus = null
|
||||
Button/styles/hover = SubResource( 2 )
|
||||
|
@ -493,10 +500,11 @@ OptionButton/styles/focus = null
|
|||
OptionButton/styles/hover = null
|
||||
OptionButton/styles/normal = null
|
||||
OptionButton/styles/pressed = null
|
||||
Panel/styles/panel = SubResource( 23 )
|
||||
Panel/styles/TopMenu = SubResource( 23 )
|
||||
Panel/styles/panel = SubResource( 24 )
|
||||
Panel/styles/panelf = null
|
||||
Panel/styles/panelnc = null
|
||||
PanelContainer/styles/panel = SubResource( 24 )
|
||||
PanelContainer/styles/panel = SubResource( 25 )
|
||||
PopupMenu/colors/font_color = Color( 0.878431, 0.878431, 0.878431, 1 )
|
||||
PopupMenu/colors/font_color_accel = Color( 0.7, 0.7, 0.7, 0.8 )
|
||||
PopupMenu/colors/font_color_disabled = Color( 0.4, 0.4, 0.4, 0.8 )
|
||||
|
@ -512,10 +520,10 @@ PopupMenu/icons/unchecked = null
|
|||
PopupMenu/styles/hover = null
|
||||
PopupMenu/styles/labeled_separator_left = null
|
||||
PopupMenu/styles/labeled_separator_right = null
|
||||
PopupMenu/styles/panel = SubResource( 25 )
|
||||
PopupMenu/styles/panel = SubResource( 26 )
|
||||
PopupMenu/styles/panel_disabled = null
|
||||
PopupMenu/styles/separator = null
|
||||
PopupPanel/styles/panel = SubResource( 26 )
|
||||
PopupPanel/styles/panel = SubResource( 27 )
|
||||
SpinBox/icons/updown = ExtResource( 6 )
|
||||
TabContainer/colors/font_color_bg = Color( 0.690196, 0.690196, 0.690196, 1 )
|
||||
TabContainer/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
|
||||
|
@ -532,10 +540,10 @@ TabContainer/icons/increment = null
|
|||
TabContainer/icons/increment_highlight = null
|
||||
TabContainer/icons/menu = null
|
||||
TabContainer/icons/menu_highlight = null
|
||||
TabContainer/styles/panel = SubResource( 27 )
|
||||
TabContainer/styles/tab_bg = SubResource( 28 )
|
||||
TabContainer/styles/tab_disabled = SubResource( 29 )
|
||||
TabContainer/styles/tab_fg = SubResource( 30 )
|
||||
TabContainer/styles/panel = SubResource( 28 )
|
||||
TabContainer/styles/tab_bg = SubResource( 29 )
|
||||
TabContainer/styles/tab_disabled = SubResource( 30 )
|
||||
TabContainer/styles/tab_fg = SubResource( 31 )
|
||||
Tabs/colors/font_color_bg = Color( 0.69, 0.69, 0.69, 1 )
|
||||
Tabs/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
|
||||
Tabs/colors/font_color_fg = Color( 0.94, 0.94, 0.94, 1 )
|
||||
|
@ -551,10 +559,10 @@ Tabs/icons/increment = null
|
|||
Tabs/icons/increment_highlight = null
|
||||
Tabs/styles/button = null
|
||||
Tabs/styles/button_pressed = null
|
||||
Tabs/styles/panel = SubResource( 31 )
|
||||
Tabs/styles/tab_bg = SubResource( 32 )
|
||||
Tabs/styles/tab_disabled = SubResource( 29 )
|
||||
Tabs/styles/tab_fg = SubResource( 30 )
|
||||
Tabs/styles/panel = SubResource( 32 )
|
||||
Tabs/styles/tab_bg = SubResource( 33 )
|
||||
Tabs/styles/tab_disabled = SubResource( 30 )
|
||||
Tabs/styles/tab_fg = SubResource( 31 )
|
||||
TextEdit/colors/background_color = Color( 0, 0, 0, 0 )
|
||||
TextEdit/colors/brace_mismatch_color = Color( 1, 0.2, 0.2, 1 )
|
||||
TextEdit/colors/breakpoint_color = Color( 0.8, 0.8, 0.4, 0.2 )
|
||||
|
@ -586,7 +594,7 @@ TextEdit/fonts/font = null
|
|||
TextEdit/icons/tab = null
|
||||
TextEdit/styles/completion = null
|
||||
TextEdit/styles/focus = null
|
||||
TextEdit/styles/normal = SubResource( 33 )
|
||||
TextEdit/styles/normal = SubResource( 34 )
|
||||
TextEdit/styles/read_only = null
|
||||
TooltipLabel/colors/font_color = Color( 1, 1, 1, 1 )
|
||||
TooltipLabel/colors/font_color_shadow = Color( 0, 0, 0, 0.1 )
|
||||
|
@ -643,11 +651,11 @@ VScrollBar/styles/grabber_pressed = SubResource( 15 )
|
|||
VScrollBar/styles/scroll = null
|
||||
VScrollBar/styles/scroll_focus = null
|
||||
VSeparator/constants/separation = 4
|
||||
VSeparator/styles/separator = SubResource( 34 )
|
||||
VSeparator/styles/separator = SubResource( 35 )
|
||||
VSplitContainer/constants/autohide = 1
|
||||
VSplitContainer/constants/separation = 6
|
||||
VSplitContainer/icons/grabber = ExtResource( 5 )
|
||||
VSplitContainer/styles/bg = SubResource( 35 )
|
||||
VSplitContainer/styles/bg = SubResource( 36 )
|
||||
WindowDialog/colors/title_color = Color( 1, 1, 1, 1 )
|
||||
WindowDialog/constants/close_h_ofs = 18
|
||||
WindowDialog/constants/close_v_ofs = 18
|
||||
|
@ -656,4 +664,4 @@ WindowDialog/constants/title_height = 20
|
|||
WindowDialog/fonts/title_font = null
|
||||
WindowDialog/icons/close = null
|
||||
WindowDialog/icons/close_highlight = null
|
||||
WindowDialog/styles/panel = SubResource( 36 )
|
||||
WindowDialog/styles/panel = SubResource( 37 )
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.0823529, 0.0823529, 0.0823529, 1 )
|
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="Theme" load_steps=38 format=2]
|
||||
[gd_resource type="Theme" load_steps=40 format=2]
|
||||
|
||||
[ext_resource path="res://assets/fonts/Roboto-Regular.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://assets/themes/dark/icons/grabber.png" type="Texture" id=2]
|
||||
|
@ -7,6 +7,9 @@
|
|||
[ext_resource path="res://assets/themes/dark/icons/vsplit.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/themes/dark/icons/hsplit.png" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=33]
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 5.0
|
||||
content_margin_right = 5.0
|
||||
|
@ -202,6 +205,9 @@ corner_radius_top_right = 4
|
|||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=32]
|
||||
bg_color = Color( 0.117647, 0.117647, 0.117647, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=21]
|
||||
bg_color = Color( 0.180392, 0.180392, 0.180392, 1 )
|
||||
|
||||
|
@ -305,6 +311,7 @@ Button/colors/font_color_hover = Color( 0.941176, 0.941176, 0.941176, 1 )
|
|||
Button/colors/font_color_pressed = Color( 1, 1, 1, 1 )
|
||||
Button/constants/hseparation = 2
|
||||
Button/fonts/font = null
|
||||
Button/styles/Ruler = SubResource( 33 )
|
||||
Button/styles/disabled = SubResource( 1 )
|
||||
Button/styles/focus = null
|
||||
Button/styles/hover = SubResource( 2 )
|
||||
|
@ -442,6 +449,7 @@ OptionButton/styles/focus = null
|
|||
OptionButton/styles/hover = null
|
||||
OptionButton/styles/normal = null
|
||||
OptionButton/styles/pressed = null
|
||||
Panel/styles/TopMenu = SubResource( 32 )
|
||||
Panel/styles/panel = SubResource( 21 )
|
||||
Panel/styles/panelf = null
|
||||
Panel/styles/panelnc = null
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.117647, 0.117647, 0.117647, 1 )
|
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.509804, 0.509804, 0.509804, 1 )
|
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="Theme" load_steps=40 format=2]
|
||||
[gd_resource type="Theme" load_steps=42 format=2]
|
||||
|
||||
[ext_resource path="res://assets/themes/light/icons/hsplit.png" type="Texture" id=1]
|
||||
[ext_resource path="res://assets/themes/light/icons/grabber.png" type="Texture" id=2]
|
||||
|
@ -7,6 +7,9 @@
|
|||
[ext_resource path="res://assets/fonts/Roboto-Regular.tres" type="DynamicFont" id=5]
|
||||
[ext_resource path="res://assets/themes/light/icons/spinbox.png" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=35]
|
||||
bg_color = Color( 0.509804, 0.509804, 0.509804, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 5.0
|
||||
content_margin_right = 5.0
|
||||
|
@ -212,6 +215,9 @@ corner_radius_top_right = 4
|
|||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=34]
|
||||
bg_color = Color( 0.776471, 0.776471, 0.776471, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=22]
|
||||
bg_color = Color( 0.772549, 0.772549, 0.772549, 1 )
|
||||
|
||||
|
@ -325,6 +331,7 @@ Button/colors/font_color_hover = Color( 0, 0, 0, 1 )
|
|||
Button/colors/font_color_pressed = Color( 0, 0, 0, 1 )
|
||||
Button/constants/hseparation = 2
|
||||
Button/fonts/font = null
|
||||
Button/styles/Ruler = SubResource( 35 )
|
||||
Button/styles/disabled = SubResource( 1 )
|
||||
Button/styles/focus = null
|
||||
Button/styles/hover = SubResource( 2 )
|
||||
|
@ -462,6 +469,7 @@ OptionButton/styles/focus = null
|
|||
OptionButton/styles/hover = null
|
||||
OptionButton/styles/normal = null
|
||||
OptionButton/styles/pressed = null
|
||||
Panel/styles/TopMenu = SubResource( 34 )
|
||||
Panel/styles/panel = SubResource( 22 )
|
||||
Panel/styles/panelf = null
|
||||
Panel/styles/panelnc = null
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
bg_color = Color( 0.776471, 0.776471, 0.776471, 1 )
|
|
@ -45,28 +45,14 @@ func _on_Theme_pressed(index : int) -> void:
|
|||
func change_theme(ID : int) -> void:
|
||||
var font = Global.control.theme.default_font
|
||||
var main_theme : Theme = themes[ID]
|
||||
var top_menu_style
|
||||
var ruler_style
|
||||
if ID == 0: # Dark Theme
|
||||
if ID == 0 or ID == 1: # Dark or Gray Theme
|
||||
Global.theme_type = Global.Theme_Types.DARK
|
||||
top_menu_style = preload("res://assets/themes/dark/top_menu_style.tres")
|
||||
ruler_style = preload("res://assets/themes/dark/ruler_style.tres")
|
||||
elif ID == 1: # Gray Theme
|
||||
Global.theme_type = Global.Theme_Types.DARK
|
||||
top_menu_style = preload("res://assets/themes/gray/top_menu_style.tres")
|
||||
ruler_style = preload("res://assets/themes/dark/ruler_style.tres")
|
||||
elif ID == 2: # Godot's Theme
|
||||
Global.theme_type = Global.Theme_Types.BLUE
|
||||
top_menu_style = preload("res://assets/themes/blue/top_menu_style.tres")
|
||||
ruler_style = preload("res://assets/themes/blue/ruler_style.tres")
|
||||
elif ID == 3: # Caramel Theme
|
||||
Global.theme_type = Global.Theme_Types.CARAMEL
|
||||
top_menu_style = preload("res://assets/themes/caramel/top_menu_style.tres")
|
||||
ruler_style = preload("res://assets/themes/caramel/ruler_style.tres")
|
||||
elif ID == 4: # Light Theme
|
||||
Global.theme_type = Global.Theme_Types.LIGHT
|
||||
top_menu_style = preload("res://assets/themes/light/top_menu_style.tres")
|
||||
ruler_style = preload("res://assets/themes/light/ruler_style.tres")
|
||||
|
||||
Global.control.theme = main_theme
|
||||
Global.control.theme.default_font = font
|
||||
|
@ -76,6 +62,8 @@ func change_theme(ID : int) -> void:
|
|||
var layer_button_panel_container : PanelContainer = Global.find_node_by_name(Global.animation_timeline, "LayerButtonPanelContainer")
|
||||
(layer_button_panel_container.get_stylebox("panel", "PanelContainer") as StyleBoxFlat).bg_color = default_clear_color
|
||||
|
||||
var top_menu_style = main_theme.get_stylebox("TopMenu", "Panel")
|
||||
var ruler_style = main_theme.get_stylebox("Ruler", "Button")
|
||||
Global.top_menu_container.add_stylebox_override("panel", top_menu_style)
|
||||
Global.horizontal_ruler.add_stylebox_override("normal", ruler_style)
|
||||
Global.horizontal_ruler.add_stylebox_override("pressed", ruler_style)
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://assets/themes/dark/top_menu_style.tres" type="StyleBox" id=1]
|
||||
[ext_resource path="res://src/UI/TopMenuContainer.gd" type="Script" id=2]
|
||||
|
||||
[node name="TopMenuContainer" type="Panel"]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 28.0
|
||||
rect_min_size = Vector2( 0, 28 )
|
||||
custom_styles/panel = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=24 format=2]
|
||||
[gd_scene load_steps=23 format=2]
|
||||
|
||||
[ext_resource path="res://src/UI/ToolButtons.gd" type="Script" id=1]
|
||||
[ext_resource path="res://src/UI/CanvasPreview.tscn" type="PackedScene" id=2]
|
||||
|
@ -8,7 +8,6 @@
|
|||
[ext_resource path="res://src/UI/Rulers/HorizontalRuler.gd" type="Script" id=6]
|
||||
[ext_resource path="res://src/CameraMovement.gd" type="Script" id=7]
|
||||
[ext_resource path="res://src/SelectionRectangle.gd" type="Script" id=8]
|
||||
[ext_resource path="res://assets/themes/dark/ruler_style.tres" type="StyleBox" id=9]
|
||||
[ext_resource path="res://assets/graphics/dark_themes/tools/bucket.png" type="Texture" id=10]
|
||||
[ext_resource path="res://assets/graphics/dark_themes/tools/colorpicker.png" type="Texture" id=11]
|
||||
[ext_resource path="res://assets/graphics/dark_themes/tools/rectselect.png" type="Texture" id=12]
|
||||
|
@ -220,20 +219,16 @@ script = ExtResource( 3 )
|
|||
[node name="HorizontalRuler" type="Button" parent="CanvasAndTimeline/ViewportAndRulers"]
|
||||
margin_top = 38.0
|
||||
margin_right = 902.0
|
||||
margin_bottom = 54.0
|
||||
margin_bottom = 58.0
|
||||
rect_min_size = Vector2( 0, 16 )
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 14
|
||||
custom_styles/hover = ExtResource( 9 )
|
||||
custom_styles/pressed = ExtResource( 9 )
|
||||
custom_styles/focus = ExtResource( 9 )
|
||||
custom_styles/normal = ExtResource( 9 )
|
||||
action_mode = 0
|
||||
enabled_focus_mode = 0
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="HSplitContainer" type="HSplitContainer" parent="CanvasAndTimeline/ViewportAndRulers"]
|
||||
margin_top = 54.0
|
||||
margin_top = 58.0
|
||||
margin_right = 902.0
|
||||
margin_bottom = 480.0
|
||||
size_flags_vertical = 3
|
||||
|
@ -241,23 +236,19 @@ custom_constants/autohide = 0
|
|||
|
||||
[node name="ViewportandVerticalRuler" type="HBoxContainer" parent="CanvasAndTimeline/ViewportAndRulers/HSplitContainer"]
|
||||
margin_right = 890.0
|
||||
margin_bottom = 426.0
|
||||
margin_bottom = 422.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
custom_constants/separation = 0
|
||||
|
||||
[node name="VerticalRuler" type="Button" parent="CanvasAndTimeline/ViewportAndRulers/HSplitContainer/ViewportandVerticalRuler"]
|
||||
margin_right = 16.0
|
||||
margin_bottom = 426.0
|
||||
margin_bottom = 422.0
|
||||
rect_min_size = Vector2( 16, 0 )
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 15
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 3
|
||||
custom_styles/hover = ExtResource( 9 )
|
||||
custom_styles/pressed = ExtResource( 9 )
|
||||
custom_styles/focus = ExtResource( 9 )
|
||||
custom_styles/normal = ExtResource( 9 )
|
||||
action_mode = 0
|
||||
enabled_focus_mode = 0
|
||||
script = ExtResource( 4 )
|
||||
|
@ -265,7 +256,7 @@ script = ExtResource( 4 )
|
|||
[node name="ViewportContainer" type="ViewportContainer" parent="CanvasAndTimeline/ViewportAndRulers/HSplitContainer/ViewportandVerticalRuler"]
|
||||
margin_left = 16.0
|
||||
margin_right = 890.0
|
||||
margin_bottom = 426.0
|
||||
margin_bottom = 422.0
|
||||
focus_mode = 2
|
||||
mouse_default_cursor_shape = 3
|
||||
size_flags_horizontal = 3
|
||||
|
@ -274,7 +265,7 @@ stretch = true
|
|||
script = ExtResource( 23 )
|
||||
|
||||
[node name="Viewport" type="Viewport" parent="CanvasAndTimeline/ViewportAndRulers/HSplitContainer/ViewportandVerticalRuler/ViewportContainer"]
|
||||
size = Vector2( 874, 426 )
|
||||
size = Vector2( 874, 422 )
|
||||
handle_input_locally = false
|
||||
usage = 0
|
||||
render_target_update_mode = 3
|
||||
|
@ -300,13 +291,13 @@ script = ExtResource( 8 )
|
|||
[node name="ViewportContainer2" type="ViewportContainer" parent="CanvasAndTimeline/ViewportAndRulers/HSplitContainer"]
|
||||
margin_left = 902.0
|
||||
margin_right = 902.0
|
||||
margin_bottom = 426.0
|
||||
margin_bottom = 422.0
|
||||
size_flags_vertical = 3
|
||||
stretch = true
|
||||
script = ExtResource( 23 )
|
||||
|
||||
[node name="Viewport" type="Viewport" parent="CanvasAndTimeline/ViewportAndRulers/HSplitContainer/ViewportContainer2"]
|
||||
size = Vector2( 0, 426 )
|
||||
size = Vector2( 0, 422 )
|
||||
handle_input_locally = false
|
||||
render_target_update_mode = 3
|
||||
|
||||
|
|
Loading…
Reference in a new issue