1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Decorative changes to reference and tool headers (#788)

* Added a header to reference pannel

Also fixed it's anchor

* Added decorative lines to the tools header

* Fixed the Label path
This commit is contained in:
Variable 2022-12-07 21:22:09 +05:00 committed by GitHub
parent 1499e7f704
commit 2bf290faa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 11 deletions

View file

@ -19,7 +19,7 @@ func _ready() -> void:
color_rect.color = Global.left_tool_color color_rect.color = Global.left_tool_color
else: else:
color_rect.color = Global.right_tool_color color_rect.color = Global.right_tool_color
$Label.text = Tools.tools[name].display_name $Header/Label.text = Tools.tools[name].display_name
load_config() load_config()

View file

@ -15,11 +15,26 @@ margin_right = 116.0
margin_bottom = 4.0 margin_bottom = 4.0
rect_min_size = Vector2( 0, 4 ) rect_min_size = Vector2( 0, 4 )
[node name="Label" type="Label" parent="."] [node name="Header" type="HBoxContainer" parent="."]
margin_top = 8.0 margin_top = 8.0
margin_right = 116.0 margin_right = 116.0
margin_bottom = 22.0 margin_bottom = 22.0
custom_constants/separation = 0
[node name="HSeparator2" type="HSeparator" parent="Header"]
margin_right = 23.0
margin_bottom = 14.0
size_flags_horizontal = 3
[node name="Label" type="Label" parent="Header"]
margin_left = 23.0
margin_right = 92.0
margin_bottom = 14.0
theme_type_variation = "Header" theme_type_variation = "Header"
text = "Tool" text = "Tool Name"
align = 1
autowrap = true [node name="HSeparator" type="HSeparator" parent="Header"]
margin_left = 92.0
margin_right = 116.0
margin_bottom = 14.0
size_flags_horizontal = 3

View file

@ -3,22 +3,49 @@
[ext_resource path="res://src/UI/ReferencesPanel.gd" type="Script" id=1] [ext_resource path="res://src/UI/ReferencesPanel.gd" type="Script" id=1]
[node name="Reference Images" type="VBoxContainer"] [node name="Reference Images" type="VBoxContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 ) script = ExtResource( 1 )
[node name="Header" type="HBoxContainer" parent="."]
margin_right = 1280.0
margin_bottom = 14.0
custom_constants/separation = 0
[node name="HSeparator2" type="HSeparator" parent="Header"]
margin_right = 582.0
margin_bottom = 14.0
size_flags_horizontal = 3
[node name="Label" type="Label" parent="Header"]
margin_left = 582.0
margin_right = 697.0
margin_bottom = 14.0
theme_type_variation = "Header"
text = "Reference Images"
[node name="HSeparator" type="HSeparator" parent="Header"]
margin_left = 697.0
margin_right = 1280.0
margin_bottom = 14.0
size_flags_horizontal = 3
[node name="Label" type="Label" parent="."] [node name="Label" type="Label" parent="."]
margin_right = 1.0 margin_top = 18.0
margin_bottom = 1000.0 margin_right = 1280.0
margin_bottom = 32.0
text = "When opening an image, it may be imported as a reference." text = "When opening an image, it may be imported as a reference."
autowrap = true autowrap = true
[node name="Scroll" type="ScrollContainer" parent="."] [node name="Scroll" type="ScrollContainer" parent="."]
margin_top = 1004.0 margin_top = 36.0
margin_right = 1.0 margin_right = 1280.0
margin_bottom = 1004.0 margin_bottom = 720.0
size_flags_horizontal = 3 size_flags_horizontal = 3
size_flags_vertical = 3 size_flags_vertical = 3
[node name="List" type="VBoxContainer" parent="Scroll"] [node name="List" type="VBoxContainer" parent="Scroll"]
margin_right = 1.0 margin_right = 1280.0
margin_bottom = 684.0
size_flags_horizontal = 3 size_flags_horizontal = 3
size_flags_vertical = 3 size_flags_vertical = 3