Make selected clips appear above other, add transparency to the clip background.

This commit is contained in:
2025-02-16 22:18:09 +01:00
parent 3367c19b9c
commit 50123076de
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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