1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Change ValueSlider's text color

And use the previous color only when they're disabled.
This commit is contained in:
Emmanouil Papadeas 2022-12-16 21:34:58 +02:00
parent bf7844b149
commit 9828c4838e

View file

@ -193,6 +193,12 @@ func _reset_display() -> void:
return
line_edit.selecting_enabled = false # Remove the selection
line_edit.editable = false
var line_edit_color := line_edit.get_color("font_color")
var line_edit_disabled_color: Color = Global.control.theme.get_color("read_only", "LineEdit")
if editable:
line_edit.add_color_override("font_color_uneditable", line_edit_color)
else:
line_edit.add_color_override("font_color_uneditable", line_edit_disabled_color)
tint_under = get_color("under_color", "ValueSlider")
if show_progress:
tint_progress = get_color("progress_color", "ValueSlider")