Categories

Developer

Eason & Yue
Eason & Yue

Adaptive Tab Bar Color v4.3.1

  • rating
  • rating
  • rating
  • rating
  • rating
4.76 (623 reviews)
Changes the color of Firefox theme to match the website’s appearance. Adaptive Tab Bar Color Adaptive Tab Bar Color Adaptive Tab Bar Color Adaptive Tab Bar Color

What Does the Add-on Do?

This add-on dynamically adjusts the Firefox theme to match the appearance of the website you are viewing, similar to the tab bar tinting feature in Safari on macOS.

Works Well With

  • Dark Reader
  • Stylus
  • Dark Mode Website Switcher

Incompatible With
  • Adaptive Theme Creator
  • Chameleon Dynamic Theme
  • VivaldiFox
  • Envify
  • Any other add-on that modifies the Firefox theme

Customizing Color Transitions

Firefox natively applies a transition effect to tab bar color changes. To disable this behavior and allow Adaptive Tab Bar Color (ATBC) to update colors instantaneously, add the following code to your CSS theme:
:root {--ext-theme-background-transition: none !important;
--inactive-window-transition: none !important;}
Alternatively, you may prefer smooth color transitions for the tab bar. As this cannot be natively supported due to technical limitations, add the following code to your CSS theme (thanks to @Moarram):
body, findbar, #navigator-toolbox, #TabsToolbar, #nav-bar, #PersonalToolbar, #sidebar-box, .tab-background, .urlbar-background {transition:background-color 0.5s cubic-bezier(0, 0, 0, 1) !important,
border-color 0.5s cubic-bezier(0, 0, 0, 1) !important,
outline 0.5s cubic-bezier(0, 0, 0, 1) !important;}
To enable smooth color transitions in the Sidebery UI, add the following code to the Sidebery Style Editor (thanks to @MaxHasBeenUsed):
.Sidebar, .bottom-space {transition: background-color 0.5s cubic-bezier(0, 0, 0, 1) !important;}
Adaptive Theme in Context Menus

To apply the adaptive theme to context menus, add the following code to your CSS theme:
:is(menupopup, panel):where(:not([type="arrow"])) {--panel-background-color: unset !important;
--panel-border-color: unset !important;}
Additionally, native context menus must be disabled by opening about:config and setting the following preferences to false:
  • widget.gtk.native-context-menus (Linux)
  • widget.macos.native-context-menus (macOS)

Compatibility with Third-Party CSS Themes

A third-party CSS theme works with Adaptive Tab Bar Color (ATBC), as long as they use Firefox’s standard color variables (e.g. --lwt-accent-color for the tab bar color). This is an example of an ATBC-compatible CSS theme.

Title Bar Buttons on Linux with GTK Theme

Firefox’s titlebar buttons may revert to the Windows style. To prevent this, open “Advanced Preferences” (about:config) and set widget.gtk.non-native-titlebar-buttons.enabled to false. (Thanks to @anselstetter)

Safety Reminder

Beware of malicious web UIs. It is important to distinguish between the browser UI and the web UI. For further information, please refer to The Line of Death. (Thanks to u/KazaHesto)