Skip to content

Commit 08c79f2

Browse files
committed
Container tabs look better (Thanks Firefox-Proton-Square) Also more r3d coloring
1 parent b99fc45 commit 08c79f2

File tree

4 files changed

+91
-35
lines changed

4 files changed

+91
-35
lines changed

browser/themes/shared/jar.inc.mn

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
skin/classic/browser/tracking-protection-disabled.svg (../shared/identity-block/tracking-protection-disabled.svg)
104104
skin/classic/browser/tracking-protection-active.svg (../shared/identity-block/tracking-protection-active.svg)
105105

106+
skin/classic/browser/r3d-toolbar-drag-indicator.svg (../shared/r3d-toolbar-drag-indicator.svg)
106107
skin/classic/browser/toolbar-drag-indicator.svg (../shared/toolbar-drag-indicator.svg)
107108

108109
skin/classic/browser/protections/resolved-breach.svg (../shared/protections/resolved-breach.svg)
@@ -225,6 +226,7 @@
225226
skin/classic/browser/tabbrowser/loading.svg (../shared/tabbrowser/loading.svg)
226227
skin/classic/browser/tabbrowser/loading-burst.svg (../shared/tabbrowser/loading-burst.svg)
227228
skin/classic/browser/tabbrowser/pendingpaint.png (../shared/tabbrowser/pendingpaint.png)
229+
skin/classic/browser/tabbrowser/r3d-tab-drag-indicator.svg (../shared/tabbrowser/r3d-tab-drag-indicator.svg)
228230
skin/classic/browser/tabbrowser/tab-audio-playing-small.svg (../shared/tabbrowser/tab-audio-playing-small.svg)
229231
skin/classic/browser/tabbrowser/tab-audio-muted-small.svg (../shared/tabbrowser/tab-audio-muted-small.svg)
230232
skin/classic/browser/tabbrowser/tab-audio-blocked-small.svg (../shared/tabbrowser/tab-audio-blocked-small.svg)
Lines changed: 4 additions & 0 deletions
Loading

browser/themes/shared/r3dfox.css

