Description
When launching Frog, the following warning is printed to stderr:
Adwaita-WARNING **: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Expected behavior
No warning. The app should use AdwStyleManager:color-scheme as recommended by libadwaita.
Current behavior
Frog sets the dark theme preference via the deprecated GtkSettings:gtk-application-prefer-dark-theme property, which is no longer supported when using libadwaita.
Fix
Replace the use of gtk-application-prefer-dark-theme with AdwStyleManager.get_default().set_color_scheme(). See the libadwaita migration guide for details.
Environment
- Wayland (Hyprland)
- libadwaita current version