Made the fake grabber change texture based on theme & other small UI changes

This commit is contained in:
OverloadedOrama 2020-05-06 01:19:09 +03:00
parent c1602ad26a
commit f99b486919
4 changed files with 23 additions and 8 deletions

View file

@ -361,6 +361,13 @@ func change_theme(ID : int) -> void:
Global.vertical_ruler.add_stylebox_override("hover", ruler_style)
Global.vertical_ruler.add_stylebox_override("focus", ruler_style)
var fake_vsplit_grabber : TextureRect = Global.find_node_by_name(Global.animation_timeline, "FakeVSplitContainerGrabber")
# fake_vsplit_grabber.texture = main_theme.get_icon("Grabber", "VSplitContainer")
if Global.theme_type == "Dark":
fake_vsplit_grabber.texture = preload("res://assets/themes/dark/icons/vsplit.png")
else:
fake_vsplit_grabber.texture = preload("res://assets/themes/light/icons/vsplit.png")
for button in get_tree().get_nodes_in_group("UIButtons"):
if button is TextureButton:
var last_backslash = button.texture_normal.resource_path.get_base_dir().find_last("/")

View file

@ -745,8 +745,14 @@ margin_right = 902.0
margin_bottom = 82.0
custom_constants/separation = 2
[node name="SpacerControl" type="Control" parent="AnimationContainer/TimelineContainer/OpacityAndTagContainer"]
margin_right = 4.0
margin_bottom = 32.0
rect_min_size = Vector2( 4, 0 )
[node name="OpacityContainer" type="HBoxContainer" parent="AnimationContainer/TimelineContainer/OpacityAndTagContainer"]
margin_right = 214.0
margin_left = 6.0
margin_right = 220.0
margin_bottom = 32.0
rect_min_size = Vector2( 214, 0 )
@ -780,7 +786,7 @@ value = 100.0
align = 1
[node name="TagScroll" type="ScrollContainer" parent="AnimationContainer/TimelineContainer/OpacityAndTagContainer"]
margin_left = 216.0
margin_left = 222.0
margin_right = 902.0
margin_bottom = 32.0
rect_min_size = Vector2( 0, 32 )
@ -915,7 +921,7 @@ text = "Blue-Red Mode"
[node name="FrameTagDialog" parent="." instance=ExtResource( 42 )]
[node name="TextureRect" type="TextureRect" parent="."]
[node name="FakeVSplitContainerGrabber" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -24.0