Compare commits

...
55 Commits
Author SHA1 Message Date
Vince 41d079ddff Update #215 2021-05-05 21:51:40 +08:00
Vince bb051d7f2b update 2021-05-02 17:24:35 +08:00
Vince 52417e11c9 update 2021-05-02 15:00:52 +08:00
Vince 09df2a6662 update 2021-05-02 14:56:42 +08:00
Vince f3a84436e2 update 2021-05-02 13:45:09 +08:00
Vince ccb4e0f420 update 2021-05-02 09:23:21 +08:00
Vince 2346c83a8b update 2021-05-01 20:26:33 +08:00
Vince 0d633bfda7 update 2021-05-01 19:48:42 +08:00
Vince acce6cc91e update 2021-04-30 22:14:44 +08:00
Vince 74b2b063ca update 2021-04-29 21:38:33 +08:00
Vince ad2f28a1b6 Fixed issues 2021-04-29 21:12:20 +08:00
Vince ff93846b71 Fixed #206 2021-04-29 19:33:30 +08:00
Vince 651251d3bb update 2021-04-29 17:13:29 +08:00
Vince 3ada4e0aea update 2021-04-29 16:58:23 +08:00
Vince 999f68fb2e Fixed #207 2021-04-29 16:57:58 +08:00
Vince 69307c247a Update README.md 2021-04-29 11:50:55 +08:00
Vince df329a1888 update 2021-04-29 11:30:49 +08:00
Vince 41919a87a0 Merge branch 'master' of https://github.com/vinceliuice/WhiteSur-gtk-theme 2021-04-29 11:24:06 +08:00
Vince 3e5ecba187 update 2021-04-29 11:24:03 +08:00
Vince 54bc22341e update 2021-04-29 11:00:45 +08:00
Vince 1788cc0461 update 2021-04-29 10:58:54 +08:00
Vince ac95b28b11 update 2021-04-29 10:54:34 +08:00
Vince 06fa50c433 update 2021-04-29 10:48:16 +08:00
Vince 8ac4a07f53 update 2021-04-29 10:45:57 +08:00
Vince c006a57550 update 2021-04-29 10:23:40 +08:00
Vince f0e0a497aa Fixed #213 2021-04-29 10:02:04 +08:00
Vince ac977a7370 Fixed dash to dock issues 2021-04-28 23:28:20 +08:00
Vince cf307035e2 update 2021-04-28 22:12:32 +08:00
Vince fb1fcc3ff1 Update headerbar-urlbar.css 2021-04-28 19:20:21 +08:00
Vince 3343ef3d5c Fixed firefox issues 2021-04-28 18:47:09 +08:00
Vince e891e81636 Update _app-grid.scss 2021-04-27 15:51:30 +08:00
Vince 9245f8f90b update 2021-04-27 15:45:59 +08:00
Vince e26ac9378e Fixed #208 2021-04-27 15:04:43 +08:00
Vince f3acc70773 Merge branch 'master' of https://github.com/vinceliuice/WhiteSur-gtk-theme 2021-04-26 11:07:19 +08:00
Vince 1d8777c2a1 Merge pull request #204 from vidurb/vidurb-patch-documentation
Fix typo in README
2021-04-25 15:19:51 +08:00
Vidur B dbf4aab4be Fix typo in README
The command-line switch for using the theme for Snap apps is a lowercase s, not uppercase.
2021-04-25 12:36:49 +05:30
Vince 880be876f8 update 2021-04-24 23:14:31 +08:00
Vince acc1fcf027 Fixed gtk3 notification bannar shadow issue 2021-04-23 10:34:03 +08:00
Vince 0571efa376 Merge branch 'master' of https://github.com/vinceliuice/WhiteSur-gtk-theme 2021-04-21 22:39:50 +08:00
Vince bed696ca13 update 2021-04-21 22:37:22 +08:00
Vince e67c8022a8 Merge pull request #200 from rivanfebrian123/master
Use different approach for distro detection and do a code refactoring
2021-04-21 21:42:20 +08:00
Vince 298a1440b6 update 2021-04-21 21:10:45 +08:00
Vince b5227462de update 2021-04-21 21:06:23 +08:00
Muhammad Rivan 07d0e57dba Use different approach for distro detection and do a code refactoring 2021-04-21 19:56:32 +07:00
Vince cbae71ef97 update 2021-04-21 19:47:35 +08:00
Vince e3aeb5ec55 Fixed #195 2021-04-21 19:28:11 +08:00
Vince d750517e1b Merge branch 'master' of https://github.com/vinceliuice/WhiteSur-gtk-theme 2021-04-21 18:40:06 +08:00
Vince df3c3790be Fixed #198 2021-04-21 18:40:03 +08:00
Vince ffab45f5d7 Update _applications-3.0.scss 2021-04-21 17:24:19 +08:00
Vince 1338bf9cae Merge pull request #199 from rivanfebrian123/master
Update XFCE things
2021-04-21 17:13:10 +08:00
Vince 55989c9a21 update 2021-04-21 17:07:11 +08:00
Muhammad Rivan 22bd6b2e14 Update XFCE things 2021-04-21 15:39:47 +07:00
Vince a6f2aa6e90 Fixed #197 2021-04-21 13:53:53 +08:00
Vince d742d3e674 Fixed #189 2021-04-21 12:29:03 +08:00
Vince cf0c21612f update 2021-04-20 21:17:59 +08:00
51 changed files with 501 additions and 2547 deletions

No files matched your search

