Make selected clips appear above other, add transparency to the clip background.
This commit is contained in:
@@ -12,6 +12,7 @@ border_blend = true
|
||||
|
||||
[node name="AudioClip" type="Panel"]
|
||||
modulate = Color(0.552956, 0.552956, 0.552956, 1)
|
||||
self_modulate = Color(1, 1, 1, 0.588235)
|
||||
clip_contents = true
|
||||
custom_minimum_size = Vector2(4, 64)
|
||||
anchors_preset = -1
|
||||
|
||||
@@ -95,11 +95,13 @@ func _input(event):
|
||||
func make_selected():
|
||||
on_selected.emit()
|
||||
var color = get_theme_color("selected_modulate", "AudioClip")
|
||||
z_index = 1
|
||||
modulate = color
|
||||
pass
|
||||
|
||||
func make_deselected():
|
||||
on_deselected.emit()
|
||||
var color = get_theme_color("deselected_modulate", "AudioClip")
|
||||
z_index = 0
|
||||
modulate = color
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user