1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Added ItemList to themes

This commit is contained in:
OverloadedOrama 2020-05-31 23:43:24 +03:00
parent 69f08e90fd
commit 71fa2795b1
7 changed files with 1517 additions and 1466 deletions

View file

@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [v0.7.1] - Unreleased ## [v0.7.1] - Unreleased
This update has been brought to you by the contributions of: This update has been brought to you by the contributions of:
Igor Santarek (jegor377) Igor Santarek (jegor377), rob-a-bolton
### Added ### Added
- Ability to remove the current palette - Ability to remove the current palette
@ -17,6 +17,9 @@ Igor Santarek (jegor377)
### Changed ### Changed
- Drawing is no longer limited by the canvas boundaries. This means that, if you have a brush largen than 1px, you can draw on the edges of the canvas. All pixels that are being drawn outside of the canvas will still have no effect. - Drawing is no longer limited by the canvas boundaries. This means that, if you have a brush largen than 1px, you can draw on the edges of the canvas. All pixels that are being drawn outside of the canvas will still have no effect.
### Fixed
- Fixed failed imports of gpl palettes by adding support for the newer variant of gpl files ([#250](https://github.com/Orama-Interactive/Pixelorama/pull/250))
## [v0.7] - 2020-05-16 ## [v0.7] - 2020-05-16
This update has been brought to you by the contributions of: This update has been brought to you by the contributions of:

File diff suppressed because one or more lines are too long

View file

@ -152,6 +152,18 @@ border_color = Color( 0.321569, 0.321569, 0.321569, 1 )
expand_margin_top = 2.0 expand_margin_top = 2.0
expand_margin_bottom = 2.0 expand_margin_bottom = 2.0
[sub_resource type="StyleBoxFlat" id=27]
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color( 0.588235, 0.568627, 0.470588, 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=17] [sub_resource type="StyleBoxFlat" id=17]
bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 ) bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 )
border_width_left = 1 border_width_left = 1
@ -245,18 +257,6 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4 corner_radius_bottom_left = 4
anti_aliasing = false anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=27]
bg_color = Color( 0.588235, 0.568627, 0.470588, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color( 0.588235, 0.568627, 0.470588, 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=28] [sub_resource type="StyleBoxFlat" id=28]
bg_color = Color( 0.445313, 0.432846, 0.370514, 1 ) bg_color = Color( 0.445313, 0.432846, 0.370514, 1 )
border_width_left = 5 border_width_left = 5
@ -367,6 +367,20 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6 HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = ExtResource( 4 ) HSplitContainer/icons/grabber = ExtResource( 4 )
HSplitContainer/styles/bg = null HSplitContainer/styles/bg = null
ItemList/colors/font_color = Color( 0, 0, 0, 1 )
ItemList/colors/font_color_selected = Color( 0.278431, 0.278431, 0.278431, 1 )
ItemList/colors/guide_color = Color( 0, 0, 0, 0.1 )
ItemList/constants/hseparation = 4
ItemList/constants/icon_margin = 4
ItemList/constants/line_separation = 2
ItemList/constants/vseparation = 4
ItemList/fonts/font = null
ItemList/styles/bg = SubResource( 27 )
ItemList/styles/bg_focus = null
ItemList/styles/cursor = null
ItemList/styles/cursor_unfocused = null
ItemList/styles/selected = null
ItemList/styles/selected_focus = null
"Label/colors/Selected Color" = Color( 0.235294, 0.364706, 0.458824, 1 ) "Label/colors/Selected Color" = Color( 0.235294, 0.364706, 0.458824, 1 )
Label/colors/font_color = Color( 0, 0, 0, 1 ) Label/colors/font_color = Color( 0, 0, 0, 1 )
Label/colors/font_color_shadow = Color( 0, 0, 0, 0 ) Label/colors/font_color_shadow = Color( 0, 0, 0, 0 )
@ -512,7 +526,7 @@ Tree/colors/cursor_color = Color( 0, 0, 0, 1 )
Tree/colors/custom_button_font_highlight = Color( 0.941176, 0.941176, 0.941176, 1 ) Tree/colors/custom_button_font_highlight = Color( 0.941176, 0.941176, 0.941176, 1 )
Tree/colors/drop_position_color = Color( 1, 0.3, 0.2, 1 ) Tree/colors/drop_position_color = Color( 1, 0.3, 0.2, 1 )
Tree/colors/font_color = Color( 0, 0, 0, 1 ) Tree/colors/font_color = Color( 0, 0, 0, 1 )
Tree/colors/font_color_selected = Color( 0, 0, 0, 1 ) Tree/colors/font_color_selected = Color( 0.443137, 0.443137, 0.443137, 1 )
Tree/colors/guide_color = Color( 0, 0, 0, 0.1 ) Tree/colors/guide_color = Color( 0, 0, 0, 0.1 )
Tree/colors/relationship_line_color = Color( 0.27451, 0.27451, 0.27451, 1 ) Tree/colors/relationship_line_color = Color( 0.27451, 0.27451, 0.27451, 1 )
Tree/colors/selection_color = Color( 0.1, 0.1, 1, 0.8 ) Tree/colors/selection_color = Color( 0.1, 0.1, 1, 0.8 )

View file

@ -172,6 +172,18 @@ border_color = Color( 0.321569, 0.321569, 0.321569, 1 )
[sub_resource type="StyleBoxFlat" id=19] [sub_resource type="StyleBoxFlat" id=19]
bg_color = Color( 0.133333, 0.133333, 0.133333, 1 ) bg_color = Color( 0.133333, 0.133333, 0.133333, 1 )
[sub_resource type="StyleBoxFlat" id=32]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_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=20] [sub_resource type="StyleBoxFlat" id=20]
bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 ) bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 )
border_width_left = 1 border_width_left = 1
@ -286,18 +298,6 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4 corner_radius_bottom_left = 4
anti_aliasing = false anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=32]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_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=33] [sub_resource type="StyleBoxFlat" id=33]
border_width_left = 2 border_width_left = 2
border_width_right = 2 border_width_right = 2
@ -419,6 +419,20 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6 HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = ExtResource( 4 ) HSplitContainer/icons/grabber = ExtResource( 4 )
HSplitContainer/styles/bg = SubResource( 19 ) HSplitContainer/styles/bg = SubResource( 19 )
ItemList/colors/font_color = Color( 0.690196, 0.690196, 0.690196, 1 )
ItemList/colors/font_color_selected = Color( 1, 1, 1, 1 )
ItemList/colors/guide_color = Color( 0, 0, 0, 0.1 )
ItemList/constants/hseparation = 4
ItemList/constants/icon_margin = 4
ItemList/constants/line_separation = 2
ItemList/constants/vseparation = 4
ItemList/fonts/font = null
ItemList/styles/bg = SubResource( 32 )
ItemList/styles/bg_focus = null
ItemList/styles/cursor = null
ItemList/styles/cursor_unfocused = null
ItemList/styles/selected = null
ItemList/styles/selected_focus = null
"Label/colors/Selected Color" = Color( 0.235294, 0.364706, 0.458824, 1 ) "Label/colors/Selected Color" = Color( 0.235294, 0.364706, 0.458824, 1 )
Label/colors/font_color = Color( 1, 1, 1, 1 ) Label/colors/font_color = Color( 1, 1, 1, 1 )
Label/colors/font_color_shadow = Color( 0, 0, 0, 0 ) Label/colors/font_color_shadow = Color( 0, 0, 0, 0 )

