aboutsummaryrefslogtreecommitdiff
path: root/src/main-window.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/main-window.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/main-window.vala')
-rw-r--r--src/main-window.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main-window.vala b/src/main-window.vala
index 172c6f4..d7fe6f0 100644
--- a/src/main-window.vala
+++ b/src/main-window.vala
@@ -40,7 +40,7 @@ public class MainWindow : Gtk.Window
public ListStack stack;
// Menubar is smaller, but with shadow, we reserve more space
- public const int MENUBAR_HEIGHT = 32;
+ public const int MENUBAR_HEIGHT = 40;
construct
{
@@ -75,6 +75,8 @@ public class MainWindow : Gtk.Window
shadow_style = "background-image: url('%s');
background-repeat: repeat;".printf(shadow_path);
}
+ /* Disable the shadow image, we will use CSS instead. */
+ /*
try
{
var style = new Gtk.CssProvider ();
@@ -89,6 +91,7 @@ public class MainWindow : Gtk.Window
{
debug ("Internal error loading menubox style: %s", e.message);
}
+ */
menubox.set_size_request (-1, MENUBAR_HEIGHT);
menubox.show ();
menualign.show ();