14 Commits

Author SHA1 Message Date
Kovid Goyal
8a14a5638a ... 2025-05-08 15:30:09 +05:30
Kovid Goyal
2fed0ec562 Linux: Handle desktop settings portals that are so old they don't implement ReadOne
Sigh, outdated Linux software, just creating busy work for everyone.
2025-05-08 15:22:42 +05:30
Kovid Goyal
b0ebd340fe Function to get the current system color theme 2024-11-07 12:47:06 +05:30
Kovid Goyal
239e08f268 When reading desktop settings from the portal provide a list of supported namespaces
The wlr portal doesnt work with an empty list. Sigh.
2024-11-07 11:10:27 +05:30
Kovid Goyal
754288557d Track initial color scheme preference read on Linux 2024-11-07 10:38:13 +05:30
Kovid Goyal
191ccf2d54 Wire up color scheme change notifications on X11 as well 2024-08-11 22:20:39 +05:30
Kovid Goyal
b5022cbd81 DRYer 2024-05-16 20:17:15 +05:30
Kovid Goyal
1bffe89b5d Wayland GNOME: titlebar color now follows system theme
When GNOME system theme is default, the color matches the background
color. When it is dark it is dark.
2024-04-04 21:52:56 +05:30
Jin Liu
293cd40509 Get cursor theme from desktop portal in non-GNOME desktops
Even if current DE is not GNOME, it may still use the GNOME
desktop portal as a fallback for Settings (e.g. KDE). So if
the user installed xdg-desktop-portal-gtk, and KDE synced
its cursor theme with GNOME, then we can still get it from
the GNOME namespace in the Settings.ReadAll result from the
portal.
2023-12-02 15:00:03 +08:00
Kovid Goyal
66801b6b28 GLFW API to track system color scheme dark/light
Implemented only on macOS and Wayland.
2023-04-13 13:16:33 +05:30
pagedown
06108d66b1 Replace tab with four spaces indent 2022-08-08 22:31:55 +05:30
Kovid Goyal
c2bc24de35 Read appearance setting from desktop portal as well 2022-04-05 15:44:27 +05:30
Kovid Goyal
906be21b8d Make GNOME detection a bit more tolerant 2022-03-22 11:36:09 +05:30
Kovid Goyal
63a50ec066 Use the correct mouse cursor theme on GNOME
Relies on a working desktop settings portal (xdg-desktop-portal-gtk)
2021-03-25 12:20:13 +05:30