Add normal xfwm theme support
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
|
|
||||||
src/sass/_tweaks-temp.scss
|
src/sass/_tweaks-temp.scss
|
||||||
|
src/sass/_tweaks-temp.scss
|
||||||
|
|||||||
16
install.sh
@@ -9,6 +9,7 @@ ROOT_UID=0
|
|||||||
DEST_DIR=
|
DEST_DIR=
|
||||||
|
|
||||||
ctype=
|
ctype=
|
||||||
|
window=
|
||||||
|
|
||||||
# Destination directory
|
# Destination directory
|
||||||
if [ "$UID" -eq "$ROOT_UID" ]; then
|
if [ "$UID" -eq "$ROOT_UID" ]; then
|
||||||
@@ -51,10 +52,11 @@ OPTIONS:
|
|||||||
|
|
||||||
-s, --size VARIANT Specify size variant [standard|compact] (Default: standard variants)
|
-s, --size VARIANT Specify size variant [standard|compact] (Default: standard variants)
|
||||||
|
|
||||||
--tweaks Specify versions for tweaks [nord|black|rimless] (nord can not mix use with black !)
|
--tweaks Specify versions for tweaks [nord|black|rimless|normal] (only nord and black can not mix use with!)
|
||||||
1. nord: Nord color version
|
1. nord: Nord color version
|
||||||
2. black: Blackness color version
|
2. black: Blackness color version
|
||||||
3. rimless: Remove the 1px border about windows and menus
|
3. rimless: Remove the 1px border about windows and menus
|
||||||
|
4. normal: Normal windows button style (titlebuttons: max/min/close)
|
||||||
|
|
||||||
-h, --help Show help
|
-h, --help Show help
|
||||||
EOF
|
EOF
|
||||||
@@ -67,6 +69,7 @@ install() {
|
|||||||
local color="${4}"
|
local color="${4}"
|
||||||
local size="${5}"
|
local size="${5}"
|
||||||
local ctype="${6}"
|
local ctype="${6}"
|
||||||
|
local window="${7}"
|
||||||
|
|
||||||
[[ "${color}" == '-light' ]] && local ELSE_LIGHT="${color}"
|
[[ "${color}" == '-light' ]] && local ELSE_LIGHT="${color}"
|
||||||
[[ "${color}" == '-dark' ]] && local ELSE_DARK="${color}"
|
[[ "${color}" == '-dark' ]] && local ELSE_DARK="${color}"
|
||||||
@@ -172,15 +175,15 @@ install() {
|
|||||||
cd "${THEME_DIR}/metacity-1" && ln -s metacity-theme-2.xml metacity-theme-1.xml
|
cd "${THEME_DIR}/metacity-1" && ln -s metacity-theme-2.xml metacity-theme-1.xml
|
||||||
|
|
||||||
mkdir -p "${THEME_DIR}/xfwm4"
|
mkdir -p "${THEME_DIR}/xfwm4"
|
||||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${ctype}/"*.png "${THEME_DIR}/xfwm4"
|
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${ctype}${window}/"*.png "${THEME_DIR}/xfwm4"
|
||||||
cp -r "${SRC_DIR}/main/xfwm4/themerc${ELSE_LIGHT:-}" "${THEME_DIR}/xfwm4/themerc"
|
cp -r "${SRC_DIR}/main/xfwm4/themerc${ELSE_LIGHT:-}" "${THEME_DIR}/xfwm4/themerc"
|
||||||
mkdir -p "${THEME_DIR}-hdpi/xfwm4"
|
mkdir -p "${THEME_DIR}-hdpi/xfwm4"
|
||||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${ctype}-hdpi/"*.png "${THEME_DIR}-hdpi/xfwm4"
|
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${ctype}${window}-hdpi/"*.png "${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${ELSE_LIGHT:-}" "${THEME_DIR}-hdpi/xfwm4/themerc"
|
||||||
mkdir -p "${THEME_DIR}-xhdpi/xfwm4"
|
mkdir -p "${THEME_DIR}-xhdpi/xfwm4"
|
||||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${ctype}-xhdpi/"*.png "${THEME_DIR}-xhdpi/xfwm4"
|
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${ctype}${window}-xhdpi/"*.png "${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${ELSE_LIGHT:-}" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
||||||
|
|
||||||
mkdir -p "${THEME_DIR}/plank"
|
mkdir -p "${THEME_DIR}/plank"
|
||||||
if [[ "$color" == '-light' ]]; then
|
if [[ "$color" == '-light' ]]; then
|
||||||
cp -r "${SRC_DIR}/main/plank/theme-light/"* "${THEME_DIR}/plank"
|
cp -r "${SRC_DIR}/main/plank/theme-light/"* "${THEME_DIR}/plank"
|
||||||
@@ -336,6 +339,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
;;
|
;;
|
||||||
normal)
|
normal)
|
||||||
normal="true"
|
normal="true"
|
||||||
|
window="-normal"
|
||||||
echo -e "Install Normal window button version! ..."
|
echo -e "Install Normal window button version! ..."
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
@@ -488,7 +492,7 @@ install_theme() {
|
|||||||
for theme in "${themes[@]}"; do
|
for theme in "${themes[@]}"; do
|
||||||
for color in "${colors[@]}"; do
|
for color in "${colors[@]}"; do
|
||||||
for size in "${sizes[@]}"; do
|
for size in "${sizes[@]}"; do
|
||||||
install "${dest:-$DEST_DIR}" "${_name:-$THEME_NAME}" "$theme" "$color" "$size" "$ctype"
|
install "${dest:-$DEST_DIR}" "${_name:-$THEME_NAME}" "$theme" "$color" "$size" "$ctype" "$window"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|||||||
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/bottom-active.png
Normal file
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 141 B |
|
After Width: | Height: | Size: 188 B |
|
After Width: | Height: | Size: 188 B |
|
After Width: | Height: | Size: 190 B |
|
After Width: | Height: | Size: 187 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/close-active.png
Normal file
|
After Width: | Height: | Size: 523 B |
|
After Width: | Height: | Size: 352 B |
|
After Width: | Height: | Size: 555 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/close-pressed.png
Normal file
|
After Width: | Height: | Size: 601 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/hide-active.png
Normal file
|
After Width: | Height: | Size: 474 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/hide-inactive.png
Normal file
|
After Width: | Height: | Size: 319 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/hide-prelight.png
Normal file
|
After Width: | Height: | Size: 456 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/hide-pressed.png
Normal file
|
After Width: | Height: | Size: 503 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/left-active.png
Normal file
|
After Width: | Height: | Size: 145 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/left-inactive.png
Normal file
|
After Width: | Height: | Size: 145 B |
|
After Width: | Height: | Size: 529 B |
|
After Width: | Height: | Size: 369 B |
|
After Width: | Height: | Size: 572 B |
|
After Width: | Height: | Size: 624 B |
|
After Width: | Height: | Size: 624 B |
|
After Width: | Height: | Size: 423 B |
|
After Width: | Height: | Size: 693 B |
|
After Width: | Height: | Size: 740 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/menu-active.png
Normal file
|
After Width: | Height: | Size: 241 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/menu-inactive.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/menu-prelight.png
Normal file
|
After Width: | Height: | Size: 507 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/menu-pressed.png
Normal file
|
After Width: | Height: | Size: 578 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/right-active.png
Normal file
|
After Width: | Height: | Size: 144 B |
|
After Width: | Height: | Size: 144 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/shade-active.png
Normal file
|
After Width: | Height: | Size: 279 B |
|
After Width: | Height: | Size: 261 B |
|
After Width: | Height: | Size: 527 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/shade-pressed.png
Normal file
|
After Width: | Height: | Size: 590 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/stick-active.png
Normal file
|
After Width: | Height: | Size: 517 B |
|
After Width: | Height: | Size: 306 B |
|
After Width: | Height: | Size: 814 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-hdpi/stick-pressed.png
Normal file
|
After Width: | Height: | Size: 880 B |
|
After Width: | Height: | Size: 551 B |
|
After Width: | Height: | Size: 328 B |
|
After Width: | Height: | Size: 867 B |
|
After Width: | Height: | Size: 937 B |
|
After Width: | Height: | Size: 164 B |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 164 B |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 164 B |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 164 B |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 164 B |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 263 B |
|
After Width: | Height: | Size: 235 B |
|
After Width: | Height: | Size: 262 B |
|
After Width: | Height: | Size: 233 B |
|
After Width: | Height: | Size: 148 B |
|
After Width: | Height: | Size: 148 B |
|
After Width: | Height: | Size: 171 B |
|
After Width: | Height: | Size: 171 B |
|
After Width: | Height: | Size: 173 B |
|
After Width: | Height: | Size: 173 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/close-active.png
Normal file
|
After Width: | Height: | Size: 588 B |
|
After Width: | Height: | Size: 408 B |
|
After Width: | Height: | Size: 634 B |
|
After Width: | Height: | Size: 649 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/hide-active.png
Normal file
|
After Width: | Height: | Size: 544 B |
|
After Width: | Height: | Size: 419 B |
|
After Width: | Height: | Size: 504 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/hide-pressed.png
Normal file
|
After Width: | Height: | Size: 528 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/left-active.png
Normal file
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 566 B |
|
After Width: | Height: | Size: 409 B |
|
After Width: | Height: | Size: 609 B |
|
After Width: | Height: | Size: 631 B |
|
After Width: | Height: | Size: 664 B |
|
After Width: | Height: | Size: 475 B |
|
After Width: | Height: | Size: 724 B |
|
After Width: | Height: | Size: 747 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/menu-active.png
Normal file
|
After Width: | Height: | Size: 214 B |
|
After Width: | Height: | Size: 198 B |
|
After Width: | Height: | Size: 524 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/menu-pressed.png
Normal file
|
After Width: | Height: | Size: 567 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/right-active.png
Normal file
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/shade-active.png
Normal file
|
After Width: | Height: | Size: 314 B |
|
After Width: | Height: | Size: 293 B |
|
After Width: | Height: | Size: 609 B |
|
After Width: | Height: | Size: 647 B |
BIN
src/assets/xfwm4/assets-light-nord-normal-xhdpi/stick-active.png
Normal file
|
After Width: | Height: | Size: 564 B |
|
After Width: | Height: | Size: 376 B |
|
After Width: | Height: | Size: 916 B |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 605 B |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 965 B |
|
After Width: | Height: | Size: 1007 B |