Skip to content

Commit

Permalink
BTI: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealMG committed Sep 26, 2024
1 parent a130153 commit d1e4f74
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
Empty file removed BetterActiveTab/README.md
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@media (-moz-bool-pref: "zen.tabs.vertical") {

/* Apply different borders based on the chosen color in preferences.json */
/* Default styles for predefined options */
.tabbrowser-tab:not([pinned]):is([multiselected="true"], [selected]) {
Expand All @@ -19,12 +18,18 @@

/* Custom color with fallback based on color scheme */
@media (prefers-color-scheme: light) {
.tabbrowser-tab:not([pinned]):is([multiselected="true"], [selected]):has(#uc-tabs[uc-tabs-preferred_color="custom"]) .tab-background {
.tabbrowser-tab:not([pinned]):is([multiselected="true"], [selected]):has(
#uc-tabs[uc-tabs-preferred_color="custom"]
)
.tab-background {
border: 2px solid var(--uc-tabs-preferred_color, #000000) !important; /* Fallback to black in light mode */
}
}
@media (prefers-color-scheme: dark) {
.tabbrowser-tab:not([pinned]):is([multiselected="true"], [selected]):has(#uc-tabs[uc-tabs-preferred_color="custom"]) .tab-background {
.tabbrowser-tab:not([pinned]):is([multiselected="true"], [selected]):has(
#uc-tabs[uc-tabs-preferred_color="custom"]
)
.tab-background {
border: 2px solid var(--uc-tabs-preferred_color, #ffffff) !important; /* Fallback to white in dark mode */
}
}
Expand All @@ -33,8 +38,25 @@
#tabbrowser-tabs {
& .tabbrowser-tab {
&[selected] .tab-background {
background: color-mix(in srgb, var(--zen-colors-secondary) 40%, transparent) !important;
background: color-mix(
in srgb,
var(--zen-colors-secondary) 40%,
transparent
) !important;
}
}
}

/* Dims tab text when unloaded */
@media (-moz-bool-pref: "uc.tabs.dim_unloaded") {
#tabbrowser-tabs {
& .tabbrowser-tab {
@media (-moz-bool-pref: "zen.tabs.dim-pending") {
&[pending="true"] .tab-text {
opacity: 0.5;
}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions BetterTabIndicators/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Better Tab Indicators
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,12 @@
"type": "string",
"default": "#ff0000",
"description": "Enter a hex color code for the tab border."
},
{
"property": "uc.tabs.dim_unloaded",
"label": "Dim Unloaded Tabs",
"type": "boolean",
"default": false,
"description": "Dim the text of tabs that are unloaded."
}
]

0 comments on commit d1e4f74

Please sign in to comment.