aboutsummaryrefslogtreecommitdiff
path: root/src/user-list.vala
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2022-12-06 05:10:29 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 08:30:01 +0100
commit33d2f8d0461314c5eeaab2c74b10b545906e1491 (patch)
treeb550428b5d03ff49f8f9b8dab514d63dd64c9766 /src/user-list.vala
parent131bcb9889b9eb9b8eeb895f23ae1d53a25aefe8 (diff)
downloadarctica-greeter-33d2f8d0461314c5eeaab2c74b10b545906e1491.tar.gz
arctica-greeter-33d2f8d0461314c5eeaab2c74b10b545906e1491.tar.bz2
arctica-greeter-33d2f8d0461314c5eeaab2c74b10b545906e1491.zip
misc src/: completely rework high contrast mode, add stub for big font mode.
This is a work-in-progress. The reworked high contrast mode adds support for a configurable high contrast GTK theme and changes a lot of widgets to change their color. The big font mode is a stub currently.
Diffstat (limited to 'src/user-list.vala')
-rw-r--r--src/user-list.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/user-list.vala b/src/user-list.vala
index 3012c7d..9f4b265 100644
--- a/src/user-list.vala
+++ b/src/user-list.vala
@@ -148,7 +148,8 @@ public class UserList : GreeterList
construct
{
- menubar.notify["high-contrast"].connect (() => { change_background (); });
+ var agsettings = new AGSettings ();
+ agsettings.notify["high-contrast"].connect (() => { change_background (); });
entry_displayed_start.connect (() => { change_background (); });
entry_displayed_done.connect (() => { change_background (); });
@@ -593,7 +594,8 @@ public class UserList : GreeterList
private bool change_background_timeout_cb ()
{
string? new_background_file = null;
- if (menubar.high_contrast || !AGSettings.get_boolean (AGSettings.KEY_DRAW_USER_BACKGROUNDS))
+ var agsettings = new AGSettings ();
+ if (agsettings.high_contrast || !AGSettings.get_boolean (AGSettings.KEY_DRAW_USER_BACKGROUNDS))
new_background_file = null;
else if (selected_entry is UserPromptBox)
new_background_file = (selected_entry as UserPromptBox).background;