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"]
|
[node name="AudioClip" type="Panel"]
|
||||||
modulate = Color(0.552956, 0.552956, 0.552956, 1)
|
modulate = Color(0.552956, 0.552956, 0.552956, 1)
|
||||||
|
self_modulate = Color(1, 1, 1, 0.588235)
|
||||||
clip_contents = true
|
clip_contents = true
|
||||||
custom_minimum_size = Vector2(4, 64)
|
custom_minimum_size = Vector2(4, 64)
|
||||||
anchors_preset = -1
|
anchors_preset = -1
|
||||||
|
|||||||
@@ -95,11 +95,13 @@ func _input(event):
|
|||||||
func make_selected():
|
func make_selected():
|
||||||
on_selected.emit()
|
on_selected.emit()
|
||||||
var color = get_theme_color("selected_modulate", "AudioClip")
|
var color = get_theme_color("selected_modulate", "AudioClip")
|
||||||
|
z_index = 1
|
||||||
modulate = color
|
modulate = color
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func make_deselected():
|
func make_deselected():
|
||||||
on_deselected.emit()
|
on_deselected.emit()
|
||||||
var color = get_theme_color("deselected_modulate", "AudioClip")
|
var color = get_theme_color("deselected_modulate", "AudioClip")
|
||||||
|
z_index = 0
|
||||||
modulate = color
|
modulate = color
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user