View file

@ -165,6 +165,18 @@ border_color = Color( 0.321569, 0.321569, 0.321569, 1 )
expand_margin_top = 2.0 expand_margin_top = 2.0
expand_margin_bottom = 2.0 expand_margin_bottom = 2.0
[sub_resource type="StyleBoxFlat" id=28]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_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=18] [sub_resource type="StyleBoxFlat" id=18]
bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 ) bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 )
border_width_left = 1 border_width_left = 1
@ -258,18 +270,6 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4 corner_radius_bottom_left = 4
anti_aliasing = false anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=28]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_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=29] [sub_resource type="StyleBoxFlat" id=29]
bg_color = Color( 0.321569, 0.321569, 0.321569, 1 ) bg_color = Color( 0.321569, 0.321569, 0.321569, 1 )
border_width_left = 2 border_width_left = 2
@ -370,6 +370,20 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6 HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = ExtResource( 6 ) HSplitContainer/icons/grabber = ExtResource( 6 )
HSplitContainer/styles/bg = null HSplitContainer/styles/bg = null
ItemList/colors/font_color = Color( 0.690196, 0.690196, 0.690196, 1 )
ItemList/colors/font_color_selected = Color( 1, 1, 1, 1 )
ItemList/colors/guide_color = Color( 0, 0, 0, 0.1 )
ItemList/constants/hseparation = 4
ItemList/constants/icon_margin = 4
ItemList/constants/line_separation = 2
ItemList/constants/vseparation = 4
ItemList/fonts/font = null
ItemList/styles/bg = SubResource( 28 )
ItemList/styles/bg_focus = null
ItemList/styles/cursor = null
ItemList/styles/cursor_unfocused = null
ItemList/styles/selected = null
ItemList/styles/selected_focus = null
"Label/colors/Selected Color" = Color( 0.235294, 0.364706, 0.458824, 1 ) "Label/colors/Selected Color" = Color( 0.235294, 0.364706, 0.458824, 1 )
Label/colors/font_color = Color( 1, 1, 1, 1 ) Label/colors/font_color = Color( 1, 1, 1, 1 )
Label/colors/font_color_shadow = Color( 0, 0, 0, 0 ) Label/colors/font_color_shadow = Color( 0, 0, 0, 0 )