Lines changed: 81 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
@media (-moz-bool-pref: "r3dfox.colors.enabled") {
44
:root {
5-
--arrowpanel-border-color: light-dark(rgb(255, 60, 60), rgb(155, 60, 60)) !important;
6-
--toolbar-field-focus-border-color: light-dark(rgb(255, 40, 40), rgb(155, 60, 60)) !important;
7-
--sidebar-border-color: light-dark(rgb(255, 60, 60), rgb(155, 60, 60)) !important;
5+
--arrowpanel-border-color: light-dark(rgb(255, 60, 60), rgb(160, 60, 60)) !important;
6+
--toolbar-field-focus-border-color: light-dark(rgb(255, 40, 40), rgb(160, 60, 60)) !important;
7+
--sidebar-border-color: light-dark(rgb(255, 60, 60), rgb(160, 60, 60)) !important;
8+
--lwt-toolbar-field-highlight: light-dark(rgb(255, 40, 40), rgb(160, 60, 60)) !important;
9+
--newtab-primary-action-background: light-dark(rgb(255, 20, 20), rgb(255, 80, 80)) !important;
10+
--newtab-primary-action-background-hover: light-dark(rgb(255, 40, 40), rgb(255, 60, 60)) !important;
11+
--newtab-primary-action-background-active: light-dark(rgb(255, 40, 40), rgb(255, 40, 40)) !important;
812
--in-content-primary-button-background: light-dark(rgb(255, 20, 20), rgb(255, 80, 80)) !important;
913
--in-content-primary-button-background-hover: light-dark(rgb(255, 40, 40), rgb(255, 60, 60)) !important;
1014
--in-content-primary-button-background-active: light-dark(rgb(255, 40, 40), rgb(255, 40, 40)) !important;
@@ -19,9 +23,26 @@
1923
--button-primary-hover-bgcolor: light-dark(rgb(255, 60, 60), rgb(255, 80, 80)) !important;
2024
--button-primary-active-bgcolor: light-dark(rgb(255, 60, 60), rgb(255, 60, 60)) !important;
2125
--toolbarbutton-icon-fill-attention: light-dark(rgb(255, 20, 20), rgb(255, 80, 80)) !important;
26+
--download-progress-fill-color: light-dark(rgb(255, 40, 40), rgb(255, 80, 80)) !important;
2227
--lwt-tab-line-color: light-dark(rgb(255, 40, 40), rgb(255, 80, 80)) !important;
2328
&[privatebrowsingmode=temporary] {
24-
--tabpanel-background-color: linear-gradient(to bottom, #480808 0%,#240103 93%,#200000 97%,#1E0000 100%) !important;
29+
--tabpanel-background-color: linear-gradient(to bottom, #480808 0%,#240103 93%,#200000 97%,#1E0000 100%) !important;
30+
}
31+
32+
::selection {
33+
background: light-dark(rgb(255, 80, 80), rgb(160, 60, 60)) !important;
34+
}
35+
36+
.bookmark-item:is(toolbarbutton)[dragover="true"][open="true"] {
37+
background: light-dark(rgb(255, 80, 80), rgb(160, 60, 60)) !important;
38+
}
39+
40+
.tab-drop-indicator {
41+
background: url(chrome://browser/skin/tabbrowser/r3d-tab-drag-indicator.svg) no-repeat center !important;
42+
}
43+
44+
#PlacesToolbarDropIndicator {
45+
list-style-image: url(chrome://browser/skin/r3d-toolbar-drag-indicator.svg) !important;
2546
}
2647
}
2748

@@ -124,11 +145,11 @@
124145
.titlebar-spacer {
125146
display: none !important;
126147
}
127-
148+
128149
:root[sizemode="normal"] {
129150
--drag-space: 16px;
130151
}
131-
152+
132153
#TabsToolbar :is(.tabbrowser-tab, .toolbarbutton-1, separator, #personal-bookmarks, #search-container, .accessibility-indicator, .private-browsing-indicator, #private-browsing-indicator-with-label) {
133154
margin-top: var(--drag-space, 0px) !important;
134155
}
@@ -206,25 +227,33 @@
206227
background-color: var(--toolbar-bgcolor) !important;
207228
}
208229
}
209-
210-
#nav-bar {
211-
height: 27px !important;
212-
}
213-
214-
#urlbar-container {
215-
min-height: 20px !important; height: 28px !important;
230+
231+
:root {
232+
--tab-min-height: 32px !important;
233+
234+
#nav-bar {
235+
height: 32px !important;
236+
}
216237
}
217-
238+
218239
:root[uidensity="compact"] {
219240
--tab-min-height: 24px !important;
220-
}
221-
222-
.tab-label-container {
223-
#tabbrowser-tabs:not([secondarytext-unsupported]) & {
224-
height: 2em !important;
241+
242+
.tab-label-container {
243+
#tabbrowser-tabs:not([secondarytext-unsupported]) & {
244+
height: 2em !important;
245+
}
246+
}
247+
248+
#nav-bar {
249+
height: 27px !important;
250+
}
251+
252+
#urlbar-container {
253+
min-height: 20px !important; height: 28px !important;
225254
}
226255
}
227-
256+
228257
:root[uidensity="touch"] {
229258
--tab-min-height: 40px !important;
230259
}
@@ -301,11 +330,7 @@
301330
padding-inline: 10px !important;
302331
}
303332
}
304-
305-
.tab-drop-indicator {
306-
opacity: 0 !important;
307-
}
308-
333+
309334
#tabbrowser-tabs[movingtab] .tabbrowser-tab:not([visuallyselected]) {
310335
z-index: auto !important;
311336
}
@@ -341,15 +366,36 @@
341366
}
342367
}
343368

344-
.tabbrowser-tab[visuallyselected][usercontextid] .tab-background {
345-
box-shadow: inset 0 -2px 0 var(--lwt-tab-line-color) !important;
346-
}
347-
348-
.tabbrowser-tab[visuallyselected]:not([usercontextid]) .tab-background {
349-
box-shadow: inset 0 2px 0 var(--lwt-tab-line-color) !important;
350-
}
351-
352-
.tab-context-line {
353-
margin: 0px !important;
369+
/* adds the little colored strip on top of the selected tab */
370+
.tab-background:is([selected], [multiselected]) {
371+
box-shadow: inset 0 2px 0 var(--lwt-tab-line-color) !important;
372+
border: 0 !important;
373+
outline: none !important;
374+
}
375+
376+
/* special handling for mozilla containers */
377+
tab[class*="identity-color"] {
378+
background-image: linear-gradient(var(--identity-tab-color, white), var(--identity-tab-color, white));
379+
background-size: 100% 2px;
380+
background-position: bottom center;
381+
background-repeat: no-repeat;
382+
border: 0 !important;
383+
outline: none !important;
384+
}
385+
386+
/* override the built in container colors */
387+
tab[class*="identity-color"][selected="true"]>.tab-stack>.tab-background>.tab-context-line {
388+
height: 0 !important;
389+
}
390+
391+
/* replace with our own container border */
392+
tab[class*="identity-color"][selected="true"]>.tab-stack>.tab-background:is([selected], [multiselected]) {
393+
box-shadow: inset 0 2px var(--identity-tab-color, white) !important;
394+
background-image: linear-gradient(var(--identity-tab-color, white), var(--identity-tab-color, white));
395+
background-size: 100% 2px;
396+
background-position: bottom center;
397+
background-repeat: no-repeat;
398+
border: 0 !important;
399+
outline: none !important;
354400
}
355401
}
Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)