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

Change selected frame label color based on theme

This commit is contained in:
OverloadedOrama 2020-05-06 01:36:14 +03:00
parent f99b486919
commit 3c39e28d72
6 changed files with 24 additions and 1 deletions

View file

@ -426,6 +426,16 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = ExtResource( 4 )
HSplitContainer/styles/bg = SubResource( 19 )
"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_shadow = Color( 0, 0, 0, 0 )
Label/colors/font_outline_modulate = Color( 1, 1, 1, 1 )
Label/constants/line_spacing = 3
Label/constants/shadow_as_outline = 0
Label/constants/shadow_offset_x = 1
Label/constants/shadow_offset_y = 1
Label/fonts/font = null
Label/styles/normal = null
LineEdit/colors/clear_button_color = Color( 0.878431, 0.878431, 0.878431, 1 )
LineEdit/colors/clear_button_color_pressed = Color( 1, 1, 1, 1 )
LineEdit/colors/cursor_color = Color( 0.941176, 0.941176, 0.941176, 1 )

View file

@ -10418,6 +10418,7 @@ ItemList/styles/cursor = SubResource( 1408 )
ItemList/styles/cursor_unfocused = SubResource( 1408 )
ItemList/styles/selected = SubResource( 1409 )
ItemList/styles/selected_focus = SubResource( 1410 )
"Label/colors/Selected Color" = Color( 0.545098, 0.619608, 0.788235, 1 )
Label/colors/font_color = Color( 0.8, 0.8075, 0.8275, 1 )
Label/colors/font_color_shadow = Color( 0, 0, 0, 0 )
Label/constants/line_spacing = 2

View file

@ -366,6 +366,7 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = ExtResource( 1 )
HSplitContainer/styles/bg = null
"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_shadow = Color( 0, 0, 0, 0 )
Label/colors/font_outline_modulate = Color( 0, 0, 0, 1 )

View file

@ -377,6 +377,16 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = SubResource( 20 )
HSplitContainer/styles/bg = null
"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_shadow = Color( 0, 0, 0, 0 )
Label/colors/font_outline_modulate = Color( 1, 1, 1, 1 )
Label/constants/line_spacing = 3
Label/constants/shadow_as_outline = 0
Label/constants/shadow_offset_x = 1
Label/constants/shadow_offset_y = 1
Label/fonts/font = null
Label/styles/normal = null
LineEdit/colors/clear_button_color = Color( 0.878431, 0.878431, 0.878431, 1 )
LineEdit/colors/clear_button_color_pressed = Color( 1, 1, 1, 1 )
LineEdit/colors/cursor_color = Color( 0.941176, 0.941176, 0.941176, 1 )

View file

@ -376,6 +376,7 @@ HSplitContainer/constants/autohide = 1
HSplitContainer/constants/separation = 6
HSplitContainer/icons/grabber = ExtResource( 1 )
HSplitContainer/styles/bg = null
"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_shadow = Color( 0, 0, 0, 0 )
Label/colors/font_outline_modulate = Color( 0, 0, 0, 1 )

View file

@ -644,7 +644,7 @@ func frame_changed(value : int) -> void:
# Select the new canvas/frame
canvas = canvases[current_frame]
canvas.visible = true
frame_ids.get_child(current_frame).add_color_override("font_color", Color("#3c5d75"))
frame_ids.get_child(current_frame).add_color_override("font_color", control.theme.get_color("Selected Color", "Label"))
if current_frame < layers[current_layer][3].get_child_count():
layers[current_layer][3].get_child(current_frame).pressed = true