Philipp Hörist pushed to branch master at gajim / gajim


Commits:
7d95b5ec by Philipp Hörist at 2026-02-09T21:15:39+01:00
imprv: MacOS: Raise font size and window shadows

- - - - -


3 changed files:

- + gajim/data/style/darwin.css
- gajim/data/style/windows.css → gajim/data/style/win32.css
- gajim/gtk/css_config.py


Changes:

=====================================
gajim/data/style/darwin.css
=====================================
@@ -0,0 +1,13 @@
+:root {
+  font-size: 13pt;
+  --document-font-size: 14pt;
+  --monospace-font-family: monospace;
+  --monospace-font-size: 13pt;
+}
+.csd {
+  box-shadow: none;
+  border-radius: 0;
+}
+.csd:backdrop {
+  box-shadow: none;
+}


=====================================
gajim/data/style/windows.css → gajim/data/style/win32.css
=====================================


=====================================
gajim/gtk/css_config.py
=====================================
@@ -124,9 +124,7 @@ def __init__(self) -> None:
         )
 
         self.apply_app_font_size()
-
-        if sys.platform == "win32":
-            self._apply_windows_css()
+        self._apply_platform_css()
 
     @property
     def prefer_dark(self) -> bool:
@@ -219,11 +217,12 @@ def apply_app_font_size(self) -> None:
             log.debug("Set gtk-xft-dpi %s", dpi)
             self._gtk_settings.set_property("gtk-xft-dpi", dpi)
 
-    def _apply_windows_css(self) -> None:
-        """Apply extra CSS on Windows to fix issues, see:
+    def _apply_platform_css(self) -> None:
+        """Apply extra CSS on Windows and macOS to fix issues, see:
         https://gitlab.gnome.org/GNOME/libadwaita/-/issues/1053
         """
-        self._load_css_from_file("windows.css", CSSPriority.APPLICATION)
+        if sys.platform in ("win32", "darwin"):
+            self._load_css_from_file(f"{sys.platform}.css", 
CSSPriority.APPLICATION)
 
     @staticmethod
     def _pango_to_css_weight(number: int) -> int:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7d95b5ec640ac49cda7e073c910e36b6aeffbed2

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7d95b5ec640ac49cda7e073c910e36b6aeffbed2
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to