From 553a7faf420caf41d1f2498f3bfa20a71aa5d3f0 Mon Sep 17 00:00:00 2001 From: Birdinfire <42673166+BirdInFire@users.noreply.github.com> Date: Sun, 7 Jan 2024 01:29:42 +0100 Subject: [PATCH] extensions: tab-center-reborn: Add flag to disable animations --- README.md | 1 + theme/extensions/tab-center-reborn.css | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 0cbd674..f29e328 100644 --- a/README.md +++ b/README.md @@ -271,6 +271,7 @@ We also have optional features to enable support for some Firefox extensions. > **Note:** You also need to copy the contents of the file `configuration/extensions/tab-center-reborn.css` into the settings page of Tabcenter-reborn..\ > **Note2:** You can also maintain the vertical tab always open with `gnomeTheme.extensions.tabCenterReborn.alwaysOpen` + > **Note2:** You can disable animation by disabling animation into the extension and adding the flags `gnomeTheme.extensions.tabCenterReborn.animationDisabled` ## Known bugs diff --git a/theme/extensions/tab-center-reborn.css b/theme/extensions/tab-center-reborn.css index 9bacf29..2669c1b 100644 --- a/theme/extensions/tab-center-reborn.css +++ b/theme/extensions/tab-center-reborn.css @@ -65,11 +65,13 @@ width: 30vw !important; max-width: 200px !important; z-index: 1 !important; + animation-timing-function: linear; transition: all var(--transition-time) ease var(--delay); } #sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) #sidebar, #sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) { + animation-timing-function: linear; transition: all var(--transition-time) ease 0s; } @@ -167,3 +169,18 @@ } } } + +@media (-moz-bool-pref: "gnomeTheme.extensions.tabCenterReborn.animationDisabled") { + #sidebar-box[sidebarcommand*="tabcenter"]:hover #sidebar, + #sidebar-box[sidebarcommand*="tabcenter"]:hover { + transition: none !important; + } + + #sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) #sidebar, + #sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) { + animation-timing-function: linear; + transition: none !important; + } + + +}