linux: Get the color scheme through xdg-desktop-portal (#11926)

The method has been tested on:
- Gnome 46 (Working)
- Gnome 40 (Not supported)

Tasks

- [x] Implements a draft which get and provides the user theme to
components which needs it
- [x] Implements a way to call the callback function when the theme is
updated
- [X] Cleans the code

Release notes:
- N/A
This commit is contained in:
citorva
2024-05-26 17:00:10 -07:00
committed by GitHub
parent b1cfd46d37
commit a84344a82e
7 changed files with 224 additions and 14 deletions
+1
View File
@@ -6,6 +6,7 @@ mod headless;
mod platform;
mod wayland;
mod x11;
mod xdg_desktop_portal;
pub(crate) use dispatcher::*;
pub(crate) use headless::*;