Compare commits
56 Commits
2024-05-13
...
2024-11-16
Author | SHA1 | Date | |
---|---|---|---|
|
b9f3d52000 | ||
|
18a308ba41 | ||
|
2ef8de7aa6 | ||
|
2a4e21ec5e | ||
|
82424c0ba7 | ||
|
8ebb9b1fb3 | ||
|
85d421879e | ||
|
1b3b2b4cfa | ||
|
21b358c999 | ||
|
64ebafe93f | ||
|
72a05a46f0 | ||
|
d269edf9af | ||
|
3f82c6cfb7 | ||
|
d0267bc067 | ||
|
b63b2877cc | ||
|
1674b62989 | ||
|
4794d23095 | ||
|
654adcba00 | ||
|
809c7b9bac | ||
|
e96fbba972 | ||
|
8ae5599105 | ||
|
c7ab1fe321 | ||
|
e3e3910bc6 | ||
|
224c3fa38c | ||
|
236b905ac8 | ||
|
482c350d5a | ||
|
8889f151b0 | ||
|
7523e1e0ce | ||
|
d835a32978 | ||
|
9188989210 | ||
|
f75b986e9a | ||
|
f0165c865d | ||
|
2a9bad109d | ||
|
c4cf73e4cf | ||
|
7b40c005d8 | ||
|
1ae1f803db | ||
|
75a0cb7c29 | ||
|
60b9954c5b | ||
|
177bb20528 | ||
|
6e823240b3 | ||
|
3f460e5b46 | ||
|
73184229f5 | ||
|
dfff1a7817 | ||
|
686fe61569 | ||
|
57f10cc353 | ||
|
a21570fdab | ||
|
832fa2600b | ||
|
c50f1024c8 | ||
|
e23c79601c | ||
|
aed576b4dc | ||
|
9ffb38b5a1 | ||
|
b00d256e59 | ||
|
a5e8268d08 | ||
|
1a13048ea1 | ||
|
53fb42660f | ||
|
0eac8ce60e |
9
.gitignore
vendored
@@ -11,3 +11,12 @@ src/main/gnome-shell/gnome-shell-Dark.css
|
||||
src/main/cinnamon/cinnamon.css
|
||||
src/main/cinnamon/cinnamon-Light.css
|
||||
src/main/cinnamon/cinnamon-Dark.css
|
||||
release/Colloid-Catppuccin.tar.xz
|
||||
release/Colloid-Dracula.tar.xz
|
||||
release/Colloid-Everforest.tar.xz
|
||||
release/Colloid-Gruvbox.tar.xz
|
||||
release/Colloid-Nord.tar.xz
|
||||
release/Colloid.tar.xz
|
||||
src/main/libadwaita/libadwaita-Dark.css
|
||||
src/main/libadwaita/libadwaita-Light.css
|
||||
src/main/libadwaita/libadwaita.css
|
||||
|
22
README.md
@@ -40,14 +40,14 @@ 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 Install specify gtk-4.0 theme into config folder (~/.config/gtk-4.0) for all gtk4 apps use this theme
|
||||
Default ColorSchemes theme will follow the system style (light/dark mode switch), nord|dracula|gruvbox|everforest|black ColorSchemes not support this
|
||||
-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)
|
||||
@@ -71,9 +71,23 @@ Default ColorSchemes themes will follow the system style now ! (switch [light/da
|
||||
|
||||
https://github.com/vinceliuice/Colloid-gtk-theme/assets/7604295/d5c24086-08bc-45a4-b4d9-124c02249216
|
||||
|
||||
### Fix for Flatpak
|
||||
|
||||
```sh
|
||||
sudo flatpak override --filesystem=xdg-config/gtk-3.0 && sudo flatpak override --filesystem=xdg-config/gtk-4.0
|
||||
```
|
||||
|
||||
If you use flatpak apps, you can run this to fix theme issue
|
||||
|
||||
### ColorSchemes
|
||||
|
||||

|
||||
|
||||
### Tweaks
|
||||
|
||||

|
||||
|
||||
### Flatpak Installation
|
||||
### Flatpak Installation (gtk-3.0)
|
||||
|
||||
Automatically install your host GTK+ theme as a Flatpak. Use this:
|
||||
|
||||
|
477
assets.sh
@@ -52,167 +52,208 @@ 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
|
||||
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
|
||||
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
|
||||
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
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#3a94c5'
|
||||
theme_color_light='#7fbbb3'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#df69ba'
|
||||
theme_color_light='#D699B6'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#f85552'
|
||||
theme_color_light='#E67E80'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#f57d26'
|
||||
theme_color_light='#E69875'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#dfa000'
|
||||
theme_color_light='#DBBC7F'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#8da101'
|
||||
theme_color_light='#A7C080'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#35a77c'
|
||||
theme_color_light='#83C092'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#414b50'
|
||||
theme_color_light='#e6e2cc'
|
||||
;;
|
||||
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
|
||||
@@ -252,6 +293,13 @@ 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 "$scheme" in
|
||||
@@ -284,11 +332,18 @@ make_assets() {
|
||||
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
|
||||
@@ -345,7 +400,109 @@ make_assets() {
|
||||
cp -r "${SRC_DIR}/assets/metacity-1/assets${window}" "${THEME_DIR}/metacity-1/assets"
|
||||
cp -r "${SRC_DIR}/assets/metacity-1/thumbnail${ELSE_DARK:-}.png" "${THEME_DIR}/metacity-1/thumbnail.png"
|
||||
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${scheme}${window}/"*.png "${THEME_DIR}/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${scheme}${window}-hdpi/"*.png "${THEME_DIR}-hdpi/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${scheme}${window}-xhdpi/"*.png "${THEME_DIR}-xhdpi/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/svg/assets${ELSE_LIGHT:-}${window}/"*.svg "${THEME_DIR}/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/svg/assets${ELSE_LIGHT:-}${window}-hdpi/"*.svg "${THEME_DIR}-hdpi/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/svg/assets${ELSE_LIGHT:-}${window}-xhdpi/"*.svg "${THEME_DIR}-xhdpi/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/xpm/assets/"*.xpm "${THEME_DIR}/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/xpm/assets-hdpi/"*.xpm "${THEME_DIR}-hdpi/xfwm4"
|
||||
cp -r "${SRC_DIR}/assets/xfwm4/xpm/assets-xhdpi/"*.xpm "${THEME_DIR}-xhdpi/xfwm4"
|
||||
|
||||
if [[ "$normal" == "true" ]] ; then
|
||||
mv -f "${THEME_DIR}/xfwm4/button-active-Normal.xpm" "${THEME_DIR}/xfwm4/button-active.xpm"
|
||||
mv -f "${THEME_DIR}-hdpi/xfwm4/button-active-Normal.xpm" "${THEME_DIR}-hdpi/xfwm4/button-active.xpm"
|
||||
mv -f "${THEME_DIR}-xhdpi/xfwm4/button-active-Normal.xpm" "${THEME_DIR}-xhdpi/xfwm4/button-active.xpm"
|
||||
mv -f "${THEME_DIR}/xfwm4/button-inactive-Normal.xpm" "${THEME_DIR}/xfwm4/button-inactive.xpm"
|
||||
mv -f "${THEME_DIR}-hdpi/xfwm4/button-inactive-Normal.xpm" "${THEME_DIR}-hdpi/xfwm4/button-inactive.xpm"
|
||||
mv -f "${THEME_DIR}-xhdpi/xfwm4/button-inactive-Normal.xpm" "${THEME_DIR}-xhdpi/xfwm4/button-inactive.xpm"
|
||||
fi
|
||||
|
||||
case "$scheme" in
|
||||
'')
|
||||
button_close="#fd5f51"
|
||||
button_max="#38c76a"
|
||||
button_min="#fdbe04"
|
||||
;;
|
||||
-Nord)
|
||||
button_close="#bf616a"
|
||||
button_max="#a3be8c"
|
||||
button_min="#ebcb8b"
|
||||
;;
|
||||
-Gruvbox)
|
||||
button_close="#cc241d"
|
||||
button_max="#98971a"
|
||||
button_min="#d79921"
|
||||
;;
|
||||
-Dracula)
|
||||
if [[ "$color" == '-Light' ]]; then
|
||||
button_close="#ed5d5d"
|
||||
button_max="#43db68"
|
||||
button_min="#e3d93b"
|
||||
else
|
||||
button_close="#f44d4d"
|
||||
button_max="#4be772"
|
||||
button_min="#e8f467"
|
||||
fi
|
||||
;;
|
||||
-Catppuccin)
|
||||
if [[ "$color" == '-Light' ]]; then
|
||||
button_close="#e64553"
|
||||
button_max="#40a02b"
|
||||
button_min="#df8e1d"
|
||||
else
|
||||
button_close="#ea999c"
|
||||
button_max="#a6d189"
|
||||
button_min="#e5c890"
|
||||
fi
|
||||
;;
|
||||
-Everforest)
|
||||
if [[ "$color" == '-Light' ]]; then
|
||||
button_close="#e67e80"
|
||||
button_max="#93ac6c"
|
||||
button_min="#d6b77a"
|
||||
else
|
||||
button_close="#ff9c9e"
|
||||
button_max="#b6cf8f"
|
||||
button_min="#eacb8e"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}/xfwm4/close-active.svg"
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}/xfwm4/close-prelight.svg"
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}/xfwm4/close-pressed.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-active.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-prelight.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-pressed.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-toggled-active.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-toggled-prelight.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-toggled-pressed.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}/xfwm4/hide-active.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}/xfwm4/hide-prelight.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}/xfwm4/hide-pressed.svg"
|
||||
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-hdpi/xfwm4/close-active.svg"
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-hdpi/xfwm4/close-prelight.svg"
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-hdpi/xfwm4/close-pressed.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-active.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-prelight.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-pressed.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-toggled-active.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-toggled-prelight.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-toggled-pressed.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-hdpi/xfwm4/hide-active.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-hdpi/xfwm4/hide-prelight.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-hdpi/xfwm4/hide-pressed.svg"
|
||||
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-xhdpi/xfwm4/close-active.svg"
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-xhdpi/xfwm4/close-prelight.svg"
|
||||
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-xhdpi/xfwm4/close-pressed.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-active.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-prelight.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-pressed.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-toggled-active.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-toggled-prelight.svg"
|
||||
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-toggled-pressed.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-xhdpi/xfwm4/hide-active.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-xhdpi/xfwm4/hide-prelight.svg"
|
||||
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-xhdpi/xfwm4/hide-pressed.svg"
|
||||
}
|
||||
|
2
build.sh
@@ -35,6 +35,8 @@ for color in "${_COLOR_VARIANTS[@]}"; do
|
||||
echo "==> Generating the 3.0 gtk${color}.css..."
|
||||
sassc $SASSC_OPT src/main/gtk-4.0/gtk${color}.{scss,css}
|
||||
echo "==> Generating the 4.0 gtk${color}.css..."
|
||||
sassc $SASSC_OPT src/main/libadwaita/libadwaita${color}.{scss,css}
|
||||
echo "==> Generating the libadwaita libadwaita${color}.css..."
|
||||
sassc $SASSC_OPT src/main/gnome-shell/gnome-shell${color}.{scss,css}
|
||||
echo "==> Generating the gnome-shell${color}.css..."
|
||||
sassc $SASSC_OPT src/main/cinnamon/cinnamon${color}.{scss,css}
|
||||
|
BIN
colorschemes.png
Normal file
After Width: | Height: | Size: 963 KiB |
373
gtkrc.sh
@@ -53,167 +53,208 @@ make_gtkrc() {
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
case "$theme" in
|
||||
'')
|
||||
theme_color_dark='#3a94c5'
|
||||
theme_color_light='#7fbbb3'
|
||||
;;
|
||||
-Purple)
|
||||
theme_color_dark='#df69ba'
|
||||
theme_color_light='#D699B6'
|
||||
;;
|
||||
-Pink)
|
||||
theme_color_dark='#b16286'
|
||||
theme_color_light='#d3869b'
|
||||
;;
|
||||
-Red)
|
||||
theme_color_dark='#f85552'
|
||||
theme_color_light='#E67E80'
|
||||
;;
|
||||
-Orange)
|
||||
theme_color_dark='#f57d26'
|
||||
theme_color_light='#E69875'
|
||||
;;
|
||||
-Yellow)
|
||||
theme_color_dark='#dfa000'
|
||||
theme_color_light='#DBBC7F'
|
||||
;;
|
||||
-Green)
|
||||
theme_color_dark='#8da101'
|
||||
theme_color_light='#A7C080'
|
||||
;;
|
||||
-Teal)
|
||||
theme_color_dark='#35a77c'
|
||||
theme_color_light='#83C092'
|
||||
;;
|
||||
-Grey)
|
||||
theme_color_dark='#414b50'
|
||||
theme_color_light='#e6e2cc'
|
||||
;;
|
||||
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
|
||||
@@ -258,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
|
||||
@@ -294,12 +343,20 @@ make_gtkrc() {
|
||||
titlebar_dark='#242220'
|
||||
;;
|
||||
-Everforest)
|
||||
background_light='#fffbef'
|
||||
background_dark='#232A2E'
|
||||
background_darker='#343F44'
|
||||
background_alt='#3D484D'
|
||||
titlebar_light='#edeada'
|
||||
titlebar_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
|
||||
|
101
install.sh
@@ -15,8 +15,14 @@ scheme=
|
||||
window=
|
||||
|
||||
# Destination directory
|
||||
if [ "$UID" -eq "$ROOT_UID" ]; then
|
||||
if [[ "$UID" -eq "$ROOT_UID" ]]; then
|
||||
DEST_DIR="/usr/share/themes"
|
||||
elif [[ -n "$XDG_DATA_HOME" ]]; then
|
||||
DEST_DIR="$XDG_DATA_HOME/themes"
|
||||
elif [[ -d "$HOME/.themes" ]]; then
|
||||
DEST_DIR="$HOME/.themes"
|
||||
elif [[ -d "$HOME/.local/share/themes" ]]; then
|
||||
DEST_DIR="$HOME/.local/share/themes"
|
||||
else
|
||||
DEST_DIR="$HOME/.themes"
|
||||
fi
|
||||
@@ -25,14 +31,16 @@ 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
|
||||
echo && gnome-shell --version
|
||||
SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)"
|
||||
if [[ "${SHELL_VERSION:-}" -ge "46" ]]; then
|
||||
if [[ "${SHELL_VERSION:-}" -ge "47" ]]; then
|
||||
GS_VERSION="47-0"
|
||||
elif [[ "${SHELL_VERSION:-}" -ge "46" ]]; then
|
||||
GS_VERSION="46-0"
|
||||
elif [[ "${SHELL_VERSION:-}" -ge "44" ]]; then
|
||||
GS_VERSION="44-0"
|
||||
@@ -45,7 +53,7 @@ if [[ "$(command -v gnome-shell)" ]]; then
|
||||
fi
|
||||
else
|
||||
echo "'gnome-shell' not found, using styles for last gnome-shell version available."
|
||||
GS_VERSION="46-0"
|
||||
GS_VERSION="47-0"
|
||||
fi
|
||||
|
||||
usage() {
|
||||
@@ -64,13 +72,13 @@ OPTIONS:
|
||||
-s, --size VARIANT Specify size variant [standard|compact] (Default: standard variant)
|
||||
|
||||
-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), nord|dracula|gruvbox|everforest|black ColorSchemes not support this
|
||||
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)
|
||||
@@ -97,7 +105,7 @@ install() {
|
||||
|
||||
local THEME_DIR="${1}/${2}${3}${4}${5}${6}"
|
||||
|
||||
[[ -d "${THEME_DIR}" ]] && rm -rf "${THEME_DIR}"
|
||||
[[ -d "${THEME_DIR}" ]] && rm -rf "${THEME_DIR}"{'','-hdpi','-xhdpi'}
|
||||
|
||||
echo "Installing '${THEME_DIR}'..."
|
||||
|
||||
@@ -114,7 +122,7 @@ install() {
|
||||
echo "[X-GNOME-Metatheme]" >> "${THEME_DIR}/index.theme"
|
||||
echo "GtkTheme=${2}${3}${4}${5}${6}" >> "${THEME_DIR}/index.theme"
|
||||
echo "MetacityTheme=${2}${3}${4}${5}${6}" >> "${THEME_DIR}/index.theme"
|
||||
echo "IconTheme=Tela-circle${ELSE_DARK:-}" >> "${THEME_DIR}/index.theme"
|
||||
echo "IconTheme=Colloid${3}${6}${4}" >> "${THEME_DIR}/index.theme"
|
||||
echo "CursorTheme=${2}-cursors" >> "${THEME_DIR}/index.theme"
|
||||
echo "ButtonLayout=close,minimize,maximize:menu" >> "${THEME_DIR}/index.theme"
|
||||
|
||||
@@ -142,12 +150,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"
|
||||
@@ -345,6 +353,12 @@ while [[ $# -gt 0 ]]; do
|
||||
echo -e "\nEverforest ColorScheme version! ..."
|
||||
shift
|
||||
;;
|
||||
catppuccin)
|
||||
colorscheme='true'
|
||||
schemes+=("${SCHEME_VARIANTS[5]}")
|
||||
echo -e "\nCatppuccin ColorScheme version! ..."
|
||||
shift
|
||||
;;
|
||||
all)
|
||||
colorscheme='true'
|
||||
schemes+=("${SCHEME_VARIANTS[@]}")
|
||||
@@ -394,23 +408,23 @@ while [[ $# -gt 0 ]]; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ "${#themes[@]}" -eq 0 ]] ; then
|
||||
if [[ "${#themes[@]}" -eq 0 ]]; then
|
||||
themes=("${THEME_VARIANTS[0]}")
|
||||
fi
|
||||
|
||||
if [[ "${#colors[@]}" -eq 0 ]] ; then
|
||||
if [[ "${#colors[@]}" -eq 0 ]]; then
|
||||
colors=("${COLOR_VARIANTS[@]}")
|
||||
fi
|
||||
|
||||
if [[ "${#lcolors[@]}" -eq 0 ]] ; then
|
||||
if [[ "${#lcolors[@]}" -eq 0 ]]; then
|
||||
lcolors=("${COLOR_VARIANTS[1]}")
|
||||
fi
|
||||
|
||||
if [[ "${#sizes[@]}" -eq 0 ]] ; then
|
||||
if [[ "${#sizes[@]}" -eq 0 ]]; then
|
||||
sizes=("${SIZE_VARIANTS[0]}")
|
||||
fi
|
||||
|
||||
if [[ "${#schemes[@]}" -eq 0 ]] ; then
|
||||
if [[ "${#schemes[@]}" -eq 0 ]]; then
|
||||
schemes=("${SCHEME_VARIANTS[0]}")
|
||||
fi
|
||||
|
||||
@@ -462,6 +476,9 @@ 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"
|
||||
@@ -493,8 +510,14 @@ gnome_shell_version() {
|
||||
|
||||
sed -i "/\widgets/s/40-0/${GS_VERSION}/" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"
|
||||
|
||||
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"
|
||||
if [[ "${GS_VERSION}" == '3-28' ]]; then
|
||||
sed -i "/\extensions/s/40-0/3-28/" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"
|
||||
elif [[ "${GS_VERSION}" -ge '46-0' ]]; then
|
||||
sed -i "/\extensions/s/40-0/46-0/" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"
|
||||
fi
|
||||
|
||||
if [[ "${SHELL_VERSION:-}" -ge "47" ]]; then
|
||||
sed -i "/\gnome_version/s/default/new/" "${SRC_DIR}/sass/_tweaks-temp.scss"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -673,22 +696,50 @@ uninstall() {
|
||||
|
||||
local THEME_DIR="${1}/${2}${3}${4}${5}${6}"
|
||||
|
||||
if [[ "$uninstall" == 'true' ]]; then
|
||||
type='Uninstall'
|
||||
else
|
||||
type='Clean'
|
||||
fi
|
||||
|
||||
if [[ -d "${THEME_DIR}" ]]; then
|
||||
echo -e "Uninstall ${THEME_DIR}... "
|
||||
rm -rf "${THEME_DIR}"
|
||||
echo -e "${type} ${THEME_DIR}... "
|
||||
rm -rf "${THEME_DIR}"{'','-hdpi','-xhdpi'}
|
||||
fi
|
||||
}
|
||||
|
||||
uninstall_theme() {
|
||||
for theme in "${themes[@]}"; do
|
||||
for color in "${colors[@]}"; do
|
||||
for size in "${sizes[@]}"; do
|
||||
uninstall "${dest:-$DEST_DIR}" "${name:-$THEME_NAME}" "$theme" "$color" "$size" "$scheme"
|
||||
for theme in "${THEME_VARIANTS[@]}"; do
|
||||
for color in "${COLOR_VARIANTS[@]}"; do
|
||||
for size in "${SIZE_VARIANTS[@]}"; do
|
||||
for scheme in "${SCHEME_VARIANTS[@]}"; do
|
||||
uninstall "${dest:-$DEST_DIR}" "${name:-$THEME_NAME}" "$theme" "$color" "$size" "$scheme"
|
||||
done
|
||||
done
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
clean_theme() {
|
||||
if [[ "$UID" != "$ROOT_UID" ]]; then
|
||||
if [[ "$DEST_DIR" == "$HOME/.themes" ]]; then
|
||||
local dest="$HOME/.local/share/themes"
|
||||
elif [[ "$DEST_DIR" == "$XDG_DATA_HOME/themes" || "$DEST_DIR" == "$HOME/.local/share/themes" ]]; then
|
||||
local dest="$HOME/.themes"
|
||||
fi
|
||||
|
||||
for theme in "${themes[@]}"; do
|
||||
for color in "${colors[@]}"; do
|
||||
for size in "${sizes[@]}"; do
|
||||
for scheme in "${schemes[@]}"; do
|
||||
uninstall "${dest}" "${name:-$THEME_NAME}" "$theme" "$color" "$size" "$scheme"
|
||||
done
|
||||
done
|
||||
done
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ "$uninstall" == 'true' ]]; then
|
||||
if [[ "$libadwaita" == 'true' ]]; then
|
||||
echo -e "\nUninstall libadwaita theme from ${HOME}/.config/gtk-4.0 ..."
|
||||
@@ -698,7 +749,7 @@ if [[ "$uninstall" == 'true' ]]; then
|
||||
fi
|
||||
else
|
||||
install_package && tweaks_temp
|
||||
gnome_shell_version && echo && install_theme
|
||||
gnome_shell_version && echo && clean_theme && install_theme
|
||||
|
||||
if [[ "$libadwaita" == 'true' ]]; then
|
||||
uninstall_libadwaita && install_libadwaita
|
||||
|
51
release/make-release.sh
Executable file
@@ -0,0 +1,51 @@
|
||||
#! /bin/bash
|
||||
|
||||
THEME_DIR=$(cd $(dirname $0) && pwd)
|
||||
|
||||
THEME_NAME=Colloid
|
||||
|
||||
_THEME_VARIANTS=('' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Grey')
|
||||
_SCHEME_VARIANTS=('' '-Nord' '-Dracula' '-Gruvbox' '-Everforest' '-Catppuccin')
|
||||
_COLOR_VARIANTS=('' '-Light' '-Dark')
|
||||
_SIZE_VARIANTS=('' '-Compact')
|
||||
|
||||
if [ ! -z "${COLOR_VARIANTS:-}" ]; then
|
||||
IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
|
||||
fi
|
||||
|
||||
if [ ! -z "${SCHEME_VARIANTS:-}" ]; then
|
||||
IFS=', ' read -r -a _SCHEME_VARIANTS <<< "${SCHEME_VARIANTS:-}"
|
||||
fi
|
||||
|
||||
if [ ! -z "${THEME_VARIANTS:-}" ]; then
|
||||
IFS=', ' read -r -a _THEME_VARIANTS <<< "${THEME_VARIANTS:-}"
|
||||
fi
|
||||
|
||||
if [ ! -z "${SIZE_VARIANTS:-}" ]; then
|
||||
IFS=', ' read -r -a _SIZE_VARIANTS <<< "${SIZE_VARIANTS:-}"
|
||||
fi
|
||||
|
||||
Tar_themes() {
|
||||
for scheme in "${_SCHEME_VARIANTS[@]}"; do
|
||||
rm -rf ${THEME_NAME}${scheme}.tar
|
||||
rm -rf ${THEME_NAME}${scheme}.tar.xz
|
||||
done
|
||||
|
||||
for scheme in "${_SCHEME_VARIANTS[@]}"; do
|
||||
tar -Jcvf ${THEME_NAME}${theme}${scheme}.tar.xz ${THEME_NAME}{'','-Purple','-Pink','-Red','-Orange','-Yellow','-Green','-Teal','-Grey'}{'','-Light','-Dark'}${scheme}
|
||||
done
|
||||
}
|
||||
|
||||
Clear_theme() {
|
||||
for theme in "${_THEME_VARIANTS[@]}"; do
|
||||
for color in "${_COLOR_VARIANTS[@]}"; do
|
||||
for scheme in "${_SCHEME_VARIANTS[@]}"; do
|
||||
rm -rf ${THEME_NAME}${theme}${color}${scheme}{'','-hdpi','-xhdpi'}
|
||||
done
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
cd .. && ./install.sh -d $THEME_DIR --tweaks all -t all
|
||||
cd $THEME_DIR && Tar_themes && Clear_theme
|
||||
|
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: 522 B After Width: | Height: | Size: 522 B |
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 469 B |
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 522 B |
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 365 B |