This commit is contained in:
Vince 2021-06-17 11:37:58 +08:00
parent 4df9eb0f82
commit c61b84109e
7 changed files with 17 additions and 10 deletions

View file

@ -645,7 +645,7 @@ sudo() {
prompt -w "Executing '$(echo "${@}" | cut -c -35 )...' as root" prompt -w "Executing '$(echo "${@}" | cut -c -35 )...' as root"
if ! ${SUDO_BIN} -n true &> /dev/null; then if ! ${SUDO_BIN} -n true &> /dev/null; then
echo -e "${c_magenta} Authentication is required:${c_default}" echo -e "${c_magenta} Authentication is required${c_default} ${c_green}(Please input your password):${c_default}"
fi fi
if [[ -p /dev/stdin ]]; then if [[ -p /dev/stdin ]]; then
@ -665,7 +665,7 @@ udo() {
# Just in case. We put the prompt here to make it less annoying # Just in case. We put the prompt here to make it less annoying
if ! ${SUDO_BIN} -u "${MY_USERNAME}" -n true &> /dev/null; then if ! ${SUDO_BIN} -u "${MY_USERNAME}" -n true &> /dev/null; then
prompt -w "Executing '$(echo "${@}" | cut -c -35 )...' as user" prompt -w "Executing '$(echo "${@}" | cut -c -35 )...' as user"
echo -e "${c_magenta} Authentication is required:${c_default}" echo -e "${c_magenta} Authentication is required${c_default} ${c_green}(Please input your password):${c_default}"
fi fi
if [[ -p /dev/stdin ]]; then if [[ -p /dev/stdin ]]; then

View file

@ -185,7 +185,7 @@ install_theme_deps() {
install_beggy_deps() { install_beggy_deps() {
if ! has_command convert; then if ! has_command convert; then
prompt -w "DEPS: 'imagemagick' is required for background editing." prompt -w "DEPS: 'imagemagick' is required for background editing."
prepare_deps prepare_deps; stop_animation
if has_command zypper; then if has_command zypper; then
sudo zypper in -y ImageMagick sudo zypper in -y ImageMagick
@ -266,9 +266,8 @@ install_beggy() {
;; ;;
*) *)
if [[ "${no_blur}" == "false" || "${darken}" == "true" ]]; then if [[ "${no_blur}" == "false" || "${darken}" == "true" ]]; then
install_beggy_deps; start_animation install_beggy_deps
convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png"
stop_animation
else else
cp -r "${background}" "${WHITESUR_TMP_DIR}/beggy.png" cp -r "${background}" "${WHITESUR_TMP_DIR}/beggy.png"
fi fi

View file

@ -98,6 +98,7 @@
transition: box-shadow 200ms; transition: box-shadow 200ms;
} }
:root:-moz-window-inactive #nav-bar #searchbar,
:root:-moz-window-inactive #urlbar #urlbar-input-container { :root:-moz-window-inactive #urlbar #urlbar-input-container {
background: var(--gnome-inactive-urlbar-background) !important; background: var(--gnome-inactive-urlbar-background) !important;
} }

View file

@ -86,7 +86,7 @@
--gnome-urlbar-box-shadow: inset 0 0 0 1px rgba(21, 83, 158, 0); --gnome-urlbar-box-shadow: inset 0 0 0 1px rgba(21, 83, 158, 0);
--gnome-urlbar-color: #ffffff; --gnome-urlbar-color: #ffffff;
--gnome-hover-urlbar-border-color: #585858; --gnome-hover-urlbar-border-color: #585858;
--gnome-inactive-urlbar-background: #313131; --gnome-inactive-urlbar-background: #383838;
--gnome-inactive-urlbar-border-color: #282828; --gnome-inactive-urlbar-border-color: #282828;
--gnome-inactive-urlbar-box-shadow: none; --gnome-inactive-urlbar-box-shadow: none;
--gnome-inactive-urlbar-color: #d6d6d6; --gnome-inactive-urlbar-color: #d6d6d6;

View file

@ -85,7 +85,7 @@
--gnome-urlbar-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.03); --gnome-urlbar-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.03);
--gnome-urlbar-color: #020202; --gnome-urlbar-color: #020202;
--gnome-hover-urlbar-border-color: #e5e5e5; --gnome-hover-urlbar-border-color: #e5e5e5;
--gnome-inactive-urlbar-background: linear-gradient(#fcfcfc, #fcfcfc); --gnome-inactive-urlbar-background: #f0f0f0;
--gnome-inactive-urlbar-border-color: #dadada; --gnome-inactive-urlbar-border-color: #dadada;
--gnome-inactive-urlbar-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05); --gnome-inactive-urlbar-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
--gnome-inactive-urlbar-color: #323232; --gnome-inactive-urlbar-color: #323232;

View file

@ -36,6 +36,10 @@
--toolbarbutton-inner-padding: 0 !important; --toolbarbutton-inner-padding: 0 !important;
} }
:root:-moz-window-inactive #nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton) {
background: none !important;
}
/* Hover headerbar buttons */ /* Hover headerbar buttons */
#nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not([open]):not([disabled]):not([checked]):hover { #nav-bar toolbarbutton:not(#urlbar-zoom-button):not(.subviewbutton):not([open]):not([disabled]):not([checked]):hover {
outline: 0 !important; outline: 0 !important;
@ -92,6 +96,11 @@
transition: box-shadow 200ms; transition: box-shadow 200ms;
} }
:root:-moz-window-inactive #nav-bar #searchbar,
:root:-moz-window-inactive #urlbar #urlbar-input-container {
background: var(--gnome-inactive-urlbar-background) !important;
}
#nav-bar #searchbar:hover, #nav-bar #searchbar:hover,
#urlbar #urlbar-input-container:hover { #urlbar #urlbar-input-container:hover {
box-shadow: inset 0 0 0 1px var(--gnome-hover-urlbar-border-color) !important; box-shadow: inset 0 0 0 1px var(--gnome-hover-urlbar-border-color) !important;

View file

@ -78,10 +78,8 @@ tab > stack {
/* Tab labels */ /* Tab labels */
tab { tab {
color: var(--gnome-tabbar-tab-color) !important; color: var(--gnome-tabbar-tab-color) !important;
font-family: Cantarell, inherit;
font-weight: bold;
font-size: 1em;
} }
tab:hover { tab:hover {
color: var(--gnome-tabbar-tab-hover-color) !important; color: var(--gnome-tabbar-tab-hover-color) !important;
} }