Skip to content

Commit 9c94448

Browse files
committed
Feat: add new modifications #52 and fixed install script
1 parent d715a22 commit 9c94448

File tree

8 files changed

+66
-14
lines changed

8 files changed

+66
-14
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,21 @@ The script supports the following flags
2929
- `-l` Default location of most Linux installations
3030
- `-u` Remove the animation on URL bar to be clickable throughout
3131
- `-n` Removes the identity colour from tabs
32+
- `-v` Re-enables the tabview button
33+
- `-e` Hides the extension button
34+
- `-s` Single tab view (Tabs hidden when only one tab)
3235
- `-r` Remove the theme
3336

34-
e.g. To install with script, with close button left hand side: `bash install.sh -c`
37+
e.g. To install with script, with the tab close button left hand side: `bash install.sh -c`
38+
39+
#### Optimal experience:
40+
Make sure to right click and Customize Toolbar. From here, drag the new tab button up to the toolbar out of the tab section.
41+
42+
Install with the following modifications for Safari-like experience
43+
` bash ./install.sh -c -n -s -e`
44+
45+
This will give you a look like this:
46+
![Preview](https://user-images.githubusercontent.com/6800453/214499429-36413e29-0167-400c-969f-46d2d7082559.png)
3547

3648
### Manual installation (MacOS & Windows)
3749

chrome/WhiteSur/parts/tabsbar.css

+4
Original file line numberDiff line numberDiff line change
@@ -447,3 +447,7 @@ transition: all 150ms ease-in !important;
447447
}
448448

449449

450+
/* hide tab view section*/
451+
#alltabs-button.toolbarbutton-1 {
452+
visibility: collapse !important;
453+
}

chrome/WhiteSur/theme.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
@import "colors/dark.css";
1717
@import "parts/windows.css";
1818
/* Add Custom themes so user only needs to copy items*/
19-
@import "custom/lhsclose.css";
19+
@import "custom/tabs-swapclose.css";
20+
@import "custom/singletabhidden.css";
21+
@import "custom/hideextension.css";
22+
@import "custom/enabletabview.css";
2023
@import "custom/noidentity.css";
2124
@import "custom/standard-urlbar.css";
2225
@import "custom/windows-swapclose.css";

custom/enabletabview.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#alltabs-button.toolbarbutton-1 {
2+
visibility: visible !important;
3+
}

custom/hideextension.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#unified-extensions-button{
2+
display:none !important;
3+
}

custom/singletabhidden.css

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* From user @luan https://github.com/AdamXweb/WhiteSurFirefoxThemeMacOS/issues/52#issuecomment-1120470140 */
2+
3+
#tabbrowser-tabs, #tabbrowser-tabs arrowscrollbox {
4+
height: auto !important;
5+
padding: 0 !important;
6+
}
7+
8+
#TabsToolbar {
9+
min-height: 0 !important;
10+
}
11+
12+
#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"]:not([pinned]),
13+
#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"]:not([pinned]) ~ #titlebar {
14+
display: none;
15+
}

install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ readonly REPO_DIR="$(pwd)"
88
source "${REPO_DIR}/lib-install.sh"
99

1010
# Get options.
11-
while getopts 'c,w:f:l:u:n,r' flag; do
11+
while getopts 'c,w,u,n,v,e,s,r:f:l' flag; do
1212
case "${flag}" in
1313
c ) TABSWAP=true;;
1414
w ) WINDOWSWAP=true;;
1515
f ) FIREFOX_DIR_HOME="${OPTARG}";;
1616
l ) FIREFOX_DIR_HOME=~/.mozilla/firefox/;;
1717
u ) URLBAR=true;;
1818
n) NOLINE=true;;
19+
v) TABVIEW=true;;
20+
e) HIDEEXTENSION=true;;
21+
s) NOTABSINGLE=true;;
1922
r ) REMOVE=true;;
2023
esac
2124
done

lib-install.sh

+20-11
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,40 @@ if [ "$WINDOWSWAP" = true ] ; then
3434
cp -rf "${REPO_DIR}/custom/windows-swapclose.css" "${FIREFOX_DIR_HOME}/"*"default-release/chrome/WhiteSur/custom"
3535
echo "Window CSD swapped"
3636
fi
37-
# If custom tab icons are wanted
38-
if [ "$TABICONS" = true ] ; then
39-
cd "${REPO_DIR}"
40-
echo "Enabling custom tab icons"
41-
cp -rf "${REPO_DIR}/custom/tabicons.css" "${FIREFOX_DIR_HOME}/"*"default-release/chrome/WhiteSur/custom"
42-
echo "Custom tab icons enabled"
43-
fi
4437
# if no animation on URL bar is desired
4538
if [ "$URLBAR" = true ] ; then
4639
echo "Removing URL bar animation"
4740
cd "${REPO_DIR}"
48-
echo `pwd`
49-
echo "${REPO_DIR}"
5041
cp -rf "${REPO_DIR}/custom/standard-urlbar.css" "${FIREFOX_DIR_HOME}/"*"default-release/chrome/WhiteSur/custom"
5142
echo "Standard URL bar configured"
5243
fi
5344
# if no identity line icon is wanted
5445
if [ "$NOLINE" = true ] ; then
5546
echo "Removing Facebook / Multi account Identity line"
5647
cd "${REPO_DIR}"
57-
echo `pwd`
58-
echo "${REPO_DIR}"
5948
cp -rf "${REPO_DIR}/custom/noidentity.css" "${FIREFOX_DIR_HOME}/"*"default-release/chrome/WhiteSur/custom"
6049
echo "No identity lines configured"
6150
fi
51+
if [ "$TABVIEW" = true ] ; then
52+
cd "${REPO_DIR}"
53+
echo "Re-enabling tab view button"
54+
cp -rf "${REPO_DIR}/custom/enabletabview.css" "${FIREFOX_DIR_HOME}/"*"default-release/chrome/WhiteSur/custom"
55+
echo "Tab view button enabled"
56+
fi
57+
# If the extension panen is to be hidden
58+
if [ "$HIDEEXTENSION" = true ] ; then
59+
cd "${REPO_DIR}"
60+
echo "Enabling hidden extension button"
61+
cp -rf "${REPO_DIR}/custom/hideextension.css" "${FIREFOX_DIR_HOME}/"*"default-release/chrome/WhiteSur/custom"
62+
echo "Extension button hidden"
63+
fi
64+
if [ "$NOTABSINGLE" = true ] ; then
65+
cd "${REPO_DIR}"
66+
echo "Enabling single tab minimal view"
67+
cp -rf "${REPO_DIR}/custom/singletabhidden.css" "${FIREFOX_DIR_HOME}/"*"default-release/chrome/WhiteSur/custom"
68+
echo "Single tab minimal view enabled"
69+
fi
70+
6271
# Copy settings to enable stylesheets in firefox automatically.
6372
for d in "${FIREFOX_DIR_HOME}/"*"default-release"; do
6473
echo "user_pref(\"toolkit.legacyUserProfileCustomizations.stylesheets\", true);" >> "${d}/prefs.js"

0 commit comments

Comments
 (0)