Compare commits
46 Commits
2024-04-14
...
2024-06-18
Author | SHA1 | Date | |
---|---|---|---|
|
832fa2600b | ||
|
c50f1024c8 | ||
|
e23c79601c | ||
|
aed576b4dc | ||
|
9ffb38b5a1 | ||
|
b00d256e59 | ||
|
a5e8268d08 | ||
|
1a13048ea1 | ||
|
53fb42660f | ||
|
0eac8ce60e | ||
|
ab47b98069 | ||
|
9d70919f34 | ||
|
bbbda97b78 | ||
|
fff397c3ce | ||
|
b3ad57757f | ||
|
2b1365a95e | ||
|
b7f351494b | ||
|
d3479f862e | ||
|
9cbd9f45a2 | ||
|
8ce956f350 | ||
|
c0467e2199 | ||
|
65fe4fba14 | ||
|
769a3aad76 | ||
|
d0c60dcd41 | ||
|
5210660f98 | ||
|
d1d44027d5 | ||
|
4f99530a93 | ||
|
39abeeeb03 | ||
|
be6d0999c5 | ||
|
9aad146b6c | ||
|
a307a45682 | ||
|
eb3f955329 | ||
|
db2f75e025 | ||
|
04abd43279 | ||
|
8df64466a9 | ||
|
1a723106b5 | ||
|
fb35883eca | ||
|
f5f1b81e85 | ||
|
4ab34d51f7 | ||
|
3a99c10a7d | ||
|
9c71a2f1ea | ||
|
afb5fe6494 | ||
|
c572621db6 | ||
|
595f38763f | ||
|
5fc2ecc249 | ||
|
1cf28eac20 |
24
README.md
@@ -40,23 +40,37 @@ Run the following commands in the terminal:
|
||||
-c, --color VARIANT... Specify color variant(s) [standard|light|dark] (Default: All variants)
|
||||
-s, --size VARIANT... Specify size variant [standard|compact] (Default: standard variant)
|
||||
|
||||
-l, --libadwaita Link installed gtk-4.0 theme to config folder for all libadwaita app use this theme
|
||||
|
||||
-r, --remove,
|
||||
-u, --uninstall Uninstall/Remove installed themes or links
|
||||
-l, --libadwaita Install specify gtk-4.0 theme into config folder ($HOME/.config/gtk-4.0) for all gtk4 apps use this theme
|
||||
Default ColorSchemes theme will follow the system style (light/dark mode switch), all ColorSchemes versions not support this !
|
||||
Options for default ColorSchemes:
|
||||
1. system Default option (using system colors for light/dark mode switching)
|
||||
2. fixed Using fixed theme colors (that will break light/dark mode switch)
|
||||
|
||||
--tweaks Specify versions for tweaks
|
||||
1. [nord|dracula|gruvbox|all] (Nord/Dracula/gruvbox/all) ColorSchemes version
|
||||
1. [nord|dracula|gruvbox|everforest|catppuccin|all] (Nord/Dracula/Gruvbox/Everforet/Catppuccin/all) ColorSchemes version
|
||||
2. black Blackness color version
|
||||
3. rimless Remove the 1px border about windows and menus
|
||||
4. normal Normal windows button style like gnome default theme (titlebuttons: max/min/close)
|
||||
5. float Floating gnome-shell panel style
|
||||
|
||||
-r, --remove,
|
||||
-u, --uninstall Uninstall/Remove installed themes or links
|
||||
|
||||
-h, --help Show help
|
||||
```
|
||||
|
||||
> For more information, run: `./install.sh --help`
|
||||
|
||||
### Fix for Libadwaita
|
||||
|
||||
```sh
|
||||
./install.sh -l
|
||||
```
|
||||
|
||||
Default ColorSchemes themes will follow the system style now ! (switch [light/dark] mode)
|
||||
|
||||
https://github.com/vinceliuice/Colloid-gtk-theme/assets/7604295/d5c24086-08bc-45a4-b4d9-124c02249216
|
||||
|
||||

|
||||
|
||||
### Flatpak Installation
|
||||
|
403
assets.sh
@@ -51,172 +51,213 @@ make_assets() {
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$scheme" == '-Nord' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#5e81ac'
|
||||
theme_color_light='#89a3c2'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#b57daa'
|
||||
theme_color_light='#c89dbf'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#cd7092'
|
||||
theme_color_light='#dc98b1'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#c35b65'
|
||||
theme_color_light='#d4878f'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d0846c'
|
||||
theme_color_light='#dca493'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#e4b558'
|
||||
theme_color_light='#eac985'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#82ac5d'
|
||||
theme_color_light='#a0c082'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#63a6a5'
|
||||
theme_color_light='#83b9b8'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3a4150'
|
||||
theme_color_light='#d9dce3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == '-Nord' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#5e81ac'
|
||||
theme_color_light='#89a3c2'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#b57daa'
|
||||
theme_color_light='#c89dbf'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#cd7092'
|
||||
theme_color_light='#dc98b1'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#c35b65'
|
||||
theme_color_light='#d4878f'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d0846c'
|
||||
theme_color_light='#dca493'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#e4b558'
|
||||
theme_color_light='#eac985'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#82ac5d'
|
||||
theme_color_light='#a0c082'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#63a6a5'
|
||||
theme_color_light='#83b9b8'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3a4150'
|
||||
theme_color_light='#d9dce3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Dracula' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#a679ec'
|
||||
theme_color_light='#bd93f9'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#a679ec'
|
||||
theme_color_light='#bd93f9'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#f04cab'
|
||||
theme_color_light='#ff79c6'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#f44d4d'
|
||||
theme_color_light='#ff5555'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#f8a854'
|
||||
theme_color_light='#ffb86c'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#e8f467'
|
||||
theme_color_light='#f1fa8c'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#4be772'
|
||||
theme_color_light='#50fa7b'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#20eed9'
|
||||
theme_color_light='#50fae9'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3f51'
|
||||
theme_color_light='#d9dae3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == '-Dracula' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#a679ec'
|
||||
theme_color_light='#bd93f9'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#a679ec'
|
||||
theme_color_light='#bd93f9'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#f04cab'
|
||||
theme_color_light='#ff79c6'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#f44d4d'
|
||||
theme_color_light='#ff5555'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#f8a854'
|
||||
theme_color_light='#ffb86c'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#e8f467'
|
||||
theme_color_light='#f1fa8c'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#4be772'
|
||||
theme_color_light='#50fa7b'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#20eed9'
|
||||
theme_color_light='#50fae9'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3f51'
|
||||
theme_color_light='#d9dae3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Gruvbox' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#458588'
|
||||
theme_color_light='#83a598'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#ab62b1'
|
||||
theme_color_light='#d386cd'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#cc241d'
|
||||
theme_color_light='#fb4934'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d65d0e'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#d79921'
|
||||
theme_color_light='#fabd2f'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#98971a'
|
||||
theme_color_light='#b8bb26'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#689d6a'
|
||||
theme_color_light='#8ec07c'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3836'
|
||||
theme_color_light='#a89984'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == '-Gruvbox' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#458588'
|
||||
theme_color_light='#83a598'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#ab62b1'
|
||||
theme_color_light='#d386cd'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#cc241d'
|
||||
theme_color_light='#fb4934'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d65d0e'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#d79921'
|
||||
theme_color_light='#fabd2f'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#98971a'
|
||||
theme_color_light='#b8bb26'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#689d6a'
|
||||
theme_color_light='#8ec07c'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3836'
|
||||
theme_color_light='#a89984'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Everforest' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#458588'
|
||||
theme_color_light='#83a598'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#ab62b1'
|
||||
theme_color_light='#d386cd'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#cc241d'
|
||||
theme_color_light='#fb4934'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d65d0e'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#d79921'
|
||||
theme_color_light='#fabd2f'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#98971a'
|
||||
theme_color_light='#b8bb26'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#689d6a'
|
||||
theme_color_light='#8ec07c'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3836'
|
||||
theme_color_light='#a89984'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == '-Everforest' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#458588'
|
||||
theme_color_light='#83a598'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#ab62b1'
|
||||
theme_color_light='#d386cd'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#cc241d'
|
||||
theme_color_light='#fb4934'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d65d0e'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#d79921'
|
||||
theme_color_light='#fabd2f'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#98971a'
|
||||
theme_color_light='#b8bb26'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#689d6a'
|
||||
theme_color_light='#8ec07c'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3836'
|
||||
theme_color_light='#a89984'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Catppuccin' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#1e66f5'
|
||||
theme_color_light='#8caaee'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#8839ef'
|
||||
theme_color_light='#ca9ee6'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#ea76cb'
|
||||
theme_color_light='#f4b8e4'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#e64553'
|
||||
theme_color_light='#ea999c'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#fe640b'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#df8e1d'
|
||||
theme_color_light='#ef9f76'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#40a02b'
|
||||
theme_color_light='#a6d189'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#179299'
|
||||
theme_color_light='#81c8be'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#5c5f77'
|
||||
theme_color_light='#ccd0da'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$blackness" == 'true' ]]; then
|
||||
case "$ctype" in
|
||||
case "$scheme" in
|
||||
'')
|
||||
background_light='#FFFFFF'
|
||||
background_dark='#0F0F0F'
|
||||
@@ -238,6 +279,13 @@ make_assets() {
|
||||
titlebar_light='#f0f1f4'
|
||||
titlebar_dark='#020203'
|
||||
;;
|
||||
-Gruvbox)
|
||||
background_light='#f9f5d7'
|
||||
background_dark='#0f0e0e'
|
||||
background_dark_alt='#121110'
|
||||
titlebar_light='#fbf1c7'
|
||||
titlebar_dark='#0d0907'
|
||||
;;
|
||||
-Everforest)
|
||||
background_light='#fffbef'
|
||||
background_dark='#1e2326'
|
||||
@@ -245,9 +293,16 @@ make_assets() {
|
||||
titlebar_light='#f2efdf'
|
||||
titlebar_dark='#020203'
|
||||
;;
|
||||
-Catppuccin)
|
||||
background_light='#eff1f5'
|
||||
background_dark='#181825'
|
||||
background_darker='#1e1e2e'
|
||||
titlebar_light='#e6e9ef'
|
||||
titlebar_dark='#11111b'
|
||||
;;
|
||||
esac
|
||||
else
|
||||
case "$ctype" in
|
||||
case "$scheme" in
|
||||
'')
|
||||
background_light='#ffffff'
|
||||
background_dark='#2c2c2c'
|
||||
@@ -269,12 +324,26 @@ make_assets() {
|
||||
titlebar_light='#f0f1f4'
|
||||
titlebar_dark='#1f2029'
|
||||
;;
|
||||
-Gruvbox)
|
||||
background_light='#f9f5d7'
|
||||
background_dark='#282524'
|
||||
background_dark_alt='#3c3836'
|
||||
titlebar_light='#fbf1c7'
|
||||
titlebar_dark='#242220'
|
||||
;;
|
||||
-Everforest)
|
||||
background_light='#fffbef'
|
||||
background_dark='#232A2E'
|
||||
background_dark_alt='#343F44'
|
||||
background_light='#edeada'
|
||||
background_dark='#1e2326'
|
||||
background_light='#fdf6e3'
|
||||
background_dark='#2d353b'
|
||||
background_dark_alt='#343f44'
|
||||
titlebar_light='#f4f0d9'
|
||||
titlebar_dark='#272e33'
|
||||
;;
|
||||
-Catppuccin)
|
||||
background_light='#eff1f5'
|
||||
background_dark='#292c3c'
|
||||
background_darker='#303446'
|
||||
titlebar_light='#e6e9ef'
|
||||
titlebar_dark='#24273a'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
452
gtkrc.sh
@@ -13,256 +13,248 @@ make_gtkrc() {
|
||||
local GTKRC_DIR="${SRC_DIR}/main/gtk-2.0"
|
||||
local THEME_DIR="${1}/${2}${3}${4}${5}${6}"
|
||||
|
||||
if [[ "${color}" != '-Dark' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#3c84f7'
|
||||
theme_color_light='#5b9bf8'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#AB47BC'
|
||||
theme_color_light='#BA68C8'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#EC407A'
|
||||
theme_color_light='#F06292'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#E53935'
|
||||
theme_color_light='#F44336'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#F57C00'
|
||||
theme_color_light='#FB8C00'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#FBC02D'
|
||||
theme_color_light='#FFD600'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#4CAF50'
|
||||
theme_color_light='#66BB6A'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#009688'
|
||||
theme_color_light='#4DB6AC'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#464646'
|
||||
theme_color_light='#DDDDDD'
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$scheme" == '-Nord' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#3c84f7'
|
||||
theme_color_dark='#5e81ac'
|
||||
theme_color_light='#89a3c2'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#AB47BC'
|
||||
theme_color_dark='#b57daa'
|
||||
theme_color_light='#c89dbf'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#EC407A'
|
||||
theme_color_dark='#cd7092'
|
||||
theme_color_light='#dc98b1'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#E53935'
|
||||
theme_color_dark='#c35b65'
|
||||
theme_color_light='#d4878f'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#F57C00'
|
||||
theme_color_dark='#d0846c'
|
||||
theme_color_light='#dca493'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#FBC02D'
|
||||
theme_color_dark='#e4b558'
|
||||
theme_color_light='#eac985'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#4CAF50'
|
||||
theme_color_dark='#82ac5d'
|
||||
theme_color_light='#a0c082'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#009688'
|
||||
theme_color_dark='#63a6a5'
|
||||
theme_color_light='#83b9b8'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#464646'
|
||||
theme_color_dark='#3a4150'
|
||||
theme_color_light='#d9dce3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Nord' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#5e81ac'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#b57daa'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#cd7092'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#c35b65'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#d0846c'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#e4b558'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#82ac5d'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#83b9b8'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#3a4150'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Dracula' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#a679ec'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#a679ec'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#f04cab'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#f44d4d'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#f8a854'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#e8f467'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#4be772'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#20eed9'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#3c3f51'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == "-Everforest" ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#7fbbb3'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#cb8eab'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#b16286'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#db7375'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#db8d6a'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#d0b174'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#9cb575'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#78b587'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#7A8478'
|
||||
esac
|
||||
fi
|
||||
else
|
||||
if [[ "$scheme" == '-Dracula' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#5b9bf8'
|
||||
theme_color_dark='#a679ec'
|
||||
theme_color_light='#bd93f9'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#BA68C8'
|
||||
theme_color_dark='#a679ec'
|
||||
theme_color_light='#bd93f9'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#F06292'
|
||||
theme_color_dark='#f04cab'
|
||||
theme_color_light='#ff79c6'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#F44336'
|
||||
theme_color_dark='#f44d4d'
|
||||
theme_color_light='#ff5555'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#FB8C00'
|
||||
theme_color_dark='#f8a854'
|
||||
theme_color_light='#ffb86c'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#FFD600'
|
||||
theme_color_dark='#e8f467'
|
||||
theme_color_light='#f1fa8c'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#66BB6A'
|
||||
theme_color_dark='#4be772'
|
||||
theme_color_light='#50fa7b'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#4DB6AC'
|
||||
theme_color_dark='#20eed9'
|
||||
theme_color_light='#50fae9'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#DDDDDD'
|
||||
theme_color_dark='#3c3f51'
|
||||
theme_color_light='#d9dae3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Nord' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#89a3c2'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#c89dbf'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#dc98b1'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#d4878f'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#dca493'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#eac985'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#a0c082'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#83b9b8'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#d9dce3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == '-Gruvbox' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#458588'
|
||||
theme_color_light='#83a598'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#ab62b1'
|
||||
theme_color_light='#d386cd'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#cc241d'
|
||||
theme_color_light='#fb4934'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d65d0e'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#d79921'
|
||||
theme_color_light='#fabd2f'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#98971a'
|
||||
theme_color_light='#b8bb26'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#689d6a'
|
||||
theme_color_light='#8ec07c'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3836'
|
||||
theme_color_light='#a89984'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Dracula' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#bd93f9'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#bd93f9'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#ff79c6'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#ff5555'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#ffb86c'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#f1fa8c'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#50fa7b'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#50fae9'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#d9dae3'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == '-Everforest' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#458588'
|
||||
theme_color_light='#83a598'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#ab62b1'
|
||||
theme_color_light='#d386cd'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#cc241d'
|
||||
theme_color_light='#fb4934'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#d65d0e'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#d79921'
|
||||
theme_color_light='#fabd2f'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#98971a'
|
||||
theme_color_light='#b8bb26'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#689d6a'
|
||||
theme_color_light='#8ec07c'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#3c3836'
|
||||
theme_color_light='#a89984'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$scheme" == '-Everforest' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color='#3A94c5'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color='#bd93f9'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color='#DF69ba'
|
||||
;;
|
||||
-Red)
|
||||
theme_color='#f85552'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color='#F57D26'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color='#DFA000'
|
||||
;;
|
||||
-Green)
|
||||
theme_color='#8da101'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color='#35a77c'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color='#708089'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [[ "$scheme" == '-Catppuccin' ]]; then
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#1e66f5'
|
||||
theme_color_light='#8caaee'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#8839ef'
|
||||
theme_color_light='#ca9ee6'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#ea76cb'
|
||||
theme_color_light='#f4b8e4'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#e64553'
|
||||
theme_color_light='#ea999c'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#fe640b'
|
||||
theme_color_light='#fe8019'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#df8e1d'
|
||||
theme_color_light='#ef9f76'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#40a02b'
|
||||
theme_color_light='#a6d189'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#179299'
|
||||
theme_color_light='#81c8be'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#5c5f77'
|
||||
theme_color_light='#ccd0da'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$blackness" == 'true' ]]; then
|
||||
@@ -291,6 +283,14 @@ make_gtkrc() {
|
||||
titlebar_light='#f0f1f4'
|
||||
titlebar_dark='#020203'
|
||||
;;
|
||||
-Gruvbox)
|
||||
background_light='#f9f5d7'
|
||||
background_dark='#0f0e0e'
|
||||
background_darker='#121110'
|
||||
background_alt='#211f1e'
|
||||
titlebar_light='#fbf1c7'
|
||||
titlebar_dark='#0d0907'
|
||||
;;
|
||||
-Everforest)
|
||||
background_light='#fffbef'
|
||||
background_dark='#1e2326'
|
||||
@@ -299,6 +299,14 @@ make_gtkrc() {
|
||||
titlebar_light='#f2efdf'
|
||||
titlebar_dark='#020203'
|
||||
;;
|
||||
-Catppuccin)
|
||||
background_light='#eff1f5'
|
||||
background_dark='#181825'
|
||||
background_darker='#1e1e2e'
|
||||
background_alt='#232634'
|
||||
titlebar_light='#e6e9ef'
|
||||
titlebar_dark='#11111b'
|
||||
;;
|
||||
esac
|
||||
else
|
||||
case "$scheme" in
|
||||
@@ -326,13 +334,29 @@ make_gtkrc() {
|
||||
titlebar_light='#f0f1f4'
|
||||
titlebar_dark='#1f2029'
|
||||
;;
|
||||
-Gruvbox)
|
||||
background_light='#f9f5d7'
|
||||
background_dark='#282524'
|
||||
background_darker='#3c3836'
|
||||
background_alt='#504945'
|
||||
titlebar_light='#fbf1c7'
|
||||
titlebar_dark='#242220'
|
||||
;;
|
||||
-Everforest)
|
||||
background_light='#fffbef'
|
||||
background_dark='#232A2E'
|
||||
background_darker='#343F44'
|
||||
background_alt='#3D484D'
|
||||
background_light='#edeada'
|
||||
background_dark='#1e2326'
|
||||
background_light='#fdf6e3'
|
||||
background_dark='#2d353b'
|
||||
background_darker='#343f44'
|
||||
background_alt='#414b50'
|
||||
titlebar_light='#f4f0d9'
|
||||
titlebar_dark='#272e33'
|
||||
;;
|
||||
-Catppuccin)
|
||||
background_light='#eff1f5'
|
||||
background_dark='#292c3c'
|
||||
background_darker='#303446'
|
||||
background_alt='#4c4f69'
|
||||
titlebar_light='#e6e9ef'
|
||||
titlebar_dark='#24273a'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
@@ -343,11 +367,11 @@ make_gtkrc() {
|
||||
sed -i "s/#464646/${background_alt}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
|
||||
if [[ "${color}" == '-Dark' ]]; then
|
||||
sed -i "s/#5b9bf8/${theme_color}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
sed -i "s/#5b9bf8/${theme_color_light}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
sed -i "s/#3C3C3C/${background_darker}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
sed -i "s/#242424/${titlebar_dark}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
else
|
||||
sed -i "s/#3c84f7/${theme_color}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
sed -i "s/#3c84f7/${theme_color_dark}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
sed -i "s/#F2F2F2/${titlebar_light}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
|
||||
fi
|
||||
}
|
||||
|
186
install.sh
@@ -25,12 +25,12 @@ SASSC_OPT="-M -t expanded"
|
||||
|
||||
THEME_NAME=Colloid
|
||||
THEME_VARIANTS=('' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Grey')
|
||||
SCHEME_VARIANTS=('' '-Nord' '-Dracula' '-Gruvbox' '-Everforest')
|
||||
SCHEME_VARIANTS=('' '-Nord' '-Dracula' '-Gruvbox' '-Everforest' '-Catppuccin')
|
||||
COLOR_VARIANTS=('' '-Light' '-Dark')
|
||||
SIZE_VARIANTS=('' '-Compact')
|
||||
|
||||
if [[ "$(command -v gnome-shell)" ]]; then
|
||||
gnome-shell --version
|
||||
echo && gnome-shell --version
|
||||
SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)"
|
||||
if [[ "${SHELL_VERSION:-}" -ge "46" ]]; then
|
||||
GS_VERSION="46-0"
|
||||
@@ -63,18 +63,22 @@ OPTIONS:
|
||||
|
||||
-s, --size VARIANT Specify size variant [standard|compact] (Default: standard variant)
|
||||
|
||||
-l, --libadwaita Link installed gtk-4.0 theme to config folder for all libadwaita app use this theme
|
||||
|
||||
-r, --remove,
|
||||
-u, --uninstall Uninstall/Remove installed themes or links
|
||||
-l, --libadwaita Install specify gtk-4.0 theme into config folder ($HOME/.config/gtk-4.0) for all gtk4 apps use this theme
|
||||
Default ColorSchemes theme will follow the system style (light/dark mode switch), all ColorSchemes versions not support this !
|
||||
Options for default ColorSchemes:
|
||||
1. system Default option (using system colors for light/dark mode switching)
|
||||
2. fixed Using fixed theme colors (that will break light/dark mode switch)
|
||||
|
||||
--tweaks Specify versions for tweaks
|
||||
1. [nord|dracula|gruvbox|everforest|all] Nord|Dracula|gruvbox|everforet|all ColorSchemes version
|
||||
1. [nord|dracula|gruvbox|everforest|catppuccin|all] (Nord/Dracula/Gruvbox/Everforet/Catppuccin/all) ColorSchemes version
|
||||
2. black Blackness color version
|
||||
3. rimless Remove the 1px border about windows and menus
|
||||
4. normal Normal windows button style like gnome default theme (titlebuttons: max/min/close)
|
||||
5. float Floating gnome-shell panel style
|
||||
|
||||
-r, --remove,
|
||||
-u, --uninstall Uninstall/Remove installed themes or links
|
||||
|
||||
-h, --help Show help
|
||||
EOF
|
||||
}
|
||||
@@ -138,12 +142,12 @@ install() {
|
||||
cd "${THEME_DIR}/metacity-1" && ln -sf metacity-theme-3.xml metacity-theme-1.xml && ln -sf metacity-theme-3.xml metacity-theme-2.xml
|
||||
|
||||
mkdir -p "${THEME_DIR}/xfwm4"
|
||||
cp -r "${SRC_DIR}/main/xfwm4/themerc${ELSE_LIGHT:-}" "${THEME_DIR}/xfwm4/themerc"
|
||||
cp -r "${SRC_DIR}/main/xfwm4/themerc" "${THEME_DIR}/xfwm4/themerc"
|
||||
mkdir -p "${THEME_DIR}-hdpi/xfwm4"
|
||||
cp -r "${SRC_DIR}/main/xfwm4/themerc${ELSE_LIGHT:-}" "${THEME_DIR}-hdpi/xfwm4/themerc"
|
||||
cp -r "${SRC_DIR}/main/xfwm4/themerc" "${THEME_DIR}-hdpi/xfwm4/themerc"
|
||||
sed -i "s/button_offset=6/button_offset=9/" "${THEME_DIR}-hdpi/xfwm4/themerc"
|
||||
mkdir -p "${THEME_DIR}-xhdpi/xfwm4"
|
||||
cp -r "${SRC_DIR}/main/xfwm4/themerc${ELSE_LIGHT:-}" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
||||
cp -r "${SRC_DIR}/main/xfwm4/themerc" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
||||
sed -i "s/button_offset=6/button_offset=12/" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
||||
|
||||
mkdir -p "${THEME_DIR}/plank"
|
||||
@@ -165,7 +169,7 @@ while [[ $# -gt 0 ]]; do
|
||||
-d|--dest)
|
||||
dest="${2}"
|
||||
if [[ ! -d "${dest}" ]]; then
|
||||
echo "Destination directory does not exist. Let's make a new one..."
|
||||
echo -e "\nDestination directory does not exist. Let's make a new one..."
|
||||
mkdir -p ${dest}
|
||||
fi
|
||||
shift 2
|
||||
@@ -181,6 +185,27 @@ while [[ $# -gt 0 ]]; do
|
||||
-l|--libadwaita)
|
||||
libadwaita="true"
|
||||
shift
|
||||
for type in "${@}"; do
|
||||
case "${type}" in
|
||||
system)
|
||||
echo -e "\nUse system default colors for light/dark mode switch."
|
||||
shift
|
||||
;;
|
||||
fixed)
|
||||
colortype='fixed'
|
||||
echo -e "\nUse fixed theme colors but that will break light/dark mode switch."
|
||||
shift
|
||||
;;
|
||||
-*|--*)
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo -e "\nERROR: Unrecognized type variant '$1'."
|
||||
echo -e "\nTry '$0 --help' for more information."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
;;
|
||||
-c|--color)
|
||||
shift
|
||||
@@ -205,8 +230,8 @@ while [[ $# -gt 0 ]]; do
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unrecognized color variant '$1'."
|
||||
echo "Try '$0 --help' for more information."
|
||||
echo -e "\nERROR: Unrecognized color variant '$1'."
|
||||
echo -e "\nTry '$0 --help' for more information."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -261,8 +286,8 @@ while [[ $# -gt 0 ]]; do
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unrecognized theme variant '$1'."
|
||||
echo "Try '$0 --help' for more information."
|
||||
echo -e "\nERROR: Unrecognized theme variant '$1'."
|
||||
echo -e "\nTry '$0 --help' for more information."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -285,8 +310,8 @@ while [[ $# -gt 0 ]]; do
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unrecognized size variant '${1:-}'."
|
||||
echo "Try '$0 --help' for more information."
|
||||
echo -e "\nERROR: Unrecognized size variant '${1:-}'."
|
||||
echo -e "\nTry '$0 --help' for more information."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -299,25 +324,31 @@ while [[ $# -gt 0 ]]; do
|
||||
nord)
|
||||
colorscheme='true'
|
||||
schemes+=("${SCHEME_VARIANTS[1]}")
|
||||
echo -e "Nord ColorScheme version! ..."
|
||||
echo -e "\nNord ColorScheme version! ..."
|
||||
shift
|
||||
;;
|
||||
dracula)
|
||||
colorscheme='true'
|
||||
schemes+=("${SCHEME_VARIANTS[2]}")
|
||||
echo -e "Dracula ColorScheme version! ..."
|
||||
echo -e "\nDracula ColorScheme version! ..."
|
||||
shift
|
||||
;;
|
||||
gruvbox)
|
||||
colorscheme='true'
|
||||
schemes+=("${SCHEME_VARIANTS[3]}")
|
||||
echo -e "Gruvbox ColorScheme version! ..."
|
||||
echo -e "\nGruvbox ColorScheme version! ..."
|
||||
shift
|
||||
;;
|
||||
everforest)
|
||||
colorscheme='true'
|
||||
schemes+=("${SCHEME_VARIANTS[4]}")
|
||||
echo -e "Everforest ColorScheme version! ..."
|
||||
echo -e "\nEverforest ColorScheme version! ..."
|
||||
shift
|
||||
;;
|
||||
catppuccin)
|
||||
colorscheme='true'
|
||||
schemes+=("${SCHEME_VARIANTS[5]}")
|
||||
echo -e "\nCatppuccin ColorScheme version! ..."
|
||||
shift
|
||||
;;
|
||||
all)
|
||||
@@ -327,31 +358,31 @@ while [[ $# -gt 0 ]]; do
|
||||
;;
|
||||
black)
|
||||
blackness="true"
|
||||
echo -e "Blackness version! ..."
|
||||
echo -e "\nBlackness version! ..."
|
||||
shift
|
||||
;;
|
||||
rimless)
|
||||
rimless="true"
|
||||
echo -e "Rimless version! ..."
|
||||
echo -e "\nRimless version! ..."
|
||||
shift
|
||||
;;
|
||||
normal)
|
||||
normal="true"
|
||||
window="-Normal"
|
||||
echo -e "Normal window button version! ..."
|
||||
echo -e "\nNormal window button version! ..."
|
||||
shift
|
||||
;;
|
||||
float)
|
||||
float="true"
|
||||
echo -e "Install Floating Gnome-Shell Panel version! ..."
|
||||
echo -e "\nInstall Floating Gnome-Shell Panel version! ..."
|
||||
shift
|
||||
;;
|
||||
-*)
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unrecognized tweaks variant '$1'."
|
||||
echo "Try '$0 --help' for more information."
|
||||
echo -e "\nERROR: Unrecognized tweaks variant '$1'."
|
||||
echo -e "\nTry '$0 --help' for more information."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -362,8 +393,8 @@ while [[ $# -gt 0 ]]; do
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unrecognized installation option '$1'."
|
||||
echo "Try '$0 --help' for more information."
|
||||
echo -e "\nERROR: Unrecognized installation option '$1'."
|
||||
echo -e "\nTry '$0 --help' for more information."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -400,12 +431,14 @@ install_package() {
|
||||
echo sassc needs to be installed to generate the css.
|
||||
if has_command zypper; then
|
||||
sudo zypper in sassc
|
||||
elif has_command apt; then
|
||||
sudo apt install sassc
|
||||
elif has_command apt-get; then
|
||||
sudo apt-get install sassc
|
||||
elif has_command dnf; then
|
||||
sudo dnf install sassc
|
||||
elif has_command dnf; then
|
||||
sudo dnf install sassc
|
||||
elif has_command yum; then
|
||||
sudo yum install sassc
|
||||
elif has_command pacman; then
|
||||
sudo pacman -S --noconfirm sassc
|
||||
fi
|
||||
@@ -435,12 +468,19 @@ color_schemes() {
|
||||
-Everforest)
|
||||
scheme_color='everforest'
|
||||
;;
|
||||
-Catppuccin)
|
||||
scheme_color='catppuccin'
|
||||
;;
|
||||
esac
|
||||
sed -i "/\@import/s/color-palette-default/color-palette-${scheme_color}/" "${SRC_DIR}/sass/_tweaks-temp.scss"
|
||||
sed -i "/\$colorscheme:/s/default/${scheme_color}/" "${SRC_DIR}/sass/_tweaks-temp.scss"
|
||||
fi
|
||||
}
|
||||
|
||||
color_type() {
|
||||
sed -i "/\$colortype:/s/system/fixed/" "${SRC_DIR}/sass/_tweaks-temp.scss"
|
||||
}
|
||||
|
||||
blackness_color() {
|
||||
sed -i "/\$blackness:/s/false/true/" "${SRC_DIR}/sass/_tweaks-temp.scss"
|
||||
}
|
||||
@@ -462,7 +502,7 @@ gnome_shell_version() {
|
||||
|
||||
sed -i "/\widgets/s/40-0/${GS_VERSION}/" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"
|
||||
|
||||
if [[ "${GS_VERSION}" == '3-28' ]]; then
|
||||
if [[ "${GS_VERSION}" != '40-0' && "${GS_VERSION}" != '42-0' && "${GS_VERSION}" != '44-0' ]]; then
|
||||
sed -i "/\extensions/s/40-0/${GS_VERSION}/" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"
|
||||
fi
|
||||
}
|
||||
@@ -511,7 +551,11 @@ theme_tweaks() {
|
||||
if [[ "$compact" = "true" ]]; then
|
||||
compact_size
|
||||
fi
|
||||
|
||||
|
||||
if [[ "$colortype" = "fixed" ]] ; then
|
||||
color_type
|
||||
fi
|
||||
|
||||
if [[ "$colorscheme" = "true" ]] ; then
|
||||
color_schemes
|
||||
fi
|
||||
@@ -533,8 +577,8 @@ theme_tweaks() {
|
||||
fi
|
||||
}
|
||||
|
||||
uninstall_link() {
|
||||
rm -rf "${HOME}/.config/gtk-4.0/"{assets,windows-assets,gtk.css,gtk-dark.css}
|
||||
uninstall_libadwaita() {
|
||||
rm -rf "${HOME}/.config/gtk-4.0/"{assets,windows-assets,gtk.css,gtk-dark.css,gtk-Light.css,gtk-Dark.css}
|
||||
}
|
||||
|
||||
link_libadwaita() {
|
||||
@@ -549,7 +593,7 @@ link_libadwaita() {
|
||||
|
||||
rm -rf "${HOME}/.config/gtk-4.0/"{assets,gtk.css,gtk-dark.css}
|
||||
|
||||
echo -e "\nLink '$THEME_DIR/gtk-4.0' to '${HOME}/.config/gtk-4.0' for libadwaita..."
|
||||
echo -e "\nLink '${THEME_DIR}/gtk-4.0' to '${HOME}/.config/gtk-4.0' for libadwaita...\n"
|
||||
|
||||
mkdir -p "${HOME}/.config/gtk-4.0"
|
||||
ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets"
|
||||
@@ -557,6 +601,31 @@ link_libadwaita() {
|
||||
ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"
|
||||
}
|
||||
|
||||
libadwaita_theme() {
|
||||
local dest="${1}"
|
||||
local name="${2}"
|
||||
local theme="${3}"
|
||||
local color="${4}"
|
||||
local size="${5}"
|
||||
local scheme="${6}"
|
||||
|
||||
theme_tweaks
|
||||
|
||||
rm -rf "${HOME}/.config/gtk-4.0/"{assets,gtk.css,gtk-dark.css}
|
||||
|
||||
echo -e "\nInstalling ${2}${3}${4}${5}${6} theme into '${HOME}/.config/gtk-4.0' for libadwaita..."
|
||||
|
||||
mkdir -p "${HOME}/.config/gtk-4.0"
|
||||
cp -r "${SRC_DIR}/assets/gtk/assets" "${HOME}/.config/gtk-4.0"
|
||||
cp -r "${SRC_DIR}/assets/gtk/symbolics/"*'.svg' "${HOME}/.config/gtk-4.0/assets"
|
||||
|
||||
if [[ "$colorscheme" = "true" || "$blackness" = "true" || "$colortype" = "fixed" ]] ; then
|
||||
sassc $SASSC_OPT "${SRC_DIR}/main/libadwaita/libadwaita${color}.scss" "${HOME}/.config/gtk-4.0/gtk.css"
|
||||
else
|
||||
sassc $SASSC_OPT "${SRC_DIR}/main/libadwaita/libadwaita-Light.scss" "${HOME}/.config/gtk-4.0/gtk.css"
|
||||
fi
|
||||
}
|
||||
|
||||
link_theme() {
|
||||
for theme in "${themes[@]}"; do
|
||||
for color in "${lcolors[@]}"; do
|
||||
@@ -569,33 +638,12 @@ link_theme() {
|
||||
done
|
||||
}
|
||||
|
||||
clean() {
|
||||
local dest="${1}"
|
||||
local name="${2}"
|
||||
local theme="${3}"
|
||||
local color="${4}"
|
||||
local size="${5}"
|
||||
local scheme="${6}"
|
||||
local screen="${7}"
|
||||
|
||||
local THEME_DIR="${1}/${2}${3}${4}${5}${6}${7}"
|
||||
|
||||
if [[ ${theme} == '' && ${color} == '' && ${size} == '' && ${scheme} == '' ]]; then
|
||||
cleantheme='none'
|
||||
elif [[ -d ${THEME_DIR} ]]; then
|
||||
rm -rf ${THEME_DIR}
|
||||
echo -e "Find: ${THEME_DIR} ! removing it ..."
|
||||
fi
|
||||
}
|
||||
|
||||
clean_theme() {
|
||||
for theme in '' '-purple' '-pink' '-red' '-orange' '-yellow' '-green' '-teal' '-grey'; do
|
||||
for color in '' '-light' '-dark'; do
|
||||
for size in '' '-compact'; do
|
||||
for scheme in '' '-nord' '-dracula' '-gruvbox' '-everforest'; do
|
||||
for screen in '' '-hdpi' '-xhdpi'; do
|
||||
clean "${dest:-${DEST_DIR}}" "${name:-${THEME_NAME}}" "${theme}" "${color}" "${size}" "${scheme}" "${screen}"
|
||||
done
|
||||
install_libadwaita() {
|
||||
for theme in "${themes[@]}"; do
|
||||
for color in "${lcolors[@]}"; do
|
||||
for size in "${sizes[@]}"; do
|
||||
for scheme in "${schemes[@]}"; do
|
||||
libadwaita_theme "${dest:-$DEST_DIR}" "${name:-$THEME_NAME}" "$theme" "$color" "$size" "$scheme"
|
||||
done
|
||||
done
|
||||
done
|
||||
@@ -652,15 +700,17 @@ uninstall_theme() {
|
||||
|
||||
if [[ "$uninstall" == 'true' ]]; then
|
||||
if [[ "$libadwaita" == 'true' ]]; then
|
||||
echo -e "\nUninstall ${HOME}/.config/gtk-4.0 links ..."
|
||||
uninstall_link
|
||||
echo -e "\nUninstall libadwaita theme from ${HOME}/.config/gtk-4.0 ..."
|
||||
uninstall_libadwaita
|
||||
else
|
||||
echo && uninstall_theme && uninstall_link
|
||||
echo && uninstall_theme && uninstall_libadwaita
|
||||
fi
|
||||
else
|
||||
install_package && tweaks_temp && gnome_shell_version && install_theme
|
||||
install_package && tweaks_temp
|
||||
gnome_shell_version && echo && install_theme
|
||||
|
||||
if [[ "$libadwaita" == 'true' ]]; then
|
||||
uninstall_link && link_theme
|
||||
uninstall_libadwaita && install_libadwaita
|
||||
fi
|
||||
fi
|
||||
|
||||
|
BIN
screencast.mp4
Normal file
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 16 KiB |
BIN
src/assets/gtk-2.0/assets-Catppuccin/checkbox-checked-active.png
Normal file
After Width: | Height: | Size: 522 B |
After Width: | Height: | Size: 453 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/checkbox-checked-hover.png
Normal file
After Width: | Height: | Size: 522 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/checkbox-checked.png
Normal file
After Width: | Height: | Size: 512 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/checkbox-mixed-active.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/checkbox-mixed-disabled.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/checkbox-mixed-hover.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/checkbox-mixed.png
Normal file
After Width: | Height: | Size: 439 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/combo-left-entry-active.png
Normal file
After Width: | Height: | Size: 326 B |
After Width: | Height: | Size: 337 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/entry-active.png
Normal file
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 423 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/menu-checkbox-checked.png
Normal file
After Width: | Height: | Size: 461 B |
After Width: | Height: | Size: 342 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/menu-checkbox-mixed.png
Normal file
After Width: | Height: | Size: 363 B |
After Width: | Height: | Size: 375 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/menu-radio-checked.png
Normal file
After Width: | Height: | Size: 398 B |
After Width: | Height: | Size: 342 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/menu-radio-mixed.png
Normal file
After Width: | Height: | Size: 363 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/progressbar-progress.png
Normal file
After Width: | Height: | Size: 136 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-checked-active.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-checked-disabled.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-checked-hover.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-checked.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-mixed-active.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-mixed-disabled.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-mixed-hover.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/radio-mixed.png
Normal file
After Width: | Height: | Size: 439 B |
After Width: | Height: | Size: 164 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/scale-slider-active.png
Normal file
After Width: | Height: | Size: 522 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/scale-slider-hover.png
Normal file
After Width: | Height: | Size: 455 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/scale-slider.png
Normal file
After Width: | Height: | Size: 290 B |
After Width: | Height: | Size: 162 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/spin-ltr-down-active.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/spin-ltr-up-active.png
Normal file
After Width: | Height: | Size: 262 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/spin-rtl-down-active.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/spin-rtl-up-active.png
Normal file
After Width: | Height: | Size: 246 B |
BIN
src/assets/gtk-2.0/assets-Catppuccin/tab.png
Normal file
After Width: | Height: | Size: 127 B |
After Width: | Height: | Size: 522 B |
After Width: | Height: | Size: 473 B |
After Width: | Height: | Size: 522 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/checkbox-checked.png
Normal file
After Width: | Height: | Size: 512 B |
After Width: | Height: | Size: 445 B |
After Width: | Height: | Size: 388 B |
After Width: | Height: | Size: 445 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/checkbox-mixed.png
Normal file
After Width: | Height: | Size: 439 B |
After Width: | Height: | Size: 322 B |
After Width: | Height: | Size: 333 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/entry-active.png
Normal file
After Width: | Height: | Size: 416 B |
After Width: | Height: | Size: 433 B |
After Width: | Height: | Size: 461 B |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 363 B |
After Width: | Height: | Size: 376 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/menu-radio-checked.png
Normal file
After Width: | Height: | Size: 398 B |
After Width: | Height: | Size: 343 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/menu-radio-mixed.png
Normal file
After Width: | Height: | Size: 363 B |
After Width: | Height: | Size: 136 B |
After Width: | Height: | Size: 478 B |
After Width: | Height: | Size: 422 B |
After Width: | Height: | Size: 478 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/radio-checked.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/radio-mixed-active.png
Normal file
After Width: | Height: | Size: 445 B |
After Width: | Height: | Size: 388 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/radio-mixed-hover.png
Normal file
After Width: | Height: | Size: 445 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/radio-mixed.png
Normal file
After Width: | Height: | Size: 439 B |
After Width: | Height: | Size: 164 B |
After Width: | Height: | Size: 555 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/scale-slider-hover.png
Normal file
After Width: | Height: | Size: 464 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/scale-slider.png
Normal file
After Width: | Height: | Size: 290 B |
After Width: | Height: | Size: 162 B |
After Width: | Height: | Size: 243 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/spin-ltr-up-active.png
Normal file
After Width: | Height: | Size: 262 B |
After Width: | Height: | Size: 258 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/spin-rtl-up-active.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
src/assets/gtk-2.0/assets-Dark-Catppuccin/tab.png
Normal file
After Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 355 B |
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
Before Width: | Height: | Size: 449 B After Width: | Height: | Size: 449 B |
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
After Width: | Height: | Size: 518 B |
After Width: | Height: | Size: 465 B |
After Width: | Height: | Size: 522 B |
BIN
src/assets/gtk-2.0/assets-Green-Catppuccin/checkbox-checked.png
Normal file
After Width: | Height: | Size: 512 B |
After Width: | Height: | Size: 445 B |
After Width: | Height: | Size: 394 B |
After Width: | Height: | Size: 445 B |
BIN
src/assets/gtk-2.0/assets-Green-Catppuccin/checkbox-mixed.png
Normal file
After Width: | Height: | Size: 439 B |