This repository was archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
This repository was archived by the owner on Jul 23, 2024. It is now read-only.
bug: Presets without 5 colors per palette don't apply the shell theme on GNOME 45 #825
Copy link
Copy link
Open
GradienceTeam/Community
#105Labels
type/bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
When applying the shell theme, the success toast appears but the theme doesn't apply to the shell, and an error occurs in the console.
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/gradience/backend/theming/shell.py", line 130, in _apply_theme_thread
output = self.apply_theme(source_object, theme_variant, preset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/gradience/backend/theming/shell.py", line 142, in apply_theme
self._create_theme(parent, preset)
File "/usr/lib/python3.11/site-packages/gradience/backend/theming/shell.py", line 155, in _create_theme
self._insert_variables()
File "/usr/lib/python3.11/site-packages/gradience/backend/theming/shell.py", line 176, in _insert_variables
line = line.replace("{{" + _key + "}}", self.preset_palette[prefix + '_'][key])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: '4'
To Reproduce
- Apply theme
- Apply shell theme
Expected behavior
Shell theme applies
Screenshots
No response
OS
Arch Linux
DE/WM version
GNOME 45.0
Version
main branch (gradience-git from aur)
Installation method
AUR
Enabled system extensions (GNOME specific)
user-theme@gnome-shell-extensions.gcampax.github.com
screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com
dash-to-dock@micxgx.gmail.com
grand-theft-focus@zalckos.github.com
no-overview@fthx
appindicatorsupport@rgcjonas.gmail.com
drive-menu@gnome-shell-extensions.gcampax.github.com
dim-completed-calendar-events@marcinjahn.com
favourites-in-appgrid@harshadgavali.gitlab.org
battery-indicator-icon@Deminder
just-perfection-desktop@just-perfection
auto-move-windows@gnome-shell-extensions.gcampax.github.com
quicksettings-audio-devices-renamer@marcinjahn.com
firefox-pip@bennypowers.com
clipboard-indicator@tudmotu.com
quick-touchpad-toggle@kramo.hu
blur-my-shell@aunetx
caffeine@patapon.info
do-not-disturb-while-screen-sharing-or-recording@marcinjahn.com
app-hider@lynith.dev
logomenu@aryan_k
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/bugSomething isn't workingSomething isn't working
Type
Projects
Status
In Progress