Skip to content

Commit 52ae298

Browse files
committed
feat(userChrome): add tab switch animation toggle
- Introduced a new user preference for enabling or disabling tab switch animation. - Updated userChrome.css to import the new animation styles.
1 parent f2f3483 commit 52ae298

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- To enable macOS button style, open `user.js`, find `fp.tweak.macos-button` and set it to `true`.
2222
- To disable bookmarks autohide open `user.js`, find `fp.tweak.autohide-bookmarks` and set it to `false`.
2323
- To enable or disable rounded corners, open `user.js`, find `fp.tweak.rounded-corners` and set it to `true` or `false`.
24+
- To enable or disable tab switch animation, open `user.js`, find `fp.tweak.animation.tab-switch` and set it to `true` or `false`.
2425
- To enable or disable White Mode, open `user.js`, find `browser.in-content.dark-mode` and set it to `true` or `false`. Then find and set `ui.systemUsesDarkTheme` to `1` or `0`.
2526

2627
***
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#tabbrowser-tabpanels > hbox {
2+
transition: all 0.2s;
3+
scale: 1.01 !important;
4+
filter: blur(4px) !important;
5+
}
6+
7+
#tabbrowser-tabpanels > hbox.deck-selected {
8+
scale: 1 !important;
9+
filter: none !important;
10+
}

chrome/userChrome.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
@import url("toolbar/tabbar.css");
1+
@import url("toolbar/tabbar.css") not -moz-pref("sidebar.verticalTabs");
22
@import url("toolbar/navbar.css");
33
@import url("toolbar/personalbar.css");
44
@import url("toolbar/urlbar.css");
55
@import url("toolbar/searchbar.css");
66
@import url("global/general.css");
77
@import url("icons/icons.css");
8-
@import url("global/rounded-corners.css") -moz-pref("fp.tweak.rounded-corners");
8+
@import url("global/rounded-corners.css") -moz-pref("fp.tweak.rounded-corners");
9+
@import url("animations/tab-animation.css") -moz-pref("fp.tweak.animation.tab-switch");

install.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ Get-ChildItem -Path $firefoxProfilesPath | ForEach-Object {
9191
"desc" = "Enable rounded corners"
9292
"type" = "boolean"
9393
},
94+
[PSCustomObject]@{
95+
"line" = "user_pref(`"fp.tweak.animation.tab-switch`", true);"
96+
"desc" = "Enable tab switch animation"
97+
"type" = "boolean"
98+
},
9499
[PSCustomObject]@{
95100
"line" = "user_pref(`"app.update.auto`", false);"
96101
"desc" = "Enable Firefox autoupdate"

0 commit comments

Comments
 (0)