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("/")