partial changes
This commit is contained in:
parent
386afe330e
commit
a36f369f81
@ -36,9 +36,9 @@ class Application:
|
|||||||
|
|
||||||
accent_box = self.builder.get_object("accent_box")
|
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()
|
accent_box.hide()
|
||||||
|
|
||||||
### Extension refresh ###
|
### Extension refresh ###
|
||||||
@ -153,9 +153,11 @@ class Application:
|
|||||||
|
|
||||||
### Themes
|
### Themes
|
||||||
def on_pika_theme_button_pressed(self, widget):
|
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)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/theme.sh pika"], shell=True)
|
||||||
accent_box.show()
|
accent_box.show()
|
||||||
def on_gnome_theme_button_pressed(self, widget):
|
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)
|
subprocess.run(["/usr/lib/pika/gnome-layouts/theme.sh gnome"], shell=True)
|
||||||
accent_box.hide()
|
accent_box.hide()
|
||||||
|
|
||||||
|
@ -104,6 +104,7 @@
|
|||||||
<property name="receives-default">True</property>
|
<property name="receives-default">True</property>
|
||||||
<property name="halign">center</property>
|
<property name="halign">center</property>
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
|
<signal name="pressed" handler="on_gnome_theme_button_pressed" swapped="no"/>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user