partial changes
This commit is contained in:
parent
ba0245197e
commit
071414e1b9
1
debian/control
vendored
1
debian/control
vendored
@ -18,5 +18,6 @@ Depends: pika-welcome,
|
||||
gnome-shell-extension-dash-to-panel,
|
||||
gnome-shell-extension-ubuntu-dock,
|
||||
gnome-shell-extension-desktop-icons-ng,
|
||||
gnome-shell-extension-appindicator,
|
||||
dconf-cli
|
||||
Description: PikaOS Gnome Desktop Layouts Selector
|
||||
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 9.0 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 9.4 KiB |
19
usr/lib/pika/gnome-layouts/accent-colors/pink.svg
Normal file
19
usr/lib/pika/gnome-layouts/accent-colors/pink.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 14 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.4 KiB |
19
usr/lib/pika/gnome-layouts/accent-colors/teal.svg
Normal file
19
usr/lib/pika/gnome-layouts/accent-colors/teal.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 14 KiB |
@ -8,7 +8,7 @@ dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||
gnome-extensions reset ubuntu-dock@ubuntu.com || echo
|
||||
gnome-extensions reset pika-dock@ubuntu.com || echo
|
||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||
|
@ -8,7 +8,7 @@ dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||
gnome-extensions reset ubuntu-dock@ubuntu.com || echo
|
||||
gnome-extensions reset pika-dock@ubuntu.com || echo
|
||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||
@ -32,7 +32,7 @@ dconf write /org/gnome/shell/extensions/dash-to-dock/dock-position "'BOTTOM'"
|
||||
dconf write /org/gnome/shell/extensions/just-perfection/clock-menu-position 1
|
||||
|
||||
# Enable Dock
|
||||
gnome-extensions enable ubuntu-dock@ubuntu.com
|
||||
gnome-extensions enable pika-dock@ubuntu.com
|
||||
# Enable just perfection
|
||||
gnome-extensions enable just-perfection-desktop@just-perfection
|
||||
# Enable Desktop Icons
|
||||
|
@ -8,7 +8,7 @@ dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||
gnome-extensions reset ubuntu-dock@ubuntu.com || echo
|
||||
gnome-extensions reset pika-dock@ubuntu.com || echo
|
||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||
@ -33,7 +33,7 @@ dconf write /org/gnome/shell/extensions/just-perfection/clock-menu-position '1'
|
||||
|
||||
|
||||
# Enable Dash
|
||||
gnome-extensions enable ubuntu-dock@ubuntu.com
|
||||
gnome-extensions enable pika-dock@ubuntu.com
|
||||
# Enable just perfection
|
||||
gnome-extensions enable just-perfection-desktop@just-perfection
|
||||
# Enable Desktop Icons
|
||||
|
@ -8,7 +8,7 @@ dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||
gnome-extensions reset ubuntu-dock@ubuntu.com || echo
|
||||
gnome-extensions reset pika-dock@ubuntu.com || echo
|
||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||
|
@ -10,7 +10,7 @@ dconf reset -f /org/gnome/shell/extensions/dash-to-dock/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/dash-to-panel/ || echo
|
||||
dconf reset -f /org/gnome/shell/extensions/just-perfection/ || echo
|
||||
gnome-extensions reset arcmenu@arcmenu.com || echo
|
||||
gnome-extensions reset ubuntu-dock@ubuntu.com || echo
|
||||
gnome-extensions reset pika-dock@ubuntu.com || echo
|
||||
gnome-extensions reset dash-to-panel@jderose9.github.com || echo
|
||||
gnome-extensions reset just-perfection-desktop@just-perfection || echo
|
||||
gnome-extensions reset launch-new-instance@gnome-shell-extensions.gcampax.github.com || echo
|
||||
|
@ -34,6 +34,13 @@ class Application:
|
||||
|
||||
subprocess.run(["gsettings set org.gnome.shell disable-user-extensions false"], shell=True, stdout=subprocess.DEVNULL)
|
||||
|
||||
theme_box = self.builder.get_object("theme_box")
|
||||
|
||||
theme_output = subprocess.run(["dconf read /org/pika/layouts/pika-theme | grep 1"], shell=True)
|
||||
|
||||
if (theme_output.returncode) != 0:
|
||||
theme_box.hide()
|
||||
|
||||
### Extension refresh ###
|
||||
|
||||
global extension_refresh
|
||||
|
@ -38,6 +38,118 @@
|
||||
<object class="GtkViewport">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="theme_box">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">start</property>
|
||||
<property name="spacing">128</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="pika_theme_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<signal name="pressed" handler="on_pika_theme_button_pressed" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="pixel-size">36</property>
|
||||
<property name="icon-name">pika-logo</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">PikaOS Themeing</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="gnome_theme_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="pixel-size">36</property>
|
||||
<property name="icon-name">gnome-foot</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">Gnome Themeing</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<!-- n-columns=3 n-rows=3 -->
|
||||
<object class="GtkGrid" id="layouts_grid">
|
||||
@ -45,7 +157,6 @@
|
||||
<property name="can-focus">False</property>
|
||||
<property name="row-spacing">10</property>
|
||||
<property name="column-spacing">10</property>
|
||||
<property name="row-homogeneous">True</property>
|
||||
<property name="column-homogeneous">True</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="win10_box">
|
||||
@ -59,6 +170,8 @@
|
||||
<property name="can-focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin-left">10</property>
|
||||
<property name="margin-right">10</property>
|
||||
<property name="margin-start">10</property>
|
||||
<property name="margin-end">10</property>
|
||||
<property name="margin-top">10</property>
|
||||
@ -112,6 +225,8 @@
|
||||
<property name="can-focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin-left">10</property>
|
||||
<property name="margin-right">10</property>
|
||||
<property name="margin-start">10</property>
|
||||
<property name="margin-end">10</property>
|
||||
<property name="margin-top">10</property>
|
||||
@ -166,6 +281,8 @@
|
||||
<property name="can-focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin-left">10</property>
|
||||
<property name="margin-right">10</property>
|
||||
<property name="margin-start">10</property>
|
||||
<property name="margin-end">10</property>
|
||||
<property name="margin-top">10</property>
|
||||
@ -220,6 +337,8 @@
|
||||
<property name="can-focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin-left">10</property>
|
||||
<property name="margin-right">10</property>
|
||||
<property name="margin-start">10</property>
|
||||
<property name="margin-end">10</property>
|
||||
<property name="margin-top">10</property>
|
||||
@ -272,6 +391,8 @@
|
||||
<property name="can-focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin-left">10</property>
|
||||
<property name="margin-right">10</property>
|
||||
<property name="margin-start">10</property>
|
||||
<property name="margin-end">10</property>
|
||||
<property name="margin-top">10</property>
|
||||
@ -321,6 +442,8 @@
|
||||
<property name="can-focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin-left">10</property>
|
||||
<property name="margin-right">10</property>
|
||||
<property name="margin-start">10</property>
|
||||
<property name="margin-end">10</property>
|
||||
<property name="margin-top">10</property>
|
||||
@ -486,7 +609,7 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="magenta_accent_button">
|
||||
<object class="GtkButton" id="pink_accent_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
@ -495,11 +618,11 @@
|
||||
<property name="relief">none</property>
|
||||
<signal name="pressed" handler="magenta_accent_button_pressed_cb" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkImage" id="magenta_accent_image">
|
||||
<object class="GtkImage" id="pink_accent_image">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="tooltip-text" translatable="yes">Magenta</property>
|
||||
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/magenta.svg</property>
|
||||
<property name="tooltip-text" translatable="yes">Pink</property>
|
||||
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/pink.svg</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
@ -534,7 +657,7 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="brown_accent_button">
|
||||
<object class="GtkButton" id="teal_accent_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
@ -543,11 +666,11 @@
|
||||
<property name="relief">none</property>
|
||||
<signal name="pressed" handler="brown_accent_button_pressed_cb" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkImage" id="brown_accent_image">
|
||||
<object class="GtkImage" id="teal_accent_image">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="tooltip-text" translatable="yes">Brown (please don't use this)</property>
|
||||
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/brown.svg</property>
|
||||
<property name="tooltip-text" translatable="yes">Teal</property>
|
||||
<property name="pixbuf">../../../../../../../../../usr/lib/pika/gnome-layouts/accent-colors/teal.svg</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
@ -589,6 +712,13 @@
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
|
File diff suppressed because it is too large
Load Diff
47
usr/lib/pika/gnome-layouts/theme.sh
Executable file
47
usr/lib/pika/gnome-layouts/theme.sh
Executable file
@ -0,0 +1,47 @@
|
||||
#! /bin/bash
|
||||
gnome-extensions enable pika-darkmode@pika.com
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/manual-time-source true
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-button-placement "'none'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/ondemand-time "'night'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/time/time-source "'ondemand'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/enabled true
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/enabled true
|
||||
|
||||
if [[ $1 == pika ]]
|
||||
then
|
||||
dconf write /org/pika/layouts/pika-theme 1
|
||||
dconf write /org/gnome/shell/extensions/user-theme/name "'Orchis-Yellow'"
|
||||
dconf write /org/gnome/desktop/wm/preferences/theme "'Orchis-Yellow'"
|
||||
dconf write /org/gnome/desktop/wm/preferences/titlebar-font "'Fira Sans Semi-Bold 10'"
|
||||
dconf write /org/gnome/desktop/sound/theme-name "'pika'"
|
||||
dconf write /org/gnome/desktop/interface/gtk-theme "'Orchis-Yellow'"
|
||||
dconf write /org/gnome/desktop/interface/icon-theme "'Papirus'"
|
||||
dconf write /org/gnome/desktop/interface/monospace-font-name "'Fira Mono 11'"
|
||||
dconf write /org/gnome/desktop/interface/document-font-name "'Roboto Slab 11'"
|
||||
dconf write /org/gnome/desktop/interface/font-name "'Fira Sans Semi-Light 10'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/enabled true
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunrise "'/usr/lib/pika/gnome-layouts/libadwaita.sh'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/sunset "'/usr/lib/pika/gnome-layouts/libadwaita.sh'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'Orchis-Yellow-Light'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'Orchis-Yellow-Dark'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "'Orchis-Yellow-Light'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "'Orchis-Yellow-Dark'"
|
||||
fi
|
||||
if [[ $1 == gnome ]]
|
||||
then
|
||||
dconf write /org/pika/layouts/pika-theme 0
|
||||
dconf write /org/gnome/shell/extensions/user-theme/name "''"
|
||||
dconf write /org/gnome/desktop/wm/preferences/theme "'adw-gtk3'"
|
||||
dconf write /org/gnome/desktop/wm/preferences/titlebar-font "'Cantarell Bold 11'"
|
||||
dconf write /org/gnome/desktop/sound/theme-name "'freedesktop'"
|
||||
dconf write /org/gnome/desktop/interface/gtk-theme "'adw-gtk3'"
|
||||
dconf write /org/gnome/desktop/interface/icon-theme "'Adwaita'"
|
||||
dconf write /org/gnome/desktop/interface/monospace-font-name "'Monospace 11'"
|
||||
dconf write /org/gnome/desktop/interface/document-font-name "'Sans 11'"
|
||||
dconf write /org/gnome/desktop/interface/font-name "'Cantarell 11'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/commands/enabled false
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/day "'adw-gtk3'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/gtk-variants/night "'adw-gtk3-dark'"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/day "''"
|
||||
dconf write /org/gnome/shell/extensions/nightthemeswitcher/shell-variants/night "''"
|
||||
fi
|
@ -7,5 +7,12 @@
|
||||
What layout is selected.
|
||||
</description>
|
||||
</key>
|
||||
<key type="i" name="pika-theme">
|
||||
<default>1</default>
|
||||
<summary>What Theme is being used.</summary>
|
||||
<description>
|
||||
What Theme is being used.
|
||||
</description>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
||||
|
Loading…
Reference in New Issue
Block a user