View file

@ -176,6 +176,18 @@ expand_margin_top = 2.0
expand_margin_bottom = 2.0 expand_margin_bottom = 2.0
[sub_resource type="StyleBoxFlat" id=19] [sub_resource type="StyleBoxFlat" id=19]
bg_color = Color( 0.627451, 0.627451, 0.627451, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color( 0.627451, 0.627451, 0.627451, 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=20]
bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 ) bg_color = Color( 0.109804, 0.0862745, 0.0862745, 0 )
border_width_left = 1 border_width_left = 1
border_width_top = 1 border_width_top = 1
@ -188,10 +200,10 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4 corner_radius_bottom_left = 4
anti_aliasing = false anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=20] [sub_resource type="StyleBoxFlat" id=21]
bg_color = Color( 0.772549, 0.772549, 0.772549, 1 ) bg_color = Color( 0.772549, 0.772549, 0.772549, 1 )
[sub_resource type="StyleBoxFlat" id=21] [sub_resource type="StyleBoxFlat" id=22]
content_margin_left = 4.5 content_margin_left = 4.5
content_margin_right = 4.5 content_margin_right = 4.5
content_margin_top = 3.0 content_margin_top = 3.0
@ -202,7 +214,7 @@ corner_radius_top_right = 5
corner_radius_bottom_right = 5 corner_radius_bottom_right = 5
corner_radius_bottom_left = 5 corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id=22] [sub_resource type="StyleBoxFlat" id=23]
bg_color = Color( 0.627451, 0.627451, 0.627451, 1 ) bg_color = Color( 0.627451, 0.627451, 0.627451, 1 )
border_width_left = 6 border_width_left = 6
border_width_top = 10 border_width_top = 10
@ -215,10 +227,10 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4 corner_radius_bottom_left = 4
anti_aliasing = false anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=23] [sub_resource type="StyleBoxFlat" id=24]
bg_color = Color( 0.764706, 0.764706, 0.764706, 1 ) bg_color = Color( 0.764706, 0.764706, 0.764706, 1 )
[sub_resource type="StyleBoxFlat" id=24] [sub_resource type="StyleBoxFlat" id=25]
bg_color = Color( 0.627451, 0.627451, 0.627451, 1 ) bg_color = Color( 0.627451, 0.627451, 0.627451, 1 )
border_width_left = 5 border_width_left = 5
border_width_top = 10 border_width_top = 10
@ -231,7 +243,7 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4 corner_radius_bottom_left = 4
anti_aliasing = false anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=25] [sub_resource type="StyleBoxFlat" id=26]
bg_color = Color( 0.352941, 0.352941, 0.352941, 1 ) bg_color = Color( 0.352941, 0.352941, 0.352941, 1 )
border_width_left = 10 border_width_left = 10
border_width_top = 6 border_width_top = 6
@ -239,7 +251,7 @@ border_width_right = 10
border_width_bottom = 8 border_width_bottom = 8
border_color = Color( 0.352941, 0.352941, 0.352941, 1 ) border_color = Color( 0.352941, 0.352941, 0.352941, 1 )
[sub_resource type="StyleBoxFlat" id=26] [sub_resource type="StyleBoxFlat" id=27]
bg_color = Color( 0.239216, 0.239216, 0.239216, 1 ) bg_color = Color( 0.239216, 0.239216, 0.239216, 1 )
border_width_left = 10 border_width_left = 10
border_width_top = 6 border_width_top = 6
@ -247,7 +259,7 @@ border_width_right = 10
border_width_bottom = 8 border_width_bottom = 8
border_color = Color( 0.239216, 0.239216, 0.239216, 1 ) border_color = Color( 0.239216, 0.239216, 0.239216, 1 )
[sub_resource type="StyleBoxFlat" id=27] [sub_resource type="StyleBoxFlat" id=28]
bg_color = Color( 0.627451, 0.627451, 0.627451, 1 ) bg_color = Color( 0.627451, 0.627451, 0.627451, 1 )
border_width_left = 10 border_width_left = 10
border_width_top = 6 border_width_top = 6
@ -255,19 +267,6 @@ border_width_right = 10
border_width_bottom = 8 border_width_bottom = 8
border_color = Color( 0.627451, 0.627451, 0.627451, 1 ) border_color = Color( 0.627451, 0.627451, 0.627451, 1 )
[sub_resource type="StyleBoxFlat" id=28]
bg_color = Color( 0.627451, 0.627451, 0.627451, 1 )
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color( 0.627451, 0.627451, 0.627451, 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=29] [sub_resource type="StyleBoxFlat" id=29]
bg_color = Color( 0.627451, 0.627451, 0.627451, 1 ) bg_color = Color( 0.627451, 0.627451, 0.627451, 1 )
border_width_left = 4 border_width_left = 4
@ -279,6 +278,7 @@ corner_radius_top_left = 4
corner_radius_top_right = 4 corner_radius_top_right = 4
corner_radius_bottom_right = 4 corner_radius_bottom_right = 4
corner_radius_bottom_left = 4 corner_radius_bottom_left = 4
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id=30] [sub_resource type="StyleBoxFlat" id=30]
bg_color = Color( 0.529412, 0.529412, 0.529412, 1 ) bg_color = Color( 0.529412, 0.529412, 0.529412, 1 )
@ -390,6 +390,20 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6 HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = ExtResource( 1 ) HSplitContainer/icons/grabber = ExtResource( 1 )
HSplitContainer/styles/bg = null HSplitContainer/styles/bg = null
ItemList/colors/font_color = Color( 0, 0, 0, 1 )
ItemList/colors/font_color_selected = Color( 0.278431, 0.278431, 0.278431, 1 )
ItemList/colors/guide_color = Color( 0, 0, 0, 0.1 )
ItemList/constants/hseparation = 4
ItemList/constants/icon_margin = 4
ItemList/constants/line_separation = 2
ItemList/constants/vseparation = 4
ItemList/fonts/font = null
ItemList/styles/bg = SubResource( 19 )
ItemList/styles/bg_focus = null
ItemList/styles/cursor = null
ItemList/styles/cursor_unfocused = null
ItemList/styles/selected = null
ItemList/styles/selected_focus = null
"Label/colors/Selected Color" = Color( 0.545098, 0.619608, 0.788235, 1 ) "Label/colors/Selected Color" = Color( 0.545098, 0.619608, 0.788235, 1 )
Label/colors/font_color = Color( 0, 0, 0, 1 ) Label/colors/font_color = Color( 0, 0, 0, 1 )
Label/colors/font_color_shadow = Color( 0, 0, 0, 0 ) Label/colors/font_color_shadow = Color( 0, 0, 0, 0 )
@ -410,7 +424,7 @@ LineEdit/constants/minimum_spaces = 12
LineEdit/fonts/font = null LineEdit/fonts/font = null
LineEdit/icons/clear = null LineEdit/icons/clear = null
LineEdit/styles/focus = null LineEdit/styles/focus = null
LineEdit/styles/normal = SubResource( 19 ) LineEdit/styles/normal = SubResource( 20 )
LineEdit/styles/read_only = null LineEdit/styles/read_only = null
MenuButton/colors/font_color = Color( 0, 0, 0, 1 ) MenuButton/colors/font_color = Color( 0, 0, 0, 1 )
MenuButton/colors/font_color_disabled = Color( 1, 1, 1, 0.3 ) MenuButton/colors/font_color_disabled = Color( 1, 1, 1, 0.3 )
@ -436,10 +450,10 @@ OptionButton/styles/focus = null
OptionButton/styles/hover = null OptionButton/styles/hover = null
OptionButton/styles/normal = null OptionButton/styles/normal = null
OptionButton/styles/pressed = null OptionButton/styles/pressed = null
Panel/styles/panel = SubResource( 20 ) Panel/styles/panel = SubResource( 21 )
Panel/styles/panelf = null Panel/styles/panelf = null
Panel/styles/panelnc = null Panel/styles/panelnc = null
PanelContainer/styles/panel = SubResource( 21 ) PanelContainer/styles/panel = SubResource( 22 )
PopupMenu/colors/font_color = Color( 0, 0, 0, 1 ) PopupMenu/colors/font_color = Color( 0, 0, 0, 1 )
PopupMenu/colors/font_color_accel = Color( 0.164706, 0.164706, 0.164706, 0.8 ) PopupMenu/colors/font_color_accel = Color( 0.164706, 0.164706, 0.164706, 0.8 )
PopupMenu/colors/font_color_disabled = Color( 0.4, 0.4, 0.4, 0.8 ) PopupMenu/colors/font_color_disabled = Color( 0.4, 0.4, 0.4, 0.8 )
@ -455,10 +469,10 @@ PopupMenu/icons/unchecked = null
PopupMenu/styles/hover = null PopupMenu/styles/hover = null
PopupMenu/styles/labeled_separator_left = null PopupMenu/styles/labeled_separator_left = null
PopupMenu/styles/labeled_separator_right = null PopupMenu/styles/labeled_separator_right = null
PopupMenu/styles/panel = SubResource( 22 ) PopupMenu/styles/panel = SubResource( 23 )
PopupMenu/styles/panel_disabled = null PopupMenu/styles/panel_disabled = null
PopupMenu/styles/separator = null PopupMenu/styles/separator = null
PopupPanel/styles/panel = SubResource( 23 ) PopupPanel/styles/panel = SubResource( 24 )
SpinBox/icons/updown = ExtResource( 6 ) SpinBox/icons/updown = ExtResource( 6 )
TabContainer/colors/font_color_bg = Color( 0, 0, 0, 1 ) TabContainer/colors/font_color_bg = Color( 0, 0, 0, 1 )
TabContainer/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 ) TabContainer/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
@ -475,10 +489,10 @@ TabContainer/icons/increment = null
TabContainer/icons/increment_highlight = null TabContainer/icons/increment_highlight = null
TabContainer/icons/menu = null TabContainer/icons/menu = null
TabContainer/icons/menu_highlight = null TabContainer/icons/menu_highlight = null
TabContainer/styles/panel = SubResource( 24 ) TabContainer/styles/panel = SubResource( 25 )
TabContainer/styles/tab_bg = SubResource( 25 ) TabContainer/styles/tab_bg = SubResource( 26 )
TabContainer/styles/tab_disabled = SubResource( 26 ) TabContainer/styles/tab_disabled = SubResource( 27 )
TabContainer/styles/tab_fg = SubResource( 27 ) TabContainer/styles/tab_fg = SubResource( 28 )
Tabs/colors/font_color_bg = Color( 0.69, 0.69, 0.69, 1 ) 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_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
Tabs/colors/font_color_fg = Color( 0.94, 0.94, 0.94, 1 ) Tabs/colors/font_color_fg = Color( 0.94, 0.94, 0.94, 1 )
@ -494,10 +508,10 @@ Tabs/icons/increment = null
Tabs/icons/increment_highlight = null Tabs/icons/increment_highlight = null
Tabs/styles/button = null Tabs/styles/button = null
Tabs/styles/button_pressed = null Tabs/styles/button_pressed = null
Tabs/styles/panel = SubResource( 24 ) Tabs/styles/panel = SubResource( 25 )
Tabs/styles/tab_bg = SubResource( 25 ) Tabs/styles/tab_bg = SubResource( 26 )
Tabs/styles/tab_disabled = SubResource( 26 ) Tabs/styles/tab_disabled = SubResource( 27 )
Tabs/styles/tab_fg = SubResource( 27 ) Tabs/styles/tab_fg = SubResource( 28 )
TextEdit/colors/background_color = Color( 0, 0, 0, 0 ) TextEdit/colors/background_color = Color( 0, 0, 0, 0 )
TextEdit/colors/brace_mismatch_color = Color( 1, 0.2, 0.2, 1 ) 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 ) TextEdit/colors/breakpoint_color = Color( 0.8, 0.8, 0.4, 0.2 )
@ -529,7 +543,7 @@ TextEdit/fonts/font = null
TextEdit/icons/tab = null TextEdit/icons/tab = null
TextEdit/styles/completion = null TextEdit/styles/completion = null
TextEdit/styles/focus = null TextEdit/styles/focus = null
TextEdit/styles/normal = SubResource( 28 ) TextEdit/styles/normal = SubResource( 29 )
TextEdit/styles/read_only = null TextEdit/styles/read_only = null
ToolButton/colors/font_color = Color( 0, 0, 0, 1 ) ToolButton/colors/font_color = Color( 0, 0, 0, 1 )
ToolButton/colors/font_color_disabled = Color( 0.9, 0.95, 1, 0.3 ) ToolButton/colors/font_color_disabled = Color( 0.9, 0.95, 1, 0.3 )
@ -568,7 +582,7 @@ Tree/icons/checked = null
Tree/icons/select_arrow = null Tree/icons/select_arrow = null
Tree/icons/unchecked = null Tree/icons/unchecked = null
Tree/icons/updown = null Tree/icons/updown = null
Tree/styles/bg = SubResource( 29 ) Tree/styles/bg = SubResource( 19 )
Tree/styles/bg_focus = null Tree/styles/bg_focus = null
Tree/styles/button_pressed = null Tree/styles/button_pressed = null
Tree/styles/cursor = null Tree/styles/cursor = null

