This commit is contained in:
vinceliuice
2025-08-04 10:49:10 +08:00
parent 55e9e35d66
commit 837856445e
4 changed files with 21 additions and 3 deletions

View File

@@ -119,6 +119,9 @@ panel_size="${PANEL_SIZE_VARIANTS[0]}"
nautilus_style="${NAUTILUS_STYLE_VARIANTS[0]}"
background="blank"
compact="true"
firefoxtheme="$THEME_NAME"
left_button="3"
right_button="3"
#--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")

View File

@@ -727,6 +727,11 @@ install_firefox_theme() {
[[ -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
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
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

View File

@@ -2,9 +2,14 @@
@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 {
-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])) {
@@ -15,6 +20,11 @@
margin: 0 3px !important;
}
#pinned-tabs-container[orient="horizontal"] {
margin-inline-end: 6px !important;
margin-inline-start: 6px !important;
}
/* Tabs bar height */
#TabsToolbar #tabbrowser-tabs {
--tab-min-height: 32px !important;

View File

@@ -47,7 +47,7 @@ usage() {
helpify "" "" "Tweaks for firefox" "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 "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"