mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Change ValueSlider's text color
And use the previous color only when they're disabled.
This commit is contained in:
parent
bf7844b149
commit
9828c4838e
|
@ -193,6 +193,12 @@ func _reset_display() -> void:
|
||||||
return
|
return
|
||||||
line_edit.selecting_enabled = false # Remove the selection
|
line_edit.selecting_enabled = false # Remove the selection
|
||||||
line_edit.editable = false
|
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")
|
tint_under = get_color("under_color", "ValueSlider")
|
||||||
if show_progress:
|
if show_progress:
|
||||||
tint_progress = get_color("progress_color", "ValueSlider")
|
tint_progress = get_color("progress_color", "ValueSlider")
|
||||||
|
|
Loading…
Reference in a new issue