mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01: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:
parent
1499e7f704
commit
2bf290faa4
|
@ -19,7 +19,7 @@ func _ready() -> void:
|
|||
color_rect.color = Global.left_tool_color
|
||||
else:
|
||||
color_rect.color = Global.right_tool_color
|
||||
$Label.text = Tools.tools[name].display_name
|
||||
$Header/Label.text = Tools.tools[name].display_name
|
||||
|
||||
load_config()
|
||||
|
||||
|
|
|
@ -15,11 +15,26 @@ margin_right = 116.0
|
|||
margin_bottom = 4.0
|
||||
rect_min_size = Vector2( 0, 4 )
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
[node name="Header" type="HBoxContainer" parent="."]
|
||||
margin_top = 8.0
|
||||
margin_right = 116.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"
|
||||
text = "Tool"
|
||||
align = 1
|
||||
autowrap = true
|
||||
text = "Tool Name"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="Header"]
|
||||
margin_left = 92.0
|
||||
margin_right = 116.0
|
||||
margin_bottom = 14.0
|
||||
size_flags_horizontal = 3
|
||||
|
|
|
@ -3,22 +3,49 @@
|
|||
[ext_resource path="res://src/UI/ReferencesPanel.gd" type="Script" id=1]
|
||||
|
||||
[node name="Reference Images" type="VBoxContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
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="."]
|
||||
margin_right = 1.0
|
||||
margin_bottom = 1000.0
|
||||
margin_top = 18.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 32.0
|
||||
text = "When opening an image, it may be imported as a reference."
|
||||
autowrap = true
|
||||
|
||||
[node name="Scroll" type="ScrollContainer" parent="."]
|
||||
margin_top = 1004.0
|
||||
margin_right = 1.0
|
||||
margin_bottom = 1004.0
|
||||
margin_top = 36.0
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[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_vertical = 3
|
||||
|
|
Loading…
Reference in a new issue