View file

@ -15,11 +15,11 @@ var preferences = [
["right_square_indicator_visible", "General/GridContainer/RightIndicatorCheckbox", "pressed"], ["right_square_indicator_visible", "General/GridContainer/RightIndicatorCheckbox", "pressed"],
["autosave_interval", "General/AutosaveInterval/AutosaveInterval", "value"], ["autosave_interval", "General/AutosaveInterval/AutosaveInterval", "value"],
["enable_autosave", "General/EnableAutosave", "pressed"], ["enable_autosave", "General/EnableAutosave", "pressed"],
["default_image_width", "Image/ImageOptions/ImageDefaultWidth", "value"], ["default_image_width", "Image/ImageOptions/ImageDefaultWidth", "value"],
["default_image_height", "Image/ImageOptions/ImageDefaultHeight", "value"], ["default_image_height", "Image/ImageOptions/ImageDefaultHeight", "value"],
["default_fill_color", "Image/ImageOptions/DefaultFillColor", "color"], ["default_fill_color", "Image/ImageOptions/DefaultFillColor", "color"],
["grid_width", "Canvas/GridOptions/GridWidthValue", "value"], ["grid_width", "Canvas/GridOptions/GridWidthValue", "value"],
["grid_height", "Canvas/GridOptions/GridHeightValue", "value"], ["grid_height", "Canvas/GridOptions/GridHeightValue", "value"],
["grid_color", "Canvas/GridOptions/GridColor", "color"], ["grid_color", "Canvas/GridOptions/GridColor", "color"],
@ -32,15 +32,15 @@ var preferences = [
func _ready() -> void: func _ready() -> void:
# Replace OK with Close since preference changes are being applied immediately, not after OK confirmation # Replace OK with Close since preference changes are being applied immediately, not after OK confirmation
get_ok().text = tr("Close") get_ok().text = tr("Close")
for pref in preferences: for pref in preferences:
var node = right_side.get_node(pref[1]) var node = right_side.get_node(pref[1])
if Global.config_cache.has_section_key("preferences", pref[0]): if Global.config_cache.has_section_key("preferences", pref[0]):
var value = Global.config_cache.get_value("preferences", pref[0]) var value = Global.config_cache.get_value("preferences", pref[0])
Global.set(pref[0], value) Global.set(pref[0], value)
node.set(pref[2], value) node.set(pref[2], value)
match pref[2]: match pref[2]:
"pressed": "pressed":
node.connect("toggled", self, "_on_Preference_toggled", [pref[0]]) node.connect("toggled", self, "_on_Preference_toggled", [pref[0]])
@ -87,19 +87,19 @@ func _on_Preference_item_selected(id : int, prop : String) -> void:
func preference_update(prop : String) -> void: func preference_update(prop : String) -> void:
if prop in ["autosave_interval", "enable_autosave"]: if prop in ["autosave_interval", "enable_autosave"]:
OpenSave.update_autosave() OpenSave.update_autosave()
if prop in ["grid_width", "grid_height", "grid_color"]: if prop in ["grid_width", "grid_height", "grid_color"]:
Global.canvas.update() Global.canvas.update()
if prop in ["checker_size", "checker_color_1", "checker_color_2"]: if prop in ["checker_size", "checker_color_1", "checker_color_2"]:
Global.transparent_checker._ready() Global.transparent_checker._ready()
if prop in ["guide_color"]: if prop in ["guide_color"]:
for canvas in Global.canvases: for canvas in Global.canvases:
for guide in canvas.get_children(): for guide in canvas.get_children():
if guide is Guide: if guide is Guide:
guide.default_color = Global.guide_color guide.default_color = Global.guide_color
Global.config_cache.save("user://cache.ini") Global.config_cache.save("user://cache.ini")
@ -110,7 +110,7 @@ func _on_PreferencesDialog_about_to_show(changed_language := false) -> void:
list.add_item(" " + tr("Canvas")) list.add_item(" " + tr("Canvas"))
list.add_item(" " + tr("Image")) list.add_item(" " + tr("Image"))
list.add_item(" " + tr("Shortcuts")) list.add_item(" " + tr("Shortcuts"))
list.select(1 if changed_language else 0) list.select(1 if changed_language else 0)
general.get_node("AutosaveInterval/AutosaveInterval").suffix = tr("minute(s)") general.get_node("AutosaveInterval/AutosaveInterval").suffix = tr("minute(s)")