GradienceTeam / Gradience

Change the look of Adwaita, with ease
https://gradienceteam.github.io
GNU General Public License v3.0
1.3k stars 52 forks source link

bug: Error when applying GTK-3 Theme. #811

Open aspizu opened 1 year ago

aspizu commented 1 year ago

Is there an existing issue for this?

What happened?

Errors out, no css is output in ~/.config/gtk-3.0/

(process:256003): Adwaita-WARNING **: 09:39:17.317: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/gradience/frontend/main.py", line 613, in apply_color_scheme
    PresetUtils().apply_preset("gtk3", self.preset)
  File "/usr/lib/python3.11/site-packages/gradience/backend/theming/preset.py", line 120, in apply_preset
    self.set_gtk3_theme()
  File "/usr/lib/python3.11/site-packages/gradience/backend/theming/preset.py", line 46, in set_gtk3_theme
    self.settings.set("gtk-theme", "adw-gtk3")
    ^^^^^^^^^^^^^^^^^
AttributeError: 'GSettingsSetting' object has no attribute 'set'

To Reproduce

  1. Apply GTK-3 Theme

Expected behavior

Theme should be applied.

Screenshots

No response

OS

Arch Linux

DE/WM version

Hyprland

Version

0.8.0-beta1

Installation method

AUR

Enabled system extensions (GNOME specific)

No response

Additional context

AUR Package gradience-git.

Code of Conduct

github-actions[bot] commented 1 year ago

Welcome on Gradience. 🥳 We really appreciate your contribution. The core team will review your issue as soon as possible. You can also join the Matrix room: https://matrix.to/#/#Gradience-space:envs.net or the Discord server: https://discord.com/invite/4njFDtfGEZ

0xMRTT commented 1 year ago

Hmm, little bug when there's not system-wide ext