Skip to content

Warning: Using deprecated GtkSettings:gtk-application-prefer-dark-theme with libadwaita #260

@simonbcn

Description

@simonbcn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions