Files
uarep-ctl/table/node.gd

17 lines
490 B
GDScript

extends LineEdit
func _ready():
_update_background()
func _process(_delta):
_update_background()
func _update_background() -> void:
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
var style = get_theme_stylebox("read_only").duplicate()
if is_light:
style.bg_color = Color.GRAY
else:
style.bg_color = Color(0.12, 0.12, 0.12)
add_theme_stylebox_override("read_only", style)