On recent GNOME releases, it is possible to set a system-wide light/dark mode preference. tilix does not update its theme-variant based on this value. (summary)
The preference is set in org.gnome.desktop.interfacecolor-scheme and may be set to default / prefer-light / prefer-dark.
This PR modifies the existing theme-variant functionality so that
if SETTINGS_THEME_VARIANT_KEY is set to system (default) and a color-scheme value is set then a dark variant is preferred if prefer-dark is set.
whenever the system setting changes the them-variant preference is reapplied
onThemChanged() is emitted for them-variant change so that terminal colors may be reapplied if SETTINGS_PROFILE_USE_THEME_COLORS_KEY is set.
On recent GNOME releases, it is possible to set a system-wide light/dark mode preference. tilix does not update its
theme-variant
based on this value. (summary)The preference is set in
org.gnome.desktop.interface
color-scheme
and may be set todefault
/prefer-light
/prefer-dark
.This PR modifies the existing
theme-variant
functionality so thatSETTINGS_THEME_VARIANT_KEY
is set tosystem
(default) and acolor-scheme
value is set then a dark variant is preferred ifprefer-dark
is set.them-variant
preference is reappliedonThemChanged()
is emitted for them-variant change so that terminal colors may be reapplied ifSETTINGS_PROFILE_USE_THEME_COLORS_KEY
is set.