+10 -2
View File
@@ -29,6 +29,14 @@
Don't worry, WhiteSur installer already provides all of those dependencies. Don't worry, WhiteSur installer already provides all of those dependencies.
</details> </details>
<details> <summary> Recommended gnome-shell extensions </summary>
- [floating-dock](https://extensions.gnome.org/extension/3730/floating-dock) `Gnome-shell <= 3.38`
- [dash-to-dock](https://extensions.gnome.org/extension/307/dash-to-dock)
- [blur-my-shell](https://extensions.gnome.org/extension/3193/blur-my-shell)
</details>
## Quick install ## Quick install
### Use the stable package ### Use the stable package
@@ -184,9 +192,9 @@ Parameter: `--flatpak` `-F`
Example: `./tweaks.sh -F` Example: `./tweaks.sh -F`
### <p align="center"> <b> Connect WhiteSur theme to your Snap apps </b> </p> ### <p align="center"> <b> Connect WhiteSur theme to your Snap apps </b> </p>
Parameter: `--snap` `-S` Parameter: `--snap` `-s`
Example: `./tweaks.sh -S` Example: `./tweaks.sh -s`
Note: Note:
+19 -7
View File
@@ -33,8 +33,10 @@ usage() {
helpify "-p, --panel" "[$(IFS='|'; echo "${PANEL_OPACITY_VARIANTS[*]}")]" "Set panel transparency" "Default is 15%" helpify "-p, --panel" "[$(IFS='|'; echo "${PANEL_OPACITY_VARIANTS[*]}")]" "Set panel transparency" "Default is 15%"
helpify "-s, --size" "[$(IFS='|'; echo "${SIDEBAR_SIZE_VARIANTS[*]}")]" "Set Nautilus sidebar minimum width" "Default is 200px" helpify "-s, --size" "[$(IFS='|'; echo "${SIDEBAR_SIZE_VARIANTS[*]}")]" "Set Nautilus sidebar minimum width" "Default is 200px"
helpify "-i, --icon" "[$(IFS='|'; echo "${ICON_VARIANTS[*]}")]" "Set 'Activities' icon" "Default is 'standard'" helpify "-i, --icon" "[$(IFS='|'; echo "${ICON_VARIANTS[*]}")]" "Set 'Activities' icon" "Default is 'standard'"
helpify "-b, --background" "[default|blank|IMAGE_PATH]" "Set gnome-shell background image" "Default is BigSur-like wallpaper"
helpify "-N, --nautilus-style" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" "Set Nautilus style" "Default is BigSur-like style" helpify "-N, --nautilus-style" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" "Set Nautilus style" "Default is BigSur-like style"
helpify "-R, --round" "" "Set maximized window to rounded" "Default is square" helpify "-R, --round" "" "Set maximized window to rounded" "Default is square"
helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is bigsur"
helpify "--dialog, --interactive" "" "Run this installer interactively, with dialogs" "" helpify "--dialog, --interactive" "" "Run this installer interactively, with dialogs" ""
helpify "-r, --remove, -u, --uninstall" "" "Remove all installed ${THEME_NAME} themes" "" helpify "-r, --remove, -u, --uninstall" "" "Remove all installed ${THEME_NAME} themes" ""
helpify "-h, --help" "" "Show this help" "" helpify "-h, --help" "" "Show this help" ""
@@ -62,11 +64,15 @@ while [[ $# -gt 0 ]]; do
uninstall='true'; shift ;; uninstall='true'; shift ;;
--dialog|--interactive) --dialog|--interactive)
interactive='true'; shift ;; interactive='true'; shift ;;
--normal|--normalshowapps)
showapps_normal="true"; shift ;;
-R|--round) -R|--round)
max_round="true"; shift ;; max_round="true"; shift ;;
-h|--help) -h|--help)
need_help="true"; shift ;; need_help="true"; shift ;;
# Parameters that require value, single use # Parameters that require value, single use
-b|--background)
check_param "${1}" "${1}" "${2}" "must" "must" "must" "false" && shift 2 || shift ;;
-d|--dest) -d|--dest)
check_param "${1}" "${1}" "${2}" "must" "must" "not-at-all" && shift 2 || shift ;; check_param "${1}" "${1}" "${2}" "must" "must" "not-at-all" && shift 2 || shift ;;
-n|--name) -n|--name)
@@ -104,7 +110,7 @@ if [[ "${uninstall}" == 'true' ]]; then
remove_themes remove_themes
prompt -s "Done! All '${name}' themes has been removed." prompt -s "Done! All '${name}' themes has been removed."
else else
install_theme_deps install_theme_deps; echo
if [[ "${interactive}" == 'true' ]]; then if [[ "${interactive}" == 'true' ]]; then
show_panel_opacity_dialog; show_sidebar_size_dialog; show_nautilus_style_dialog show_panel_opacity_dialog; show_sidebar_size_dialog; show_nautilus_style_dialog
@@ -123,13 +129,19 @@ else
prompt -i "Alt variants : $( IFS=';'; echo "${alts[*]}" )" prompt -i "Alt variants : $( IFS=';'; echo "${alts[*]}" )"
prompt -i "Icon variant : ${icon}" prompt -i "Icon variant : ${icon}"
prompt -i "Nautilus variant : ${nautilus_style}" prompt -i "Nautilus variant : ${nautilus_style}"
echo; install_themes
# if [[ "$(which xfce4-session 2> /dev/null)" ]]; then echo; install_themes; echo; prompt -s "Done!"
# msg="XFCE: you may need to logout after changing your theme to fix your panel opacity."
# fi
echo; prompt -s "Done!"; echo; prompt -w "${msg}"; echo if is_my_distro "arch" && has_command xfce4-session; then
msg="XFCE: you may need to logout after changing your theme to fix your panel opacity."
notif_msg="${msg}\n\n${final_msg}"
[[ -x /usr/bin/notify-send ]] && notify-send "'${name}' theme has been installed. Enjoy!" "${msg}" -i "dialog-information-symbolic" echo; prompt -w "${msg}"
else
notif_msg="${final_msg}"
fi
echo; prompt -w "${final_msg}"; echo
[[ -x /usr/bin/notify-send ]] && notify-send "'${name}' theme has been installed. Enjoy!" "${notif_msg}" -i "dialog-information-symbolic"
fi fi
+11 -14
View File
@@ -29,16 +29,6 @@ else
GNOME_VERSION="none" GNOME_VERSION="none"
fi fi
if command -v nautilus &> /dev/null; then
if (( $(nautilus --version | cut -d ' ' -f 3 | cut -d . -f 1) >= 40 )); then
NAUTILUS_VERSION="new"
else
NAUTILUS_VERSION="old"
fi
else
NAUTILUS_VERSION="none"
fi
# Program options # Program options
SASSC_OPT="-M -t expanded" SASSC_OPT="-M -t expanded"
@@ -119,9 +109,12 @@ snap="false"
gdm="false" gdm="false"
dash_to_dock="false" dash_to_dock="false"
max_round="false" max_round="false"
showapps_normal="false"
# Misc # Misc
msg="Run '${0} --help' to explore more customization features!" msg=""
final_msg="Run '${0} --help' to explore more customization features!"
notif_msg=""
error_msg="" error_msg=""
process_ids=() process_ids=()
ANIM_PID="0" ANIM_PID="0"
@@ -201,6 +194,10 @@ has_command() {
command -v "$1" &> /dev/null command -v "$1" &> /dev/null
} }
is_my_distro() {
[[ "$(cat '/etc/os-release' | awk -F '=' '/ID/{print $2}')" =~ "${1}" ]]
}
############################################################################### ###############################################################################
# PARAMETERS # # PARAMETERS #
############################################################################### ###############################################################################
@@ -451,7 +448,7 @@ backup_file() {
} }
check_theme_file() { check_theme_file() {
[[ -f "${1}" || -f "${1}.bak" ]] && return 0 || return 1 [[ -f "${1}" || -f "${1}.bak" ]]
} }
remind_relative_path() { remind_relative_path() {
@@ -488,8 +485,8 @@ userify() {
} }
sig_c() { sig_c() {
kill -13 "${process_ids[@]}" &> /dev/null kill -13 ${process_ids[*]} &> /dev/null
stop_animation; wait "${process_ids[@]}"; operation_canceled stop_animation; wait ${process_ids[*]} &> /dev/null; operation_canceled
} }
operation_canceled() { operation_canceled() {
+42 -19
View File
@@ -23,8 +23,8 @@ source "${REPO_DIR}/lib-core.sh"
############################################################################### ###############################################################################
install_theme_deps() { install_theme_deps() {
if [[ ! "$(which glib-compile-resources 2> /dev/null)" || ! "$(which sassc 2> /dev/null)" || \ if ! has_command glib-compile-resources || ! has_command sassc || \
! -r "/usr/share/gtk-engines/murrine.xml" || ! "$(which xmllint 2> /dev/null)" ]]; then ! has_command xmllint || [[ ! -r "/usr/share/gtk-engines/murrine.xml" ]]; then
echo; prompt -w "'glib2.0', 'sassc', 'xmllint', 'libmurrine' are required for theme installation." echo; prompt -w "'glib2.0', 'sassc', 'xmllint', 'libmurrine' are required for theme installation."
if has_command zypper; then if has_command zypper; then
@@ -67,7 +67,7 @@ install_gdm_deps() {
} }
install_beggy_deps() { install_beggy_deps() {
if [[ ! "$(which convert 2> /dev/null)" ]]; then if ! has_command convert; then
echo; prompt -w "'imagemagick' are required for this option." echo; prompt -w "'imagemagick' are required for this option."
if has_command zypper; then if has_command zypper; then
@@ -79,7 +79,7 @@ install_beggy_deps() {
elif has_command yum; then elif has_command yum; then
rootify yum install -y sassc ImageMagick rootify yum install -y sassc ImageMagick
elif has_command pacman; then elif has_command pacman; then
rootify pacman -S --noconfirm --needed sassc imagemagic rootify pacman -S --noconfirm --needed sassc imagemagick
else else
prompt -w "INSTRUCTION: Please make sure you have installed all of the required dependencies!" prompt -w "INSTRUCTION: Please make sure you have installed all of the required dependencies!"
fi fi
@@ -87,7 +87,7 @@ install_beggy_deps() {
} }
install_dialog_deps() { install_dialog_deps() {
if [[ ! "$(which dialog 2> /dev/null)" ]]; then if ! has_command dialog; then
echo; prompt -w "'dialog' are required for this option." echo; prompt -w "'dialog' are required for this option."
if has_command zypper; then if has_command zypper; then
@@ -113,19 +113,37 @@ install_dialog_deps() {
install_beggy() { install_beggy() {
local CONVERT_OPT="" local CONVERT_OPT=""
[[ "${no_blur}" == "false" ]] && CONVERT_OPT+=" -scale 1280x -blur 0x60 " [[ "${no_blur}" == "false" ]] && CONVERT_OPT+=" -scale 1280x -blur 0x50 "
[[ "${darken}" == "true" ]] && CONVERT_OPT+=" -fill black -colorize 45% " [[ "${darken}" == "true" ]] && CONVERT_OPT+=" -fill black -colorize 45% "
case "${background}" in case "${background}" in
blank) blank)
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blank.png" "${WHITESUR_TMP_DIR}/beggy.png" ;; cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blank.png" "${WHITESUR_TMP_DIR}/beggy.png" ;;
default) default)
install_beggy_deps && convert "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-default.png" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" ;; if [[ "${no_blur}" == "false" || "${darken}" == "true" ]]; then
install_beggy_deps && convert "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-default.png" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png"
else
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blur.png" "${WHITESUR_TMP_DIR}/beggy.png"
fi
;;
*) *)
install_beggy_deps && convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" ;; install_beggy_deps && convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" ;;
esac esac
} }
install_beggy_blur() {
local CONVERT_OPT=" -scale 1280x -blur 0x35 -fill black -colorize 25% "
case "${background}" in
blank)
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blank.png" "${WHITESUR_TMP_DIR}/beggy-blur.png" ;;
default)
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blur.png" "${WHITESUR_TMP_DIR}/beggy-blur.png" ;;
*)
install_beggy_deps && convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy-blur.png" ;;
esac
}
install_darky() { install_darky() {
local opacity="$(destify ${1})" local opacity="$(destify ${1})"
local theme="$(destify ${2})" local theme="$(destify ${2})"
@@ -137,7 +155,7 @@ install_darky() {
install_xfwmy() { install_xfwmy() {
local color="$(destify ${1})" local color="$(destify ${1})"
local TARGET_DIR="${dest}/${name}${color}-mdpi" local TARGET_DIR="${dest}/${name}${color}"
local HDPI_TARGET_DIR="${dest}/${name}${color}-hdpi" local HDPI_TARGET_DIR="${dest}/${name}${color}-hdpi"
local XHDPI_TARGET_DIR="${dest}/${name}${color}-xhdpi" local XHDPI_TARGET_DIR="${dest}/${name}${color}-xhdpi"
@@ -192,7 +210,7 @@ install_shelly() {
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-default.png" "${TARGET_DIR}/assets/background.png" cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-default.png" "${TARGET_DIR}/assets/background.png"
fi fi
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blur.png" "${TARGET_DIR}/assets" cp -r "${WHITESUR_TMP_DIR}/beggy-blur.png" "${TARGET_DIR}/assets/background-blur.png"
( (
cd "${TARGET_DIR}" cd "${TARGET_DIR}"
@@ -317,9 +335,12 @@ install_theemy() {
remove_packy() { remove_packy() {
rm -rf "${dest}/${name}$(destify ${1})$(destify ${2})$(destify ${3})$(destify ${4})" rm -rf "${dest}/${name}$(destify ${1})$(destify ${2})$(destify ${3})$(destify ${4})"
rm -rf "${dest}/${name}$(destify ${1})-mdpi" rm -rf "${dest}/${name}$(destify ${1})"
rm -rf "${dest}/${name}$(destify ${1})-hdpi" rm -rf "${dest}/${name}$(destify ${1})-hdpi"
rm -rf "${dest}/${name}$(destify ${1})-xhdpi" rm -rf "${dest}/${name}$(destify ${1})-xhdpi"
# Backward compatibility
rm -rf "${dest}/${name}$(destify ${1})-mdpi"
} }
############################################################################### ###############################################################################
@@ -329,6 +350,7 @@ remove_packy() {
install_themes() { install_themes() {
start_animation start_animation
process_ids=() process_ids=()
install_beggy_blur
for opacity in "${opacities[@]}"; do for opacity in "${opacities[@]}"; do
for alt in "${alts[@]}"; do for alt in "${alts[@]}"; do
@@ -349,7 +371,7 @@ install_themes() {
done done
done done
wait "${process_ids[@]}" wait ${process_ids[*]} &> /dev/null
stop_animation stop_animation
} }
@@ -367,7 +389,7 @@ remove_themes() {
done done
done done
wait "${process_ids[@]}" wait ${process_ids[*]} &> /dev/null
} }
install_gdm_theme() { install_gdm_theme() {
@@ -378,6 +400,7 @@ install_gdm_theme() {
rm -rf "${WHITESUR_GS_DIR}"; install_beggy rm -rf "${WHITESUR_GS_DIR}"; install_beggy
if check_theme_file "${COMMON_CSS_FILE}"; then # CSS-based theme if check_theme_file "${COMMON_CSS_FILE}"; then # CSS-based theme
install_beggy_blur
install_shelly "${colors[0]}" "${opacities[0]}" "${alts[0]}" "${themes[0]}" "${icon}" "${WHITESUR_GS_DIR}" install_shelly "${colors[0]}" "${opacities[0]}" "${alts[0]}" "${themes[0]}" "${icon}" "${WHITESUR_GS_DIR}"
sed ${SED_OPT} "s|assets|${WHITESUR_GS_DIR}/assets|" "${WHITESUR_GS_DIR}/gnome-shell.css" sed ${SED_OPT} "s|assets|${WHITESUR_GS_DIR}/assets|" "${WHITESUR_GS_DIR}/gnome-shell.css"
@@ -394,6 +417,7 @@ install_gdm_theme() {
# Fix previously installed WhiteSur # Fix previously installed WhiteSur
restore_file "${ETC_CSS_FILE}" restore_file "${ETC_CSS_FILE}"
else # GR-based theme else # GR-based theme
install_beggy_blur
install_shelly "${colors[0]}" "${opacities[0]}" "${alts[0]}" "${themes[0]}" "${icon}" "${WHITESUR_TMP_DIR}/shelly" install_shelly "${colors[0]}" "${opacities[0]}" "${alts[0]}" "${themes[0]}" "${icon}" "${WHITESUR_TMP_DIR}/shelly"
sed ${SED_OPT} "s|assets|resource:///org/gnome/shell/theme/assets|" "${WHITESUR_TMP_DIR}/shelly/gnome-shell.css" sed ${SED_OPT} "s|assets|resource:///org/gnome/shell/theme/assets|" "${WHITESUR_TMP_DIR}/shelly/gnome-shell.css"
@@ -518,19 +542,18 @@ customize_theme() {
rm -rf "${THEME_SRC_DIR}/sass/_theme-options-temp.scss" rm -rf "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
cp -rf "${THEME_SRC_DIR}/sass/_theme-options"{".scss","-temp.scss"} cp -rf "${THEME_SRC_DIR}/sass/_theme-options"{".scss","-temp.scss"}
# Change common apps style for a specific GNOME Shell version
if [[ ${NAUTILUS_VERSION} == "new" ]]; then
sed ${SED_OPT} "/\$nautilus_version/s/old/new/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
elif [[ ${NAUTILUS_VERSION} == "none" ]]; then
prompt -w "There's no Nautilus installed, using style for the older gtk theme instead..."
fi
# Change gnome-shell panel transparency # Change gnome-shell panel transparency
if [[ "${panel_opacity}" != 'default' ]]; then if [[ "${panel_opacity}" != 'default' ]]; then
prompt -w "Changing panel transparency ..." prompt -w "Changing panel transparency ..."
sed ${SED_OPT} "/\$panel_opacity/s/0.15/0.${panel_opacity}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss" sed ${SED_OPT} "/\$panel_opacity/s/0.15/0.${panel_opacity}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi fi
# Change gnome-shell show apps button style
if [[ "${showapps_normal}" == 'true' ]]; then
prompt -w "Changing gnome-shell show apps button style ..."
sed ${SED_OPT} "/\$showapps_button/s/bigsur/normal/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi
# Change Nautilus sidarbar size # Change Nautilus sidarbar size
if [[ "${sidebar_size}" != 'default' ]]; then if [[ "${sidebar_size}" != 'default' ]]; then
prompt -w "Changing Nautilus sidebar size ..." prompt -w "Changing Nautilus sidebar size ..."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 126 B

+1 -1
View File
@@ -8,7 +8,7 @@ has_command() {
"$1" -v $1 > /dev/null 2>&1 "$1" -v $1 > /dev/null 2>&1
} }
if [ ! "$(which inkscape 2> /dev/null)" ]; then if ! has_command inkscape; then
echo inkscape and optipng needs to be installed to generate the assets. echo inkscape and optipng needs to be installed to generate the assets.
if has_command zypper; then if has_command zypper; then
sudo zypper in inkscape optipng sudo zypper in inkscape optipng
@@ -34,10 +34,6 @@
} }
} }
:root[privatebrowsingmode="temporary"] #nav-bar {
overflow: hidden;
}
#TabsToolbar .private-browsing-indicator { #TabsToolbar .private-browsing-indicator {
display: none !important; display: none !important;
} }
@@ -3,8 +3,8 @@
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
#urlbar { #urlbar {
--urlbar-height: 34.00px; --urlbar-height: 32.00px;
--urlbar-toolbar-height: 34.00px !important; --urlbar-toolbar-height: 32.00px !important;
} }
/* Center the URL bar */ /* Center the URL bar */
@@ -141,3 +141,15 @@ toolbarspring {
background-color: transparent !important; background-color: transparent !important;
fill-opacity: 1 !important; fill-opacity: 1 !important;
} }
.urlbar-icon {
width: 28px !important;
height: 28px !important;
padding: 6px !important;
}
#page-action-buttons {
padding: 2px 0 !important;
}
+2 -2
View File
@@ -8,7 +8,7 @@ menupopup {
-moz-appearance: none !important; -moz-appearance: none !important;
background: var(--gnome-menu-background) !important; background: var(--gnome-menu-background) !important;
border: 1px solid var(--gnome-menu-border-color) !important; border: 1px solid var(--gnome-menu-border-color) !important;
border-radius: 8px; border-radius: 8px !important;
padding: 4px 0 !important; padding: 4px 0 !important;
color: var(--gnome-toolbar-color) !important; color: var(--gnome-toolbar-color) !important;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
@@ -54,7 +54,7 @@ panelview {
background: var(--gnome-popover-background) !important; background: var(--gnome-popover-background) !important;
border: 1px solid !important; border: 1px solid !important;
border-color: var(--gnome-popover-border-color) !important; border-color: var(--gnome-popover-border-color) !important;
border-radius: 9px; border-radius: 9px !important;
/* box-shadow: var(--gnome-popover-shadow) !important; */ /* box-shadow: var(--gnome-popover-shadow) !important; */
padding: 12px !important; padding: 12px !important;
color: var(--gnome-toolbar-color) !important; color: var(--gnome-toolbar-color) !important;
+14 -10
View File
@@ -115,18 +115,14 @@ tab[selected]:-moz-window-inactive {
} }
/* Force tab favicon to the center */ /* Force tab favicon to the center */
.tab-throbber, .tab-throbber-fallback { .tab-throbber, .tab-throbber-fallback,
margin-left: auto; .tabbrowser-tab:not([busy]) .tab-icon-image,
} .tabbrowser-tab:not([class*="identity-color-"]) .tab-icon-stack {
.tabbrowser-tab:not([busy]) .tab-icon-image { margin-left: auto !important;
margin-left: auto;
} }
/* If tab favicon is not present, force tab label to the center */ /* If tab favicon is not present, force tab label to the center */
.tabbrowser-tab .tab-label-container { .tabbrowser-tab:not([image]):not([busy]):not([progress]):not([class*="identity-color-"]) .tab-label-container {
margin-left: 0 !important;
}
.tabbrowser-tab:not([image]):not([busy]):not([progress]) .tab-label-container {
margin-left: auto !important; margin-left: auto !important;
} }
@@ -134,7 +130,8 @@ tab[selected]:-moz-window-inactive {
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-throbber, #tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-throbber,
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-throbber-fallback, #tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-throbber-fallback,
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]):not([busy]) .tab-icon-image, #tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]):not([busy]) .tab-icon-image,
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]):not([image]) .tab-label-container { #tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]):not([image]) .tab-label-container,
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-icon-stackr {
margin-left: 0 !important; margin-left: 0 !important;
} }
@@ -147,6 +144,13 @@ tab[selected]:-moz-window-inactive {
:root { :root {
--gnome-fill-icon: red !important; --gnome-fill-icon: red !important;
} }
.close-icon {
height: 16px !important;
padding: 0 !important;
width: 16px !important;
}
.tab-close-button { .tab-close-button {
-moz-appearance: none !important; -moz-appearance: none !important;
border: none !important; border: none !important;
+1 -1
View File
@@ -98,7 +98,7 @@ $disabled_bg_color: if($variant == 'light', mix($bg_color, $base
// Headerbar colors // Headerbar colors
$header_bg: if($variant == 'light', #ffffff, #373737); $header_bg: if($variant == 'light', #ffffff, #373737);
$dark_header_bg: if($trans == 'true', transparentize($base_color, 0.04), $base_color); $dark_header_bg: if($trans == 'true', rgba($base_color, 0.95), $base_color);
$header_highlight: if($variant == 'dark', #434343, #f5f5f5); $header_highlight: if($variant == 'dark', #434343, #f5f5f5);
$header_bg_backdrop: if($variant == 'light', darken($header_bg, 0%), darken($header_bg, 0%)); $header_bg_backdrop: if($variant == 'light', darken($header_bg, 0%), darken($header_bg, 0%));
+3 -3
View File
@@ -2,9 +2,6 @@
// THEME OPTIONS // THEME OPTIONS
// //
// Nautilus version
$nautilus_version: 'old'; // < 3.38/old || 40.0/new
// Nautilus sidebar sizes (when nautilus_use_colors is false) // Nautilus sidebar sizes (when nautilus_use_colors is false)
$sidebar_size: 200px; $sidebar_size: 200px;
@@ -14,5 +11,8 @@ $nautilus_style: 'stable';
// Gnome-shell panel opacity // Gnome-shell panel opacity
$panel_opacity: 0.15; $panel_opacity: 0.15;
// Gnome-shell show apps button style
$showapps_button: 'bigsur';
// maximized window radius // maximized window radius
$max_window_style: 'square'; $max_window_style: 'square';
+45 -7
View File
@@ -1,16 +1,15 @@
/* App Icons */ /* App Icons */
$app_grid_fg_color: #fff;
.show-apps, .show-apps,
.app-well-app, .app-well-app,
%app-well-app { %app-well-app {
& .overview-icon { & .overview-icon {
color: $light_alt_fg_color; color: $light_alt_fg_color;
border-radius: $bd_radius * 1.5; border-radius: $wm_radius;
padding: 8px; padding: 8px;
border: none; border: none;
transition-duration: 100ms;
text-align: center; text-align: center;
} }
@@ -32,16 +31,20 @@ $app_grid_fg_color: #fff;
// App Folders // App Folders
.app-folder { .app-folder {
background: none; background: none;
border-radius: $bt_radius * 2;
.overview-icon { .overview-icon {
background-color: $light_divider_color; background-color: $light_divider_color;
// padding: 16px;
border-radius: $bt_radius * 2; border-radius: $bt_radius * 2;
} }
&:hover .overview-icon { &:hover .overview-icon {
background-color: rgba(white, 0.2); background-color: rgba(white, 0.2);
} }
&:active .overview-icon {
background-color: rgba(white, 0.3);
}
} }
// expanded folder // expanded folder
@@ -61,7 +64,7 @@ $app_grid_fg_color: #fff;
} }
& .folder-name-entry { & .folder-name-entry {
@extend %search-entry !optional; @extend %search-entry;
width: 300px; width: 300px;
} }
@@ -77,7 +80,7 @@ $app_grid_fg_color: #fff;
height: 36px; height: 36px;
border-radius: 18px; border-radius: 18px;
& > StIcon { icon-size: 16px } & > StIcon { icon-size: 16px; }
&:hover { background-color: $light_divider_color; } &:hover { background-color: $light_divider_color; }
&:checked, &:active { background-color: $light_track_color; } &:checked, &:active { background-color: $light_track_color; }
@@ -116,6 +119,41 @@ $app_grid_fg_color: #fff;
} }
} }
.page-indicator {
padding: $base_padding $base_padding * 2;
.page-indicator-icon {
width: 12px;
height: 12px;
border-radius: 12px;
margin: 0;
padding: 0;
background-image: none;
color: transparent;
border: none;
box-shadow: none;
background-color: $light_alt_disabled_fg_color;
}
&:hover .page-indicator-icon {
background-image: none;
background-color: $light_disabled_fg_color;
}
&:active .page-indicator-icon {
margin: 0;
padding: 0;
background-image: none;
color: transparent;
border: none;
box-shadow: none;
background-color: $light_alt_fg_color;
}
&:checked .page-indicator-icon {
background-image: none;
background-color: $light_alt_fg_color;
}
&:checked:active { background-image: none; }
}
// right-click app menu // right-click app menu
.app-menu, .app-menu,
.app-well-menu { .app-well-menu {
@@ -9,7 +9,6 @@ $popover_bubble_bg: if($variant == 'light', rgba(white, 0.95), rgba(lighten($bas
border: none; border: none;
box-shadow: none; box-shadow: none;
text-shadow: none; text-shadow: none;
transition: none;
&:hover, &:focus { &:hover, &:focus {
color: $fg_color; color: $fg_color;
+21 -15
View File
@@ -24,20 +24,26 @@ $dash_placeholder_size: 32px;
-x-offset: 8px; -x-offset: 8px;
} }
%show_apps_bigsur {
.show-apps-icon {
color: transparent;
background-image: url("assets/view-app-grid.svg");
background-size: contain;
}
.overview-icon { color: transparent; }
&:hover,
&:active,
&:checked,
&:focus {
.show-apps-icon { color: transparent; }
}
}
// Show apps button // Show apps button
.show-apps .show-apps-icon { .show-apps {
color: transparent; @if $showapps_button == "bigsur" {
background-image: url("assets/view-app-grid.svg"); @extend %show_apps_bigsur;
background-size: contain; }
}
.show-apps .overview-icon {
color: transparent;
}
.show-apps:hover .show-apps-icon,
.show-apps:active .show-apps-icon,
.show-apps:checked .show-apps-icon,
.show-apps:focus .show-apps-icon {
color: transparent;
} }
@@ -27,7 +27,6 @@
} }
.candidate-box { .candidate-box {
transition-duration: 0ms; // FIXME: needs more natural transitions
padding: 0.3em 0.5em 0.3em 0.5em; padding: 0.3em 0.5em 0.3em 0.5em;
margin-right: 2px; margin-right: 2px;
border-radius: $bt_radius; border-radius: $bt_radius;
@@ -1,7 +1,8 @@
/* Login Dialog */ /* Login Dialog */
#lockDialogGroup { #lockDialogGroup {
background: url("assets/background.png"); background-color: rgba($osd_bg_color, 1);
background-image: url("assets/background.png");
background-size: cover; background-size: cover;
} }
@@ -27,7 +27,9 @@
padding-left: 16px; padding-left: 16px;
padding-right: 16px; padding-right: 16px;
min-height: $medium_size; min-height: $medium_size;
padding: 0 16px * 2; padding: 0 32px;
transition-duration: 100ms;
&:hover { &:hover {
box-shadow: inset 0 -2px 0px $track_color; box-shadow: inset 0 -2px 0px $track_color;
color: $fg_color; color: $fg_color;
+3 -2
View File
@@ -6,12 +6,12 @@ $shell_panel_bg: if($trans == 'true', $panel_bg, rgba($panel_bg, 0.95));
#panel { #panel {
background-color: $shell_panel_bg; background-color: $shell_panel_bg;
transition-duration: 250ms;
font-weight: bold; font-weight: bold;
height: $menuitem_size; height: $menuitem_size;
box-shadow: 0 5px 16px rgba(black, 0.35); box-shadow: 0 5px 16px rgba(black, 0.35);
color: $panel_fg; color: $panel_fg;
font-feature-settings: "tnum"; font-feature-settings: "tnum";
transition-duration: 250ms;
// transparent panel on lock & login screens // transparent panel on lock & login screens
&:overview, &:overview,
@@ -50,6 +50,7 @@ $shell_panel_bg: if($trans == 'true', $panel_bg, rgba($panel_bg, 0.95));
-panel-corner-border-width: 2px; -panel-corner-border-width: 2px;
-panel-corner-border-color: transparent; -panel-corner-border-color: transparent;
-panel-corner-opacity: 1; -panel-corner-opacity: 1;
transition-duration: 250ms;
} }
// panel menus // panel menus
@@ -58,7 +59,7 @@ $shell_panel_bg: if($trans == 'true', $panel_bg, rgba($panel_bg, 0.95));
-minimum-hpadding: 8px; -minimum-hpadding: 8px;
font-weight: bold; font-weight: bold;
color: $panel_fg; color: $panel_fg;
// transition-duration: $longer_duration; transition-duration: 150ms;
border-radius: $bt_radius; border-radius: $bt_radius;
StLabel { padding: 0 2px; } StLabel { padding: 0 2px; }
@@ -9,7 +9,7 @@
&-button-action, &-button-action,
&-menu-button-container, &-menu-button-container,
&-button-box { &-button-box {
border: 1px solid transparent; border: 1px solid transparent !important;
} }
&-provider { &-provider {
@@ -21,7 +21,7 @@
&:focus { @include button(flat-focus); } &:focus { @include button(flat-focus); }
&:active { @include button(flat-active); } &:active { @include button(flat-active); }
&:insensitive { @include button(flat-disabled); } &:insensitive { @include button(flat-disabled); }
border: 1px solid transparent; border: 1px solid transparent !important;
} }
&-current { &-current {
@@ -35,51 +35,69 @@ $dash_radius: 18px;
text-align: center; text-align: center;
} }
&.straight-corner #dash .dash-background, &.straight-corner #dash,
&.shrink.straight-corner #dash .dash-background { &.shrink.straight-corner #dash {
border-radius: 0; border-radius: 0;
margin: 0; border-left: 0;
border-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-top: 0;
.dash-background {
border-radius: 0;
margin-bottom: 0;
}
} }
&.extended.top, &.extended.top,
&.extended.bottom { &.extended.bottom,
#dash {
border-left: 0;
border-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-top: 0;
}
.dash-background {
margin-bottom: 0;
}
}
&.extended.right, &.extended.right,
&.extended.left { &.extended.left {
#dash { #dash {
border-top: 0; margin-left: 0;
border-bottom: 0; margin-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-top: 0; margin-top: 0;
}
.dash-background {
margin-bottom: 0; margin-bottom: 0;
padding: 0 0;
.dash-background {
border-radius: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
}
} }
} }
&.dashtodock #dash { background: none; } &.left,
&.right {
#dash {
margin-top: 0;
padding: $dash_padding 0;
.dash-background { // default-mode
margin-bottom: 0;
}
}
.dash-item-container .app-well-app, .show-apps {
padding: $base_padding;
}
}
&.left #dash {
margin-left: $base_padding;
}
&.right #dash {
margin-right: $base_padding;
}
#dash { // default-mode #dash { // default-mode
background: none; background: none;
// .app-well-app-running-dot {
// background-color: rgba($dash_panel_fg, 0.85);
// }
//
StWidget.focused .app-well-app-running-dot { StWidget.focused .app-well-app-running-dot {
background-color: $primary_color; background-color: $primary_color;
} }
@@ -91,12 +109,6 @@ $dash_radius: 18px;
box-shadow: inset 0 0 0 1px rgba(white, 0.05); box-shadow: inset 0 0 0 1px rgba(white, 0.05);
} }
// .dash-separator {
// width: 1px !important;
// // margin: 0 0 !important;
// background-color: $light_divider_color;
// }
&:overview #dash { // overview-mode #1 &:overview #dash { // overview-mode #1
background: none; background: none;
@@ -133,10 +145,6 @@ $dash_radius: 18px;
#dash { #dash {
background: none; background: none;
} }
// .dash-background {
// background-color: $light_divider_color;
// }
} }
&.running-dots, &.running-dots,
@@ -154,14 +162,6 @@ $dash_radius: 18px;
} }
} }
.app-well-app,
.show-apps {
.overview-icon {
padding: 8px;
background-size: contain;
}
}
&.extended, &.extended,
&.extended:overview { &.extended:overview {
.app-well-app, .app-well-app,
@@ -40,42 +40,6 @@ $app_icon_padding: 24px;
& StButton#vhandle:active { background-color: transparent; } & StButton#vhandle:active { background-color: transparent; }
} }
.page-indicator {
padding: 15px 20px;
.page-indicator-icon {
width: 12px;
height: 12px;
border-radius: 12px;
margin: 0;
padding: 0;
background-image: none;
color: transparent;
border: none;
box-shadow: none;
background-color: $light_alt_disabled_fg_color;
}
&:hover .page-indicator-icon {
background-image: none;
background-color: $light_disabled_fg_color;
}
&:active .page-indicator-icon {
margin: 0;
padding: 0;
background-image: none;
color: transparent;
border: none;
box-shadow: none;
background-color: $light_alt_fg_color;
}
&:checked .page-indicator-icon {
background-image: none;
background-color: $light_alt_fg_color;
transition-duration: 0ms;
}
&:checked:active { background-image: none; }
}
//Some hacks I don't even //Some hacks I don't even
.all-apps, .all-apps,
.search-display > StBoxLayout, .search-display > StBoxLayout,
+1 -11
View File
@@ -221,15 +221,5 @@
#panel.lock-screen { background-color: $alt_dark_bg_color; } #panel.lock-screen { background-color: $alt_dark_bg_color; }
#screenShieldNotifications { #screenShieldNotifications {
StScrollBar { StScrollBar { @extend %overview_scrollbar; }
StBin#trough {
background-color: $light_divider_color;
}
StButton#vhandle, StButton#hhandle {
background-color: $light_hint_fg_color;
&:hover { background-color: $light_alt_fg_color; }
&:active { background-color: $light_alt_fg_color; }
}
}
} }
@@ -1,4 +1,16 @@
%overview_scrollbar {
StBin#trough {
background-color: $light_divider_color;
}
StButton#vhandle, StButton#hhandle {
background-color: $light_hint_fg_color;
&:hover { background-color: $light_alt_fg_color; }
&:active { background-color: $light_fg_color; }
}
}
#overview { #overview {
spacing: 24px; spacing: 24px;
StScrollBar { @extend %overview_scrollbar !optional; } StScrollBar { @extend %overview_scrollbar; }
} }
@@ -42,6 +42,7 @@ $_close_size: 42px;
box-shadow: none; box-shadow: none;
StIcon { icon-size: $_close_size; } // for safety StIcon { icon-size: $_close_size; } // for safety
background-image: url("assets/window-close.svg"); background-image: url("assets/window-close.svg");
transition-duration: 300ms;
&:hover { &:hover {
background-size: $_close_size; background-size: $_close_size;
@@ -14,19 +14,7 @@ $app_icon_size: 96px;
} }
.app-folder-dialog { .app-folder-dialog {
background-color: rgba(black, 0.9); background-color: rgba(#262626, 0.9);
}
// App Grid pagination indicators
.page-indicator {
padding: $base_padding $base_padding * 2 0;
.page-indicator-icon {
width: 10px;
height: 10px;
border-radius: 10px; // the same as height&width
background-color: white;
}
} }
.apps-scroll-view { .apps-scroll-view {
+1 -1
View File
@@ -3,7 +3,7 @@ $dash_placeholder_size: 32px;
$dash_padding: $base_padding + 4px; // 10px $dash_padding: $base_padding + 4px; // 10px
$dash_spacing: $base_padding / 4; $dash_spacing: $base_padding / 4;
$dash_bottom_margin: $base_margin * 4; $dash_bottom_margin: $base_margin * 4;
$dash_border_radius: $bt_radius * 2.5; $dash_border_radius: $wm_radius + $dash_padding;
#dash { #dash {
margin-top: $base_spacing * 2; margin-top: $base_spacing * 2;
Whitespace-only changes.
+123 -27
View File
@@ -78,8 +78,8 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
@if $nautilus_style == 'stable' { @if $nautilus_style == 'stable' {
$nautilus_sidebar_image: linear-gradient(90deg, $dark_sidebar_bg 0%, $nautilus_sidebar_image: linear-gradient(90deg, $dark_sidebar_bg 0%,
$dark_sidebar_bg $nautilus_sidebar_size, $dark_sidebar_bg $nautilus_sidebar_size,
transparent $nautilus_sidebar_size, rgba($dark_sidebar_bg, 0) $nautilus_sidebar_size,
transparent 100%); rgba($dark_sidebar_bg, 0) 100%);
$nautilus_bg_image: linear-gradient(90deg, $dark_sidebar_bg 0%, $nautilus_bg_image: linear-gradient(90deg, $dark_sidebar_bg 0%,
$dark_sidebar_bg $nautilus_sidebar_size, $dark_sidebar_bg $nautilus_sidebar_size,
@@ -104,29 +104,20 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
} }
@if $nautilus_style == 'default' or $nautilus_style == 'stable' { @if $nautilus_style == 'default' or $nautilus_style == 'stable' {
$nautilus_header_borders_image: linear-gradient(90deg, transparent $nautilus_sidebar_size, $nautilus_header_borders_image: linear-gradient(90deg, rgba($header_border, 0) $nautilus_sidebar_size,
$header_border $nautilus_sidebar_size); $header_border $nautilus_sidebar_size);
} }
@if $nautilus_style == 'stable' or $nautilus_style == 'default' { @if $nautilus_style == 'stable' or $nautilus_style == 'default' {
@if $nautilus_version == 'new' {
$nautilus_header_image: linear-gradient(90deg, transparent $nautilus_sidebar_size,
$nautilus_borders_color $nautilus_sidebar_size,
$nautilus_borders_color ($nautilus_sidebar_size + 1px),
$base_color ($nautilus_sidebar_size + 1px));
} @else {
$nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg $nautilus_sidebar_size, $nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg $nautilus_sidebar_size,
$nautilus_borders_color $nautilus_sidebar_size, $nautilus_borders_color $nautilus_sidebar_size,
$nautilus_borders_color ($nautilus_sidebar_size + 1px), $nautilus_borders_color ($nautilus_sidebar_size + 1px),
$base_color ($nautilus_sidebar_size + 1px)); $dark_header_bg ($nautilus_sidebar_size + 1px));
} } @else if $nautilus_style == 'glassy' {
}
@else if $nautilus_style == 'glassy' {
$nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg ($nautilus_sidebar_size/2), $nautilus_header_image: linear-gradient(90deg, $dark_sidebar_bg ($nautilus_sidebar_size/2),
$dark_header_bg 40%); $dark_header_bg 40%);
$nautilus_header_borders_image: linear-gradient(90deg, transparent (($nautilus_sidebar_size/2) - 40px), $nautilus_header_borders_image: linear-gradient(90deg, rgba($header_border, 0) (($nautilus_sidebar_size/2) - 40px),
$header_border 40%); $header_border 40%);
} }
@@ -139,8 +130,33 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
background-image: $nautilus_bg_image; background-image: $nautilus_bg_image;
border-radius: $background_radius_style; border-radius: $background_radius_style;
&.unified { // >= 40.0
border-radius: $wm_radius;
@if $nautilus_style == 'glassy' {
background-image: image(rgba($dark_sidebar_bg, 0));
}
> deck > box.vertical > headerbar.titlebar {
@if $nautilus_style == 'stable' or $nautilus_style == 'default' {
background-image: linear-gradient(90deg, rgba($dark_header_bg, 0) $nautilus_sidebar_size,
$nautilus_borders_color $nautilus_sidebar_size,
$nautilus_borders_color ($nautilus_sidebar_size + 1px),
$dark_header_bg ($nautilus_sidebar_size + 1px));
}
> .linked > button.disclosure-button { margin-left: $container_padding / 2; }
> box.horizontal:first-child { // move the search button to right side
margin-right: -74px;
entry.search { margin-left: $container_padding; }
}
}
}
> headerbar.titlebar, > headerbar.titlebar,
> deck > box > headerbar.titlebar { > deck > box.vertical > headerbar.titlebar {
background-color: transparent; background-color: transparent;
box-shadow: inset 0 1px rgba(white, 0.1); box-shadow: inset 0 1px rgba(white, 0.1);
background-image: $nautilus_header_image; background-image: $nautilus_header_image;
@@ -162,10 +178,13 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
placessidebar.sidebar { placessidebar.sidebar {
background-color: transparent; background-color: transparent;
min-width: $nautilus_sidebar_size;
border: none; border: none;
border-bottom-left-radius: $wm_radius; border-bottom-left-radius: $wm_radius;
@if $nautilus_style == 'stable' or $nautilus_style == 'default' {
min-width: $nautilus_sidebar_size;
}
@if $nautilus_style == 'stable' { @if $nautilus_style == 'stable' {
background-image: if($trans == 'true', none, $nautilus_sidebar_image); background-image: if($trans == 'true', none, $nautilus_sidebar_image);
} }
@@ -174,6 +193,10 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
&.frame { border-right: 1px solid $nautilus_borders_color; } &.frame { border-right: 1px solid $nautilus_borders_color; }
} }
@if $nautilus_style == 'glassy' {
background-image: $nautilus_sidebar_image;
}
list { margin-bottom: 6px; } list { margin-bottom: 6px; }
row.sidebar-row { row.sidebar-row {
@@ -353,7 +376,7 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
} }
&, > stack { &, > stack {
border-radius: 0 0 $nautilus_radius $nautilus_radius; border-radius: $background_radius_style;
} }
> stack { > stack {
@@ -395,10 +418,25 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
// Reset maximized nautilus-window border-radius // Reset maximized nautilus-window border-radius
&.maximized, &.tiled, &.fullscreen { &.maximized, &.tiled, &.fullscreen {
&.background.csd { border-radius: $maximized_radius_style; } &.background.csd {
notebook { &, > stack { border-radius: 0 0 $maximized_radius $maximized_radius; } } border-radius: $maximized_radius_style;
headerbar.titlebar { &, &.windowhandle { border-radius: $maximized_radius $maximized_radius 0 0; } }
placessidebar { border-bottom-left-radius: $maximized_radius; } &.unified { border-radius: $maximized_radius; }
&, &.unified {
notebook { &, > stack { border-radius: 0 0 $maximized_radius $maximized_radius; } }
> headerbar.titlebar,
> deck > box.vertical > headerbar.titlebar {
&, &.windowhandle {
border-top-left-radius: $maximized_radius;
border-top-right-radius: $maximized_radius;
}
}
placessidebar { border-bottom-left-radius: $maximized_radius; }
}
}
} }
> grid.horizontal > paned.horizontal > separator, > grid.horizontal > paned.horizontal > separator,
@@ -1956,6 +1994,8 @@ window.background.csd {
window.background.csd.unified { window.background.csd.unified {
border-top-left-radius: $wm_radius; border-top-left-radius: $wm_radius;
border-top-right-radius: $wm_radius; border-top-right-radius: $wm_radius;
border-bottom-left-radius: $wm_radius;
border-bottom-right-radius: $wm_radius;
> deck > deck > deck { > deck > deck > deck {
> box.vertical > headerbar.titlebar.windowhandle { > box.vertical > headerbar.titlebar.windowhandle {
@@ -1971,7 +2011,15 @@ window.background.csd.unified {
} }
&.maximized, &.tiled, &.fullscreen { &.maximized, &.tiled, &.fullscreen {
border-radius: 0 0 $maximized_radius $maximized_radius; border-top-left-radius: $maximized_radius;
border-top-right-radius: $maximized_radius;
border-bottom-left-radius: $maximized_radius;
border-bottom-right-radius: $maximized_radius;
> deck > box.vertical > headerbar.titlebar.windowhandle {
border-top-left-radius: $maximized_radius;
border-top-right-radius: $maximized_radius;
}
} }
} }
@@ -2375,6 +2423,32 @@ flowboxchild.bookmark-tag-widget {
} }
} }
//
// Seahorse
//
window.background.csd {
> leaflet.unfolded {
> scrolledwindow > viewport.frame {
> list { // left side
background-color: $dark_sidebar_bg;
border-bottom-left-radius: $wm_radius;
> row {
@extend %sidebar_row;
}
}
}
> box.vertical > stack {
background-color: $base_color;
border-bottom-right-radius: $wm_radius;
}
> box.vertical > searchbar { background-color: $base_color; }
}
}
// //
// documents-scrolledwi (Totem, Documents, EvView) // documents-scrolledwi (Totem, Documents, EvView)
// //
@@ -3037,7 +3111,6 @@ window#GearyMainWindow.background.csd {
border-radius: $bt_radius; border-radius: $bt_radius;
treeview.view { treeview.view {
border: none;
background-image: none; background-image: none;
&:hover { background-color: rgba($fg_color, 0.1); } &:hover { background-color: rgba($fg_color, 0.1); }
@@ -3152,7 +3225,6 @@ window#GearyMainWindow.background.csd {
background-color: $base_color; background-color: $base_color;
treeview.view { treeview.view {
border: none;
background-image: none; background-image: none;
&:hover { background-color: rgba($fg_color, 0.1); } &:hover { background-color: rgba($fg_color, 0.1); }
@@ -3659,11 +3731,13 @@ widget > box.terminal-titlebar {
list.tilix-session-sidebar { list.tilix-session-sidebar {
// use -image property instead // use -image property instead
background-image: image($dark_sidebar_bg); background-image: image($dark_sidebar_bg);
border-bottom-left-radius: $wm_radius;
button.tilix-sidebar-close-button { button.tilix-sidebar-close-button {
min-height: 20px; min-height: 28px;
min-width: 20px; min-width: 28px;
padding: 0; padding: 0;
margin: 0;
border-radius: 100px; border-radius: 100px;
// -gtk-outline-radius: 100px; // -gtk-outline-radius: 100px;
background-color: $destructive_color; background-color: $destructive_color;
@@ -3676,6 +3750,8 @@ list.tilix-session-sidebar {
} }
} }
$tilix_bg: if($variant == 'light', #ffffff, #151515);
window.background.csd { window.background.csd {
> box.horizontal > stack { > box.horizontal > stack {
> box.vertical > notebook > stack { > box.vertical > notebook > stack {
@@ -3683,6 +3759,26 @@ window.background.csd {
} }
} }
> overlay > notebook > stack > .tilix-background {
background-color: $tilix_bg;
border-radius: 0 0 $wm_radius $wm_radius;
> .tilix-background {
background-color: $tilix_bg;
border-radius: 0 0 $wm_radius $wm_radius;
.tilix-terminal-scrolledwindow {
padding-bottom: $wm_radius;
background-color: $tilix_bg;
border-radius: 0 0 $wm_radius $wm_radius;
> vte-terminal {
border-radius: 0 0 $wm_radius $wm_radius;
}
}
}
}
&.maximized, &.tiled, &.fullscreen { &.maximized, &.tiled, &.fullscreen {
> box.horizontal > stack { > box.horizontal > stack {
> box.vertical > notebook > stack { > box.vertical > notebook > stack {
File diff suppressed because it is too large. Load diff
+34 -125
View File
@@ -1,13 +1,8 @@
// based css:
// https://github.com/budgie-desktop/budgie-desktop/tree/master/src/theme
/****************** /******************
* Budgie Desktop * * Budgie Desktop *
******************/ ******************/
// Container for both the "panel" area and the shadow. Wise to keep
// this transparent..
// Raven
$raven_base_color: if($variant =='light', #f5f5f5, #1b1b1b); $raven_base_color: if($variant =='light', #f5f5f5, #1b1b1b);
$raven_bg_color: if($variant =='light', #dedede, #1f1f1f); $raven_bg_color: if($variant =='light', #dedede, #1f1f1f);
$raven_fg_color: $text_color; $raven_fg_color: $text_color;
@@ -84,7 +79,6 @@ $raven_padding: 8px;
button { button {
border-radius: $bt_radius; border-radius: $bt_radius;
// -gtk-outline-radius: $bt_radius;
@extend %budgie_button; @extend %budgie_button;
} }
@@ -140,9 +134,11 @@ $raven_padding: 8px;
&:disabled { color: $disabled_fg_color; } &:disabled { color: $disabled_fg_color; }
} }
treeview.view.sidebar, scrolledwindow.sidebar.categories { //AppMenu (budgie)
scrolledwindow.sidebar:not(.categories) { //AppMenu (Elementary) border-bottom-left-radius: $wm_radius;
// min-height: 36px; }
treeview.view.sidebar {
background: none; background: none;
border-right: none; border-right: none;
color: $fg_color; color: $fg_color;
@@ -150,6 +146,18 @@ $raven_padding: 8px;
label { padding: 3px 8px; } label { padding: 3px 8px; }
&:hover { background-color: rgba($fg_color, 0.05); } &:hover { background-color: rgba($fg_color, 0.05); }
}
scrolledwindow.sidebar:not(.categories) { //AppMenu (Elementary)
background: none;
border-right: none;
color: $fg_color;
label { padding: 3px 8px; }
&:hover { background-color: rgba($fg_color, 0.05); }
&:active { background-color: rgba($fg_color, 0.1); }
&:selected, &:selected:hover { &:selected, &:selected:hover {
color: $selected_fg_color; color: $selected_fg_color;
@@ -163,6 +171,13 @@ $raven_padding: 8px;
} }
} }
&.bottom > frame.container > grid.horizontal > grid.horizontal {
> widget > grid.horizontal > stack {
border-top: none;
border-bottom: 1px solid $borders_color;
}
}
&.budgie-menu { &.budgie-menu {
.container { padding: 0; } .container { padding: 0; }
} }
@@ -174,6 +189,8 @@ $raven_padding: 8px;
&.sound-popover { &.sound-popover {
separator { margin: 3px 0; } separator { margin: 3px 0; }
buttonbox.linked > button { border-radius: $bt_radius; }
} }
&.caffeine-popover { &.caffeine-popover {
@@ -184,6 +201,10 @@ $raven_padding: 8px;
.container { padding: 6px; } .container { padding: 6px; }
} }
&.icon-popover {
.container { padding: 6px; }
}
&.places-menu { &.places-menu {
.container { padding: 6px; } .container { padding: 6px; }
@@ -288,14 +309,12 @@ window.budgie-popover:not(.csd) {
entry.search { background-color: transparent; } entry.search { background-color: transparent; }
entry.search { entry.search {
// margin: 6px 6px 0 6px;
padding: 5px 10px; padding: 5px 10px;
border: none; border: none;
border-bottom: 1px solid $borders_color; border-bottom: 1px solid $borders_color;
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
font-size: 110%; font-size: 110%;
// &:focus { @include entry(focus); }
} }
.categories { .categories {
@@ -333,7 +352,6 @@ window.budgie-popover:not(.csd) {
// Menu Button // Menu Button
button.budgie-menu-launcher { button.budgie-menu-launcher {
// padding: 0 2px;
@extend %flat_button; @extend %flat_button;
} }
@@ -360,11 +378,6 @@ button.raven-trigger {
popover.background.places-menu { popover.background.places-menu {
padding: 8px; padding: 8px;
// FIXME: untested
// .message-bar {
// margin-bottom: 4px;
// }
.name-button.text-button { .name-button.text-button {
// padding: 4px 8px; // padding: 4px 8px;
padding-left: 8px; padding-left: 8px;
@@ -376,11 +389,6 @@ popover.background.places-menu {
} }
} }
// FIXME: untested
// .unmount-button {
// padding: ($medium_size - 24px) / 2;
// }
.places-section-header > image { .places-section-header > image {
&:dir(ltr) { margin: 0 8px - 10px 0 8px - 3px; } &:dir(ltr) { margin: 0 8px - 10px 0 8px - 3px; }
&:dir(rtl) { margin: 0 8px - 3px 0 8px - 10px; } &:dir(rtl) { margin: 0 8px - 3px 0 8px - 10px; }
@@ -406,7 +414,6 @@ popover.background.places-menu {
background-color: $panel_bg; background-color: $panel_bg;
color: $panel_fg; color: $panel_fg;
font-weight: 500; font-weight: 500;
// box-shadow: $panel_shadow;
border-width: 0; border-width: 0;
&.transparent { &.transparent {
@@ -486,9 +493,6 @@ popover.background.places-menu {
background-image: none; background-image: none;
font-weight: normal; font-weight: normal;
// > window.background.popup > decoration,
// > window.background.popup > menu { border-radius: 0 0 $wm_radius $wm_radius; }
&:hover { background-color: $selected_bg_color; } &:hover { background-color: $selected_bg_color; }
&:disabled { color: transparentize($panel_fg, 0.6); } &:disabled { color: transparentize($panel_fg, 0.6); }
@@ -507,18 +511,12 @@ popover.background.places-menu {
// used to indicate unread notifications // used to indicate unread notifications
.alert { color: $destructive_color; } .alert { color: $destructive_color; }
// End Section needs to be fancy
// .end-region {
// background-color: rgba(0,0,0,0.2);
// }
&.vertical #tasklist-button { min-height: 32px; } &.vertical #tasklist-button { min-height: 32px; }
// Icon Tasklist // Icon Tasklist
button.flat.launcher { button.flat.launcher {
padding: 0; padding: 0;
@extend %flat_button; @extend %flat_button;
@extend %underscores;
// for indicator colors // for indicator colors
&:not(:checked) { &:not(:checked) {
@@ -649,24 +647,12 @@ frame.raven-frame > border {
$pos_list: ((top, bottom), (bottom, top), (left, right), (right, left)); $pos_list: ((top, bottom), (bottom, top), (left, right), (right, left));
@each $pos, $b_pos in $pos_list { @each $pos, $b_pos in $pos_list {
// Panel borders
// .#{$pos} .budgie-panel {
// border-#{$b_pos}: 1px solid $panel_border_color;
// }
// Raven borders
// .#{$pos} frame.raven-frame > border {
// margin-#{$b_pos}: 16px;
// }
// Shadows // Shadows
.#{$pos} .shadow-block { .#{$pos} .shadow-block {
background-image: linear-gradient(to $b_pos, rgba(black, 0.05) 0%, rgba(black, 0.03) 15%, rgba(black, 0.02) 60%, transparent); background-image: linear-gradient(to $b_pos, rgba(black, 0.05) 0%, rgba(black, 0.03) 15%, rgba(black, 0.02) 60%, transparent);
} }
} }
// .bottom .shadow-block { background-image: none; }
$raven_opacity: if($variant =='light', 0.85, 0.95); $raven_opacity: if($variant =='light', 0.85, 0.95);
$raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px 0 rgba(black, 0.1); $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px 0 rgba(black, 0.1);
@@ -676,14 +662,6 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
color: $raven_fg_color; color: $raven_fg_color;
box-shadow: $shadow_4; box-shadow: $shadow_4;
// for >=10.4
> box { margin-bottom: -10px; }
// for <10.4
> stack { margin-bottom: -10px; }
// > stack > box:last-child > stack { margin-top: -6px; }
button { button {
@extend %raven_button; @extend %raven_button;
&.image-button { @extend %circular_button; } &.image-button { @extend %circular_button; }
@@ -708,7 +686,6 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
&.image-button { &.image-button {
border-radius: 100px; border-radius: 100px;
// -gtk-outline-radius: 100px;
} }
} }
} }
@@ -744,29 +721,12 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
} }
} }
} }
// for <10.4
button.image-button {
&:dir(ltr) { margin-right: 2px; }
&:dir(rtl) { margin-left: 2px; }
}
// for <10.4
> image { margin: 0 8px; }
// for <10.4
> label {
margin: 0 -8px;
font-weight: bold;
}
} }
&.bottom { border-top: 1px solid $borders_color; } &.bottom { border-top: 1px solid $borders_color; }
} }
scrolledwindow > .frame { // stacking raised-grid scrolledwindow > .frame { // stacking raised-grid
// reserve L/R shadow region
// FIXME: Do not set any L/R margins and borders
padding: 0 $raven_padding; padding: 0 $raven_padding;
transition-duration: 0s; transition-duration: 0s;
border: none; border: none;
@@ -792,20 +752,11 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
} }
> box.vertical > box.vertical:last-child { > box.vertical > box.vertical:last-child {
// FIXME: we can't crop album-art images horizontally with any borders,
// paddings, and margins. And parent GtkBox does not sync to the size
// of album-art dynamically while transitioning images. so set specific
// depth-0 OSD materials for MPRIS.
border-radius: $raven_radius; border-radius: $raven_radius;
border: none; border: none;
background-color: if($variant =='light', rgba(black, 0.65), rgba(black, 0.35)); background-color: if($variant =='light', rgba(black, 0.65), rgba(black, 0.35));
color: rgba(white, 0.65); color: rgba(white, 0.65);
// .raven-header {
// background-color: rgba(black, 0.65);
// color: rgba(white, 0.75);
// }
.raven-background { .raven-background {
background-color: rgba(black, 0.25); background-color: rgba(black, 0.25);
margin-bottom: 0; // unset parent margin margin-bottom: 0; // unset parent margin
@@ -873,7 +824,6 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
.expander-button { .expander-button {
border-radius: 100px; border-radius: 100px;
// -gtk-outline-radius: 100px;
} }
.raven-background { .raven-background {
@@ -886,36 +836,11 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
} }
} }
// switch { }
list { color: $raven_fg_color; background-color: $raven_base_color; } list { color: $raven_fg_color; background-color: $raven_base_color; }
// for <10.4
&.frame { border-style: solid none; border-width: 1px; border-color: $borders_color; }
> overlay > widget > image { color: rgba($raven_fg_color, 0.12); }
// for <10.4
grid > label:first-child { min-height: 26px; } // workaround to fix vertical-align
// for <10.4
spinbutton:not(.vertical) { @extend %flat_entry; }
// for <10.4
// button.combo { }
} }
scrolledwindow.raven-background { border-bottom-style: none; } scrolledwindow.raven-background { border-bottom-style: none; }
// for <10.4
.raven-header.top + .raven-background {
border-style: none;
background-color: $selected_bg_color;
color: $selected_fg_color;
stackswitcher button { margin: -4px 0; }
}
.powerstrip button.image-button { .powerstrip button.image-button {
min-height: 28px; min-height: 28px;
min-width: 28px; min-width: 28px;
@@ -974,15 +899,11 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
min-width: 24px; min-width: 24px;
image { padding: 0; } image { padding: 0; }
} }
// box.horizontal > label:first-child { font-weight: 500; } // title labels
} }
} }
&:selected { &:selected {
background-color: rgba($selected_bg_color, 0.75); background-color: rgba($selected_bg_color, 0.75);
// &:dir(ltr) { box-shadow: inset 2px 0 $selected_bg_color; }
// &:dir(rtl) { box-shadow: inset -2px 0 $selected_bg_color; }
> grid > *, > grid > *,
> box.vertical * { color: $selected_fg_color; } > box.vertical * { color: $selected_fg_color; }
@@ -1013,12 +934,6 @@ $raven_shadow: 0 0 3px 0 rgba(black, 0.2), 0 0 8px 0 rgba(black, 0.15), 0 0 16px
} }
.audio-widget { .audio-widget {
// scale.marks-after {
// label { }
// }
// button.flat.expander-button { }
list.devices-list.sound-devices { list.devices-list.sound-devices {
> row.activatable { > row.activatable {
&:selected, &:checked { &:selected, &:checked {
@@ -1064,14 +979,12 @@ window.sound-popover.background {
// Calendar // Calendar
calendar.raven-calendar { calendar.raven-calendar {
margin: 2px 0;
padding: 4px;
border-style: none; border-style: none;
background-color: transparent; background-color: transparent;
color: $raven_fg_color; color: $raven_fg_color;
&:selected { &:selected {
border-radius: 3px; border-radius: $bt_radius;
background-color: $selected_bg_color; background-color: $selected_bg_color;
color: $selected_fg_color; color: $selected_fg_color;
} }
@@ -1141,8 +1054,6 @@ window.budgie-switcher-window {
flowboxchild { // icon-tiles flowboxchild { // icon-tiles
margin: 2px; margin: 2px;
border-radius: $wm_radius; border-radius: $wm_radius;
// -gtk-outline-radius: $wm_radius;
// background-color: transparent;
background-image: none; background-image: none;
} }
} }
@@ -1150,8 +1061,6 @@ window.budgie-switcher-window {
// Internal part of the Switcher // Internal part of the Switcher
.budgie-switcher { .budgie-switcher {
@extend %budgie-notification; @extend %budgie-notification;
// background-color: transparent;
// background-image: none;
} }
%drop-shadow, .drop-shadow { %drop-shadow, .drop-shadow {
@@ -1175,7 +1084,9 @@ window.budgie-switcher-window {
background-color: $bg_color; background-color: $bg_color;
@if $variant == 'dark' { border: 1px solid lighten($menu_bg, 10%); } @if $variant == 'dark' { border: 1px solid lighten($menu_bg, 10%); }
&, &.background, decoration { border-radius: $wm_radius; } &.background.csd {
border-radius: $wm_radius $wm_radius $wm_radius $wm_radius;
}
} }
// Session Dialog // Session Dialog
@@ -1212,8 +1123,6 @@ window.budgie-switcher-window {
// PolKit Dialog // PolKit Dialog
.budgie-polkit-dialog { .budgie-polkit-dialog {
@extend %budgie_dialog;
.message { color: gtkalpha(currentColor, 0.6); } .message { color: gtkalpha(currentColor, 0.6); }
.failure { color: $destructive_color; } .failure { color: $destructive_color; }
} }
+11 -7
View File
@@ -2,25 +2,29 @@
// Sass thinks we're using the colors in the variables as strings and may shoot // Sass thinks we're using the colors in the variables as strings and may shoot
// warning, it's innocuous and can be defeated by using "" + $var // warning, it's innocuous and can be defeated by using "" + $var
$theme_text: currentColor;
@define-color theme_fg_color #{"" + $fg_color}; @define-color theme_fg_color #{"" + $fg_color};
@define-color theme_text_color #{"" + $text_color}; @define-color theme_text_color #{"" + $theme_text};
@define-color theme_bg_color #{"" + $bg_color}; @define-color theme_bg_color #{"" + $bg_color};
@define-color theme_base_color #{"" + $base_color}; @define-color theme_base_color #{"" + $base_color};
@define-color theme_selected_bg_color #{"" + $selected_bg_color}; @define-color theme_selected_bg_color #{"" + $selected_bg_color};
@define-color theme_selected_fg_color #{"" + $selected_fg_color}; @define-color theme_selected_fg_color #{"" + $selected_fg_color};
@define-color fg_color #{"" + $fg_color}; @define-color fg_color #{"" + $fg_color};
@define-color text_color #{"" + $text_color}; @define-color text_color #{"" + $theme_text};
@define-color bg_color #{"" + $bg_color}; @define-color bg_color #{"" + $bg_color};
@define-color base_color #{"" + $base_color}; @define-color base_color #{"" + $base_color};
@define-color selected_bg_color #{"" + $selected_bg_color}; @define-color selected_bg_color #{"" + $selected_bg_color};
@define-color selected_fg_color #{"" + $selected_fg_color}; @define-color selected_fg_color #{"" + $selected_fg_color};
@define-color insensitive_bg_color #{"" + $disabled_fg_color}; @define-color insensitive_bg_color #{"" + mix($bg_color, $base_color, 60%)};
@define-color insensitive_fg_color alpha(#{"" + $disabled_fg_color}, 0.5); @define-color insensitive_fg_color #{"" + $disabled_fg_color};
@define-color insensitive_base_color #{"" + $base_color}; @define-color insensitive_base_color #{"" + $base_color};
@define-color theme_unfocused_fg_color #{"" + $fg_color}; @define-color theme_unfocused_fg_color #{"" + $fg_color};
@define-color theme_unfocused_text_color #{"" + $text_color}; @define-color theme_unfocused_text_color #{"" + $theme_text};
@define-color theme_unfocused_bg_color #{"" + $bg_color}; @define-color theme_unfocused_bg_color #{"" + $bg_color};
@define-color theme_unfocused_base_color #{"" + $base_color}; @define-color theme_unfocused_base_color #{"" + $base_color};
@define-color unfocused_insensitive_color #{"" + mix($fg_color, $bg_color, 35%)};
@define-color borders #{"" + $borders_color}; @define-color borders #{"" + $borders_color};
@define-color unfocused_borders #{"" + $borders_color}; @define-color unfocused_borders #{"" + $borders_color};
@@ -76,11 +80,11 @@ $wm_bg_unfocused: opacify($header_bg_backdrop, 1);
// //
// unfocused window 'dot(s)' // unfocused window 'dot(s)'
@define-color budgie_tasklist_indicator_color #{"" + $selected_bg_color}; @define-color budgie_tasklist_indicator_color #{"" + $selected_fg_color};
// focused window 'line' // focused window 'line'
@define-color budgie_tasklist_indicator_color_active #{"" + $selected_bg_color}; @define-color budgie_tasklist_indicator_color_active #{"" + $selected_bg_color};
// group-ed and unfocused window 'line(s)' // group-ed and unfocused window 'line(s)'
@define-color budgie_tasklist_indicator_color_active_window #{"" + mix($selected_bg_color, $panel_bg, 54%)}; @define-color budgie_tasklist_indicator_color_active_window #{"" + mix($selected_fg_color, $panel_bg, 100%)};
// attention 'dot' // attention 'dot'
// FIXME: we can't fill whole widget backgrounds with our suggestion colour // FIXME: we can't fill whole widget backgrounds with our suggestion colour
// because of lacking specific style-class on 'needs_attention' state, // because of lacking specific style-class on 'needs_attention' state,
+56 -22
View File
@@ -96,14 +96,12 @@ $background_radius_style: 0 0 $wm_radius $wm_radius;
$maximized_radius_style: 0 0 $maximized_radius $maximized_radius; $maximized_radius_style: 0 0 $maximized_radius $maximized_radius;
.background { .background {
// border-radius: 0 0 $wm_radius $wm_radius;
color: $fg_color; color: $fg_color;
background-color: rgba($bg_color, 1); background-color: rgba($bg_color, 1);
// > box > stack { background-color: $bg_color; }
&.csd { &.csd {
border-radius: $background_radius_style; // Set csd windows botttom border radius border-radius: $background_radius_style; // Set csd windows botttom border radius
background-color: rgba($bg_color, 0.999);
&.maximized, &.tiled, &.fullscreen { &.maximized, &.tiled, &.fullscreen {
border-radius: $maximized_radius_style; // Set csd windows botttom border radius border-radius: $maximized_radius_style; // Set csd windows botttom border radius
@@ -638,7 +636,7 @@ button {
} }
&.text-button { &.text-button {
min-height: 20px; min-height: 24px;
padding-left: 12px; padding-left: 12px;
padding-right: 12px; padding-right: 12px;
} }
@@ -1138,6 +1136,8 @@ spinbutton {
@extend %linked_vertical; @extend %linked_vertical;
} }
entry:not(:focus):not(:drop(active)) { border-color: $dark_borders_color; }
button.up { border-radius: $bt_radius $bt_radius 0 0; } button.up { border-radius: $bt_radius $bt_radius 0 0; }
> entry:focus + button { border-top-color: $entry_highlight; } > entry:focus + button { border-top-color: $entry_highlight; }
@@ -1304,20 +1304,6 @@ combobox {
&.left { border-width: 0 1px 0 0; } &.left { border-width: 0 1px 0 0; }
&.right { border-width: 0 0 0 1px; } &.right { border-width: 0 0 0 1px; }
} }
// &:not(.inline-toolbar) {
// switch,
// scale,
// entry,
// spinbutton,
// button {
// margin-right: 1px;
// margin-bottom: 1px;
// }
//
// .linked > button,
// .linked > entry { margin-right:0; }
// }
} }
.primary-toolbar:not(.libreoffice-toolbar) { // LO messes up the toolbar styling, so exclude LO toolbars .primary-toolbar:not(.libreoffice-toolbar) { // LO messes up the toolbar styling, so exclude LO toolbars
@@ -1511,6 +1497,7 @@ headerbar {
border-radius: 0; border-radius: 0;
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
min-height: 0;
} }
> button.popup { > button.popup {
@@ -3183,7 +3170,47 @@ frame > border.flat,
scrolledwindow { scrolledwindow {
viewport.frame { // avoid double borders when viewport inside scrolled window viewport.frame { // avoid double borders when viewport inside scrolled window
border-style: none; border: none;
.frame {
border: none;
> textview {
border-radius: $bt_radius;
background: none;
> text {
border-radius: $bt_radius;
border: 1px solid $borders_color;
}
}
}
> box.vertical list.content.view {
border-top-left-radius: $wm_radius;
border-top-right-radius: $wm_radius;
}
> box.vertical list.frame {
@extend %circular_list;
padding: 0;
> row.activatable { @extend %circular_row; }
list {
border: none;
box-shadow: none;
border-radius: 0;
margin: 0;
background: none;
> row.activatable {
&, &:first-child, &:last-child {
border-radius: 0;
}
}
}
}
} }
// This is used by GtkScrolledWindow, when content is touch-dragged past boundaries. // This is used by GtkScrolledWindow, when content is touch-dragged past boundaries.
@@ -3232,9 +3259,16 @@ separator {
list { list {
background-color: $base_color; background-color: $base_color;
border-color: $borders_color; border-color: $borders_color;
// border-radius: $wm_radius;
row { padding: 2px; } row { padding: 2px; }
&.content:not(.conversation-listbox) {
@extend %circular_list;
> row {
@extend %circular_row;
}
}
} }
%row_activatable { %row_activatable {
@@ -3289,13 +3323,13 @@ row {
// //
.app-notification { .app-notification {
padding: 8px; padding: 8px;
margin: 6px 16px 16px 16px; margin: 6px 20px 24px 20px;
color: $fg_color; color: $fg_color;
background-color: rgba($header_bg, 0.85); background-color: rgba($header_bg, 0.85);
// background-image: linear-gradient(0deg, $bg_color 0%, $bg_color 85%, darken($bg_color, 5%) 95%, darken($bg_color, 15%) 100%); // background-image: linear-gradient(0deg, $bg_color 0%, $bg_color 85%, darken($bg_color, 5%) 95%, darken($bg_color, 15%) 100%);
border-radius: $wm_radius; border-radius: $wm_radius;
border: none; border: none;
box-shadow: 0 5px 15px 0 rgba(black, 0.25), box-shadow: 0 3px 10px 0 rgba(black, 0.15),
inset 0 0 0 1px rgba(white, 0.06), inset 0 0 0 1px rgba(white, 0.06),
0 0 0 1px if($variant=='light', rgba(black, 0.12), rgba(black, 0.75)); 0 0 0 1px if($variant=='light', rgba(black, 0.12), rgba(black, 0.75));
+15 -28
View File
@@ -636,19 +636,19 @@ button {
} }
&.image-button { &.image-button {
min-height: 22px; min-height: 24px;
padding-left: 8px; padding-left: 8px;
padding-right: 8px; padding-right: 8px;
} }
&.text-button { &.text-button {
min-height: 22px; min-height: 24px;
padding-left: 12px; padding-left: 12px;
padding-right: 12px; padding-right: 12px;
} }
&.text-button.image-button { &.text-button.image-button {
min-height: 22px; min-height: 24px;
padding-left: 6px; padding-left: 6px;
padding-right: 6px; padding-right: 6px;
@@ -1084,11 +1084,11 @@ spinbutton {
> button.up:dir(rtl):hover:not(:active), > button.up:dir(rtl):hover:not(:active),
> text + button:not(:active):hover { box-shadow: none; } > text + button:not(:active):hover { box-shadow: none; }
> text:focus + button { border-left-color: $entry_highlight; } > text:focus-within + button { border-left-color: $entry_highlight; }
> text:drop(active) + button { border-left-color: $drop_target_color; } > text:drop(active) + button { border-left-color: $drop_target_color; }
.osd & { .osd & {
&, &:focus, &:drop(active) { border-image: none; } &, &:focus-within, &:drop(active) { border-image: none; }
> button:hover:not(:active), > button:hover:not(:active),
> button:hover + button { box-shadow: inset 1px 0 $osd_button_border; } > button:hover + button { box-shadow: inset 1px 0 $osd_button_border; }
@@ -1096,7 +1096,7 @@ spinbutton {
> button.up:dir(rtl):hover:not(:active), > button.up:dir(rtl):hover:not(:active),
> text + button:not(:active):hover { box-shadow: none; } > text + button:not(:active):hover { box-shadow: none; }
> text:focus + button { border-left-color: $entry_highlight; } > text:focus-within + button { border-left-color: $entry_highlight; }
} }
} }
@@ -1111,7 +1111,7 @@ spinbutton {
> button.up { border-radius: $bt_radius $bt_radius 0 0; } > button.up { border-radius: $bt_radius $bt_radius 0 0; }
> text:focus + button { border-top-color: $entry_highlight; } > text:focus-within + button { border-top-color: $entry_highlight; }
> text:drop(active) + button { border-top-color: $drop_target_color; } > text:drop(active) + button { border-top-color: $drop_target_color; }
} }
@@ -1966,19 +1966,10 @@ treeview.view {
color: $borders_color; color: $borders_color;
} }
&:drop(active) {
border-style: solid none;
border-width: 1px;
border-color: mix($fg_color, $selected_bg_color, 50%);
&.after { border-top-style: none; }
&.before { border-bottom-style: none; }
}
> dndtarget:drop(active) { > dndtarget:drop(active) {
border-style: solid none; border-style: solid none;
border-width: 1px; border-width: 1px;
border-color: $selected_borders_color; border-color: mix($fg_color, $selected_bg_color, 50%);
&.after { border-top-style: none; } &.after { border-top-style: none; }
@@ -2778,7 +2769,7 @@ radio {
margin: 0 2px; margin: 0 2px;
&:only-child, &:only-child,
menu menuitem & { margin: 0; } popover.menu > contents & { margin: 0; }
} }
// //
@@ -2816,7 +2807,6 @@ scale {
$_scale_trough_bg: rgba(black, 0.2); $_scale_trough_bg: rgba(black, 0.2);
outline-offset: 2px; outline-offset: 2px;
border-radius: $bt_radius; border-radius: $bt_radius;
background-color: $_scale_trough_bg; background-color: $_scale_trough_bg;
@@ -2836,7 +2826,7 @@ scale {
} }
// Troughs in selected list-rows and infobars // Troughs in selected list-rows and infobars
menuitem:hover &, modelbutton:hover &,
row:selected &, row:selected &,
infobar & { infobar & {
background-color: transparentize(black, 0.8); background-color: transparentize(black, 0.8);
@@ -2898,7 +2888,7 @@ scale {
} }
// Selected list-row and infobar sliders // Selected list-row and infobar sliders
menuitem:hover &, modelbutton:hover &,
row:selected &, row:selected &,
infobar & { infobar & {
background-clip: border-box; background-clip: border-box;
@@ -3103,8 +3093,8 @@ progressbar {
} }
} }
&.horizontal > trough > progress { margin: 0 -1px; } // the progress node is positioned after the trough border // &.horizontal > trough > progress { margin: 0 -1px; } // the progress node is positioned after the trough border
&.vertical > trough > progress { margin: -1px 0; } // this moves it over it. // &.vertical > trough > progress { margin: -1px 0; } // this moves it over it.
&.osd { &.osd {
min-width: 3px; min-width: 3px;
@@ -3514,10 +3504,7 @@ calendar {
} }
> label:focus { > label:focus {
outline-color: $borders_color; outline-style: none;
outline-offset: -2px;
outline-width: 2px;
outline-style: solid;
} }
> label.day-number { > label.day-number {
@@ -4003,7 +3990,7 @@ infobar {
background-color: $selected_fg_color; background-color: $selected_fg_color;
} }
*:link { @extend %link_selected; } link { @extend %link_selected; }
} }
} }
} }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5 -4
View File
@@ -67,7 +67,7 @@ while [[ $# -gt 0 ]]; do
edit_firefox="true" ;; edit_firefox="true" ;;
esac esac
if [[ ! "$(which firefox 2> /dev/null)" ]]; then if ! has_command firefox; then
prompt -e "'${1}' ERROR: There's no Firefox installed in your system" prompt -e "'${1}' ERROR: There's no Firefox installed in your system"
has_any_error="true" has_any_error="true"
elif [[ ! -d "${FIREFOX_DIR_HOME}" ]]; then elif [[ ! -d "${FIREFOX_DIR_HOME}" ]]; then
@@ -81,21 +81,21 @@ while [[ $# -gt 0 ]]; do
-F|--flatpak) -F|--flatpak)
flatpak="true"; flatpak="true";
if [[ ! "$(which flatpak 2> /dev/null)" ]]; then if ! has_command flatpak; then
prompt -e "'${1}' ERROR: There's no Flatpak installed in your system" prompt -e "'${1}' ERROR: There's no Flatpak installed in your system"
has_any_error="true" has_any_error="true"
fi; shift ;; fi; shift ;;
-s|--snap) -s|--snap)
snap="true"; snap="true";
if [[ ! "$(which snap 2> /dev/null)" ]]; then if ! has_command snap; then
prompt -e "'${1}' ERROR: There's no Snap installed in your system" prompt -e "'${1}' ERROR: There's no Snap installed in your system"
has_any_error="true" has_any_error="true"
fi; shift ;; fi; shift ;;
-g|--gdm) -g|--gdm)
gdm="true"; full_rootify "${1}" gdm="true"; full_rootify "${1}"
if [[ ! "$(which gdm 2> /dev/null)" && ! "$(which gdm3 2> /dev/null)" ]]; then if ! has_command gdm && ! has_command gdm3; then
prompt -e "'${1}' ERROR: There's no GDM installed in your system" prompt -e "'${1}' ERROR: There's no GDM installed in your system"
has_any_error="true" has_any_error="true"
fi; shift ;; fi; shift ;;
@@ -214,6 +214,7 @@ fi
if [[ "${firefox}" == "false" && "${edit_firefox}" == "false" && "${flatpak}" == "false" && "${snap}" == "false" && "${gdm}" == "false" && "${dash_to_dock}" == "false" ]]; then if [[ "${firefox}" == "false" && "${edit_firefox}" == "false" && "${flatpak}" == "false" && "${snap}" == "false" && "${gdm}" == "false" && "${dash_to_dock}" == "false" ]]; then
echo; prompt -e "Oops... there's nothing to tweaks..." echo; prompt -e "Oops... there's nothing to tweaks..."
echo; prompt -i "Run ./tweaks.sh -h for help!..."
fi fi
echo echo