1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Added Light theme in Preferences

Light theme is still work in progress
This commit is contained in:
OverloadedOrama 2019-12-20 15:32:43 +02:00
parent 32fead03bd
commit 2fc9711788
5 changed files with 88 additions and 83 deletions

View file

@ -225,6 +225,7 @@ text = "[64×64]"
align = 2
[node name="UI" type="HBoxContainer" parent="MenuAndUI"]
editor/display_folded = true
margin_top = 28.0
margin_right = 1152.0
margin_bottom = 648.0
@ -1478,8 +1479,8 @@ resizable = true
mode = 0
access = 2
filters = PoolStringArray( "*.pxo ; Pixelorama Project" )
current_dir = "C:/Users/User/Desktop/Github/Pixelorama"
current_path = "C:/Users/User/Desktop/Github/Pixelorama/"
current_dir = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama"
current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama/"
[node name="SaveSprite" type="FileDialog" parent="."]
anchor_left = 0.5
@ -1494,8 +1495,8 @@ window_title = "Save Sprite as .pxo"
resizable = true
access = 2
filters = PoolStringArray( "*.pxo ; Pixelorama Project" )
current_dir = "C:/Users/User/Desktop/Github/Pixelorama"
current_path = "C:/Users/User/Desktop/Github/Pixelorama/"
current_dir = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama"
current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama/"
[node name="ImportSprites" type="FileDialog" parent="."]
margin_right = 515.0
@ -1505,8 +1506,8 @@ resizable = true
mode = 1
access = 2
filters = PoolStringArray( "*.bmp ; BMP Image", "*.hdr ; Radiance HDR Image", "*.jpg,*.jpeg ; JPEG Image", "*.png ; PNG Image", "*.svg ; SVG Image", "*.tga ; TGA Image", "*.webp ; WebP Image" )
current_dir = "C:/Users/User/Desktop/Github/Pixelorama"
current_path = "C:/Users/User/Desktop/Github/Pixelorama/"
current_dir = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama"
current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama/"
[node name="ExportSprites" type="FileDialog" parent="."]
anchor_left = 0.5
@ -1521,8 +1522,8 @@ window_title = "Export Sprite"
resizable = true
access = 2
filters = PoolStringArray( "*.png ; PNG Image" )
current_dir = "C:/Users/User/Desktop/Github/Pixelorama"
current_path = "C:/Users/User/Desktop/Github/Pixelorama/"
current_dir = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama"
current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama/"
[node name="ScaleImage" type="ConfirmationDialog" parent="."]
editor/display_folded = true
@ -1677,8 +1678,8 @@ visible = false
[node name="NewPaletteDialog" parent="." instance=ExtResource( 60 )]
[node name="PaletteImportFileDialog" parent="." instance=ExtResource( 61 )]
current_dir = "C:/Users/User/Desktop/Github/Pixelorama"
current_path = "C:/Users/User/Desktop/Github/Pixelorama/"
current_dir = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama"
current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama/"
[node name="AnimationTimer" type="Timer" parent="."]

View file

@ -12,10 +12,10 @@ script = ExtResource( 1 )
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -92.0
margin_left = -109.0
margin_top = 8.0
margin_right = 92.0
margin_bottom = 34.0
margin_right = 109.0
margin_bottom = 150.0
[node name="OptionsContainer" type="GridContainer" parent="VBoxContainer"]
margin_right = 218.0
@ -47,8 +47,8 @@ margin_left = 67.0
margin_top = 24.0
margin_right = 218.0
margin_bottom = 44.0
text = "Dark Theme"
items = [ "Dark Theme", null, false, 0, null, "Gray Theme", null, false, 1, null, "Godot's Theme", null, false, 2, null ]
text = "Dark"
items = [ "Dark", null, false, 0, null, "Gray", null, false, 1, null, "Godot", null, false, 2, null, "Light", null, false, 3, null ]
selected = 0
[node name="GridOptionsLabel" type="Label" parent="VBoxContainer"]

View file

@ -29,6 +29,10 @@ func _on_ThemeOption_item_selected(ID : int) -> void:
main_theme = preload("res://Themes & Styles/Godot\'s Theme/Godot\'s Theme.tres")
top_menu_style = preload("res://Themes & Styles/Godot\'s Theme/TopMenuStyle.tres")
ruler_style = preload("res://Themes & Styles/Godot\'s Theme/RulerStyle.tres")
elif ID == 3: #Light Theme
main_theme = preload("res://Themes & Styles/Light Theme/Light Theme.tres")
top_menu_style = preload("res://Themes & Styles/Light Theme/LightTopMenuStyle.tres")
ruler_style = preload("res://Themes & Styles/Light Theme/LightRulerStyle.tres")
Global.control.theme = main_theme
Global.top_menu_container.add_stylebox_override("panel", top_menu_style)

