diff --git a/usr/lib/pika/gnome-layouts/main.py b/usr/lib/pika/gnome-layouts/main.py
index 125fed6..92732e5 100644
--- a/usr/lib/pika/gnome-layouts/main.py
+++ b/usr/lib/pika/gnome-layouts/main.py
@@ -36,9 +36,9 @@ class Application:
accent_box = self.builder.get_object("accent_box")
- theme_output = subprocess.run(["dconf read /org/pika/layouts/pika-theme | grep 1"], shell=True)
+ accent_output = subprocess.run(["dconf read /org/pika/layouts/pika-theme | grep 1"], shell=True)
- if (theme_output.returncode) != 0:
+ if (accent_output.returncode) != 0:
accent_box.hide()
### Extension refresh ###
@@ -153,9 +153,11 @@ class Application:
### Themes
def on_pika_theme_button_pressed(self, widget):
+ accent_box = self.builder.get_object("accent_box")
subprocess.run(["/usr/lib/pika/gnome-layouts/theme.sh pika"], shell=True)
accent_box.show()
def on_gnome_theme_button_pressed(self, widget):
+ accent_box = self.builder.get_object("accent_box")
subprocess.run(["/usr/lib/pika/gnome-layouts/theme.sh gnome"], shell=True)
accent_box.hide()
diff --git a/usr/lib/pika/gnome-layouts/main.ui b/usr/lib/pika/gnome-layouts/main.ui
index c8f45e5..951f0f9 100644
--- a/usr/lib/pika/gnome-layouts/main.ui
+++ b/usr/lib/pika/gnome-layouts/main.ui
@@ -104,6 +104,7 @@
True
center
center
+