Use Gnome 47 colors
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m15s

This commit is contained in:
Ward from fusion-voyager-3 2024-09-27 19:10:44 +03:00
parent 7d2e1fcb72
commit 6d114ec55f
8 changed files with 46 additions and 30 deletions

View File

@ -1 +1 @@
7
8

View File

@ -1,12 +1,15 @@
#! /usr/bin/bash
# Enable extensions
gnome-extensions enable custom-accent-colors@demiskp
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
#gnome-extensions enable custom-accent-colors@demiskp
#gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
# Set accent color settings
dconf write /org/gnome/shell/extensions/custom-accent-colors/accent-color "'"$1"'"
dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-flatpak true
dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-gtk3 true
dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-shell true
#dconf write /org/gnome/shell/extensions/custom-accent-colors/accent-color "'"$1"'"
#dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-flatpak true
#dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-gtk3 true
#dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-shell true
# Refresh Shell
dconf write /org/gnome/shell/extensions/user-theme/name "''"
dconf write /org/gnome/shell/extensions/user-theme/name "'Custom-Accent-Colors'"
#dconf write /org/gnome/shell/extensions/user-theme/name "''"
#dconf write /org/gnome/shell/extensions/user-theme/name "'Custom-Accent-Colors'"
dconf write /org/gnome/desktop/interface/accent-color "'"$1"'"

View File

@ -20,5 +20,7 @@
"red_tooltip_text": "Red",
"pink_tooltip_text": "Pink",
"purple_tooltip_text": "Purple",
"teal_tooltip_text": "Teal",
"slate_tooltip_text": "Slate/Gray",
"brown_tooltip_text": "Brown"
}

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

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -2,13 +2,14 @@
<gresources>
<gresource prefix="/com/github/pikaos-linux/pikagnomelayouts/">
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/blue.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/teal.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/green.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/orange.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/pink.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/purple.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/red.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/brown.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/yellow.svg</file>
<file compressed="true" preprocess="xml-stripblanks">accent-color-icons/slate.svg</file>
<file compressed="true" preprocess="xml-stripblanks">previews/gnome.svg</file>
<file compressed="true" preprocess="xml-stripblanks">previews/gnome2.svg</file>
<file compressed="true" preprocess="xml-stripblanks">previews/pineapple.svg</file>

View File

@ -43,16 +43,7 @@ pub fn content(
},
];
let accent_colors = [
"blue",
"green",
"yellow",
"orange",
"red",
"pink",
"purple",
"brown"
];
let accent_colors = ["blue", "teal", "green", "yellow", "orange", "red", "pink", "purple", "slate"];
let null_checkbutton = gtk::CheckButton::builder()
.build();
@ -153,8 +144,8 @@ pub fn content(
color_button.connect_clicked(move |_|
{
let color_double = match color {
"blue" => ("default","blue"),
"purple" => ("purple","violet"),
"slate" => ("slate", "grey"),
_ => (color,color)
};
let _ = std::process::Command::new("/usr/lib/pika/gnome-layouts/dconf-accent.sh")