View file

@ -2,10 +2,10 @@
[ext_resource path="res://Assets/Fonts/Roboto-Regular.tres" type="DynamicFont" id=1]
[sub_resource type="StyleBoxFlat" id=27]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.219608, 0.211765, 0.168627, 1 )
[sub_resource type="StyleBoxFlat" id=1]
[sub_resource type="StyleBoxFlat" id=2]
bg_color = Color( 0.745098, 0.721569, 0.607843, 1 )
border_width_left = 4
border_width_top = 4
@ -18,7 +18,7 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=2]
[sub_resource type="StyleBoxFlat" id=3]
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 4
border_width_top = 4
@ -31,7 +31,7 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=3]
[sub_resource type="StyleBoxFlat" id=4]
bg_color = Color( 0.372549, 0.360784, 0.301961, 1 )
border_width_left = 4
border_width_top = 4
@ -44,9 +44,6 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=4]
bg_color = Color( 0.6, 0.6, 0.6, 0 )
[sub_resource type="StyleBoxFlat" id=5]
bg_color = Color( 0.6, 0.6, 0.6, 0 )
@ -57,20 +54,10 @@ bg_color = Color( 0.6, 0.6, 0.6, 0 )
bg_color = Color( 0.6, 0.6, 0.6, 0 )
[sub_resource type="StyleBoxFlat" id=8]
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color( 0.219608, 0.211765, 0.184314, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
bg_color = Color( 0.6, 0.6, 0.6, 0 )
[sub_resource type="StyleBoxFlat" id=9]
bg_color = Color( 0.745098, 0.721569, 0.607843, 1 )
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 1
border_width_top = 1
border_width_right = 1
@ -83,6 +70,19 @@ corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=10]
bg_color = Color( 0.745098, 0.721569, 0.607843, 1 )
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color( 0.219608, 0.211765, 0.184314, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=11]
bg_color = Color( 0.372549, 0.360784, 0.301961, 1 )
border_width_left = 1
border_width_top = 1
@ -95,7 +95,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=12]
bg_color = Color( 0.445313, 0.432846, 0.370514, 1 )
border_width_top = 5
border_width_bottom = 5
@ -105,25 +105,25 @@ corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="StyleBoxFlat" id=26]
[sub_resource type="StyleBoxFlat" id=13]
bg_color = Color( 0, 0, 0, 1 )
border_width_top = 1
border_color = Color( 0.372549, 0.360784, 0.301961, 1 )
[sub_resource type="StyleBoxFlat" id=11]
[sub_resource type="StyleBoxFlat" id=14]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="StyleBoxFlat" id=12]
[sub_resource type="StyleBoxFlat" id=15]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_top = 3
border_width_bottom = 3
border_color = Color( 0.321569, 0.321569, 0.321569, 1 )
[sub_resource type="StyleBoxFlat" id=13]
[sub_resource type="StyleBoxFlat" id=16]
bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 )
border_width_left = 1
border_width_top = 1
@ -136,10 +136,10 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=14]
[sub_resource type="StyleBoxFlat" id=17]
bg_color = Color( 0.760784, 0.752941, 0.647059, 1 )
[sub_resource type="StyleBoxFlat" id=15]
[sub_resource type="StyleBoxFlat" id=18]
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 6
border_width_top = 10
@ -152,10 +152,10 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=16]
[sub_resource type="StyleBoxFlat" id=19]
bg_color = Color( 0.2, 0.2, 0.2, 1 )
[sub_resource type="StyleBoxFlat" id=17]
[sub_resource type="StyleBoxFlat" id=20]
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 5
border_width_top = 10
@ -168,7 +168,7 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=18]
[sub_resource type="StyleBoxFlat" id=21]
bg_color = Color( 0.372549, 0.360784, 0.301961, 1 )
border_width_left = 10
border_width_top = 6
@ -176,7 +176,7 @@ border_width_right = 10
border_width_bottom = 8
border_color = Color( 0.372549, 0.360784, 0.301961, 1 )
[sub_resource type="StyleBoxFlat" id=19]
[sub_resource type="StyleBoxFlat" id=22]
bg_color = Color( 0.145098, 0.145098, 0.164706, 1 )
border_width_left = 10
border_width_top = 6
@ -184,7 +184,7 @@ border_width_right = 10
border_width_bottom = 8
border_color = Color( 0.145098, 0.145098, 0.164706, 1 )
[sub_resource type="StyleBoxFlat" id=20]
[sub_resource type="StyleBoxFlat" id=23]
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 10
border_width_top = 6
@ -192,7 +192,7 @@ border_width_right = 10
border_width_bottom = 8
border_color = Color( 0.588235, 0.568627, 0.470588, 1 )
[sub_resource type="StyleBoxFlat" id=21]
[sub_resource type="StyleBoxFlat" id=24]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_left = 4
border_width_top = 4
@ -205,7 +205,7 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=22]
[sub_resource type="StyleBoxFlat" id=25]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_left = 4
border_width_top = 4
@ -217,7 +217,7 @@ corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="StyleBoxFlat" id=29]
[sub_resource type="StyleBoxFlat" id=26]
bg_color = Color( 0.445313, 0.432846, 0.370514, 1 )
border_width_left = 5
border_width_right = 5
@ -227,12 +227,12 @@ corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="StyleBoxFlat" id=25]
[sub_resource type="StyleBoxFlat" id=27]
bg_color = Color( 0.372549, 0.360784, 0.301961, 1 )
border_width_left = 1
border_color = Color( 0.372549, 0.360784, 0.301961, 1 )
[sub_resource type="StyleBoxFlat" id=23]
[sub_resource type="StyleBoxFlat" id=28]
bg_color = Color( 0.878431, 0.87451, 0.819608, 1 )
border_width_top = 20
border_color = Color( 0.372549, 0.360784, 0.301961, 1 )
@ -246,11 +246,11 @@ 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/disabled = SubResource( 27 )
Button/styles/disabled = SubResource( 1 )
Button/styles/focus = null
Button/styles/hover = SubResource( 1 )
Button/styles/normal = SubResource( 2 )
Button/styles/pressed = SubResource( 3 )
Button/styles/hover = SubResource( 2 )
Button/styles/normal = SubResource( 3 )
Button/styles/pressed = SubResource( 4 )
CheckBox/colors/font_color = Color( 0, 0, 0, 1 )
CheckBox/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
CheckBox/colors/font_color_hover = Color( 0, 0, 0, 1 )
@ -265,10 +265,10 @@ CheckBox/icons/radio_unchecked = null
CheckBox/icons/unchecked = null
CheckBox/styles/disabled = null
CheckBox/styles/focus = null
CheckBox/styles/hover = SubResource( 4 )
CheckBox/styles/hover_pressed = SubResource( 5 )
CheckBox/styles/normal = SubResource( 6 )
CheckBox/styles/pressed = SubResource( 7 )
CheckBox/styles/hover = SubResource( 5 )
CheckBox/styles/hover_pressed = SubResource( 6 )
CheckBox/styles/normal = SubResource( 7 )
CheckBox/styles/pressed = SubResource( 8 )
ColorPicker/constants/h_width = 30
ColorPicker/constants/label_width = 10
ColorPicker/constants/margin = 4
@ -291,22 +291,22 @@ HScrollBar/icons/decrement = null
HScrollBar/icons/decrement_highlight = null
HScrollBar/icons/increment = null
HScrollBar/icons/increment_highlight = null
HScrollBar/styles/grabber = SubResource( 8 )
HScrollBar/styles/grabber_highlight = SubResource( 9 )
HScrollBar/styles/grabber_pressed = SubResource( 10 )
HScrollBar/styles/scroll = SubResource( 28 )
HScrollBar/styles/grabber = SubResource( 9 )
HScrollBar/styles/grabber_highlight = SubResource( 10 )
HScrollBar/styles/grabber_pressed = SubResource( 11 )
HScrollBar/styles/scroll = SubResource( 12 )
HScrollBar/styles/scroll_focus = null
HSeparator/constants/separation = 4
HSeparator/styles/separator = SubResource( 26 )
HSeparator/styles/separator = SubResource( 13 )
HSlider/icons/grabber = null
HSlider/icons/grabber_disabled = null
HSlider/icons/grabber_highlight = null
HSlider/icons/tick = null
HSlider/styles/focus = null
HSlider/styles/grabber_area = SubResource( 11 )
HSlider/styles/grabber_area = SubResource( 14 )
HSlider/styles/grabber_disabled = null
HSlider/styles/grabber_highlight = null
HSlider/styles/slider = SubResource( 12 )
HSlider/styles/slider = SubResource( 15 )
Label/colors/font_color = Color( 0, 0, 0, 1 )
Label/colors/font_color_shadow = Color( 0, 0, 0, 0 )
Label/colors/font_outline_modulate = Color( 0, 0, 0, 1 )
@ -326,7 +326,7 @@ LineEdit/constants/minimum_spaces = 12
LineEdit/fonts/font = null
LineEdit/icons/clear = null
LineEdit/styles/focus = null
LineEdit/styles/normal = SubResource( 13 )
LineEdit/styles/normal = SubResource( 16 )
LineEdit/styles/read_only = null
MenuButton/colors/font_color = Color( 0.878431, 0.878431, 0.878431, 1 )
MenuButton/colors/font_color_disabled = Color( 1, 1, 1, 0.3 )
@ -352,7 +352,7 @@ OptionButton/styles/focus = null
OptionButton/styles/hover = null
OptionButton/styles/normal = null
OptionButton/styles/pressed = null
Panel/styles/panel = SubResource( 14 )
Panel/styles/panel = SubResource( 17 )
Panel/styles/panelf = null
Panel/styles/panelnc = null
PopupMenu/colors/font_color = Color( 0, 0, 0, 1 )
@ -370,10 +370,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( 15 )
PopupMenu/styles/panel = SubResource( 18 )
PopupMenu/styles/panel_disabled = null
PopupMenu/styles/separator = null
PopupPanel/styles/panel = SubResource( 16 )
PopupPanel/styles/panel = SubResource( 19 )
SpinBox/icons/updown = null
TabContainer/colors/font_color_bg = Color( 0, 0, 0, 1 )
TabContainer/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
@ -390,10 +390,10 @@ TabContainer/icons/increment = null
TabContainer/icons/increment_highlight = null
TabContainer/icons/menu = null
TabContainer/icons/menu_highlight = null
TabContainer/styles/panel = SubResource( 17 )
TabContainer/styles/tab_bg = SubResource( 18 )
TabContainer/styles/tab_disabled = SubResource( 19 )
TabContainer/styles/tab_fg = SubResource( 20 )
TabContainer/styles/panel = SubResource( 20 )
TabContainer/styles/tab_bg = SubResource( 21 )
TabContainer/styles/tab_disabled = SubResource( 22 )
TabContainer/styles/tab_fg = SubResource( 23 )
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 )
@ -425,7 +425,7 @@ TextEdit/fonts/font = null
TextEdit/icons/tab = null
TextEdit/styles/completion = null
TextEdit/styles/focus = null
TextEdit/styles/normal = SubResource( 21 )
TextEdit/styles/normal = SubResource( 24 )
TextEdit/styles/read_only = null
Tree/colors/cursor_color = Color( 0, 0, 0, 1 )
Tree/colors/custom_button_font_highlight = Color( 0.941176, 0.941176, 0.941176, 1 )
@ -453,7 +453,7 @@ Tree/icons/checked = null
Tree/icons/select_arrow = null
Tree/icons/unchecked = null
Tree/icons/updown = null
Tree/styles/bg = SubResource( 22 )
Tree/styles/bg = SubResource( 25 )
Tree/styles/bg_focus = null
Tree/styles/button_pressed = null
Tree/styles/cursor = null
@ -471,13 +471,13 @@ VScrollBar/icons/decrement = null
VScrollBar/icons/decrement_highlight = null
VScrollBar/icons/increment = null
VScrollBar/icons/increment_highlight = null
VScrollBar/styles/grabber = SubResource( 8 )
VScrollBar/styles/grabber_highlight = SubResource( 9 )
VScrollBar/styles/grabber_pressed = SubResource( 10 )
VScrollBar/styles/scroll = SubResource( 29 )
VScrollBar/styles/grabber = SubResource( 9 )
VScrollBar/styles/grabber_highlight = SubResource( 10 )
VScrollBar/styles/grabber_pressed = SubResource( 11 )
VScrollBar/styles/scroll = SubResource( 26 )
VScrollBar/styles/scroll_focus = null
VSeparator/constants/separation = 4
VSeparator/styles/separator = SubResource( 25 )
VSeparator/styles/separator = SubResource( 27 )
WindowDialog/colors/title_color = Color( 1, 1, 1, 1 )
WindowDialog/constants/close_h_ofs = 18
WindowDialog/constants/close_v_ofs = 18
@ -486,4 +486,4 @@ WindowDialog/constants/title_height = 20
WindowDialog/fonts/title_font = null
WindowDialog/icons/close = null
WindowDialog/icons/close_highlight = null
WindowDialog/styles/panel = SubResource( 23 )
WindowDialog/styles/panel = SubResource( 28 )

View file

@ -33,11 +33,11 @@ _global_script_class_icons={
[application]
config/name="Pixelorama"
config/description="A free & open-source 2D sprite editor"
run/main_scene="res://Main.tscn"
boot_splash/image="res://splash.png"
boot_splash/bg_color=Color( 0.145098, 0.145098, 0.164706, 1 )
config/icon="res://icon.png"
config/description="A free & open-source 2D sprite editor"
config/Version="v0.5"
[autoload]