mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2026-06-19 00:49:42 +00:00
update
This commit is contained in:
@@ -119,6 +119,9 @@ panel_size="${PANEL_SIZE_VARIANTS[0]}"
|
|||||||
nautilus_style="${NAUTILUS_STYLE_VARIANTS[0]}"
|
nautilus_style="${NAUTILUS_STYLE_VARIANTS[0]}"
|
||||||
background="blank"
|
background="blank"
|
||||||
compact="true"
|
compact="true"
|
||||||
|
firefoxtheme="$THEME_NAME"
|
||||||
|
left_button="3"
|
||||||
|
right_button="3"
|
||||||
|
|
||||||
#--Ambigous arguments checking and overriding default values--#
|
#--Ambigous arguments checking and overriding default values--#
|
||||||
declare -A has_set=([-b]="false" [-s]="false" [-p]="false" [-h]="false" [-d]="false" [-n]="false" [-a]="false" [-o]="false" [-c]="false" [-i]="false" [-t]="false" [-N]="false")
|
declare -A has_set=([-b]="false" [-s]="false" [-p]="false" [-h]="false" [-d]="false" [-n]="false" [-a]="false" [-o]="false" [-c]="false" [-i]="false" [-t]="false" [-N]="false")
|
||||||
|
|||||||
@@ -727,6 +727,11 @@ install_firefox_theme() {
|
|||||||
[[ -f "${TARGET_DIR}"/userContent.css ]] && mv "${TARGET_DIR}"/userContent.css "${TARGET_DIR}"/userContent.css.bak
|
[[ -f "${TARGET_DIR}"/userContent.css ]] && mv "${TARGET_DIR}"/userContent.css "${TARGET_DIR}"/userContent.css.bak
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/userContent-"${theme_name}${theme_type}".css "${TARGET_DIR}"/userContent.css
|
cp -rf "${FIREFOX_SRC_DIR}"/userContent-"${theme_name}${theme_type}".css "${TARGET_DIR}"/userContent.css
|
||||||
|
|
||||||
|
if [[ "${theme_name}" == 'Monterey' ]]; then
|
||||||
|
sed -i "s/left_header_button_3/left_header_button_${left_button}/g" "${TARGET_DIR}"/userChrome.css
|
||||||
|
sed -i "s/right_header_button_3/right_header_button_${right_button}/g" "${TARGET_DIR}"/userChrome.css
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${firefoxtheme}" == 'Flat' && "${theme_name}" == 'Monterey' ]]; then
|
if [[ "${firefoxtheme}" == 'Flat' && "${theme_name}" == 'Monterey' ]]; then
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/userChrome-Monterey-alt"${theme_type}".css "${TARGET_DIR}"/userChrome.css
|
cp -rf "${FIREFOX_SRC_DIR}"/userChrome-Monterey-alt"${theme_type}".css "${TARGET_DIR}"/userChrome.css
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/WhiteSur/parts/headerbar-urlbar.css "${TARGET_DIR}"/Monterey/parts/headerbar-urlbar-alt.css
|
cp -rf "${FIREFOX_SRC_DIR}"/WhiteSur/parts/headerbar-urlbar.css "${TARGET_DIR}"/Monterey/parts/headerbar-urlbar-alt.css
|
||||||
|
|||||||
@@ -2,9 +2,14 @@
|
|||||||
|
|
||||||
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||||
|
|
||||||
:root[tabsintitlebar] #nav-bar toolbaritem,
|
:root[tabsintitlebar] #nav-bar toolbarbutton,
|
||||||
#nav-bar-customization-target {
|
#nav-bar-customization-target {
|
||||||
-moz-window-dragging: drag;
|
-moz-window-dragging: drag !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabbrowser-tabs,
|
||||||
|
#tabbrowser-arrowscrollbox {
|
||||||
|
-moz-window-dragging: drag !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]):not([orient="vertical"]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab:nth-child(1 of :not([pinned], [hidden])) {
|
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]):not([orient="vertical"]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab:nth-child(1 of :not([pinned], [hidden])) {
|
||||||
@@ -15,6 +20,11 @@
|
|||||||
margin: 0 3px !important;
|
margin: 0 3px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pinned-tabs-container[orient="horizontal"] {
|
||||||
|
margin-inline-end: 6px !important;
|
||||||
|
margin-inline-start: 6px !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Tabs bar height */
|
/* Tabs bar height */
|
||||||
#TabsToolbar #tabbrowser-tabs {
|
#TabsToolbar #tabbrowser-tabs {
|
||||||
--tab-min-height: 32px !important;
|
--tab-min-height: 32px !important;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ usage() {
|
|||||||
|
|
||||||
helpify "" "" "Tweaks for firefox" "options"
|
helpify "" "" "Tweaks for firefox" "options"
|
||||||
sec_title "-f, --firefox" " [(monterey|flat)|alt|(darker|adaptive)]" " Without options default WhiteSur theme will install..." " Options:"
|
sec_title "-f, --firefox" " [(monterey|flat)|alt|(darker|adaptive)]" " Without options default WhiteSur theme will install..." " Options:"
|
||||||
sec_helpify "1. monterey" " [3+3|3+4|3+5|4+3|4+4|4+5|5+3|5+4|5+5]" " Topbar buttons number: 'a+b'" " a: left side buttons number, b: right side buttons number"
|
sec_helpify "1. monterey" " [3+3|3+4|3+5|4+3|4+4|4+5|5+3|5+4|5+5]" " Topbar buttons (not window control buttons) number: 'a+b'" " a: left side buttons number, b: right side buttons number"
|
||||||
sec_helpify "2. flat" " Monterey alt version" "" " Flat round tabs..."
|
sec_helpify "2. flat" " Monterey alt version" "" " Flat round tabs..."
|
||||||
sec_helpify "3. alt" " Alt windows button version" "" " Alt windows button style like gtk theme"
|
sec_helpify "3. alt" " Alt windows button version" "" " Alt windows button style like gtk theme"
|
||||||
sec_helpify "4. darker" " Darker Firefox theme version" "" " Darker Firefox theme version"
|
sec_helpify "4. darker" " Darker Firefox theme version" "" " Darker Firefox theme version"
|
||||||
|
|||||||
Reference in New Issue
Block a user