Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit a7c3ad2

Browse files
0.7.2 Closed Beta
- Added a new flag: Be Chrome OS for Linux, which changes the system theme to be Chrome OS's grey theme with branding and titlebar buttons. Also you will see a Silverfox Chrome OS photo in about:Addons. - All error pages containers have been fixed. No longer they cutoff if a small resolution. - Added more scenario to error pages. - Fixed the hompage being slightly too low for small resolutions/resizes.
1 parent a67a048 commit a7c3ad2

33 files changed

+1179
-809
lines changed

theme/chrome/JS/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.1
1+
0.7.2
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

theme/chrome/css/UI/browser.css

+9
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,13 @@
2727
border-bottom: none !important;
2828
margin-top: 0px !important;
2929
}
30+
31+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
32+
#browser {
33+
border-right: none !important;
34+
border-left: none !important;
35+
border-bottom: none !important;
36+
margin-top: -1px !important;
37+
}
38+
}
3039
}

theme/chrome/css/UI/navbar.css

+74-13
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@
1717
/* Remove the borders for Linux if native titlebars are enabled */
1818
@media (-moz-platform: linux) {
1919
:root:not([tabsintitlebar="true"]) #nav-bar {
20-
border-right: none !important;
21-
border-left: none !important;
22-
border-radius: 0px !important;
23-
}
20+
border-right: none !important;
21+
border-left: none !important;
22+
border-radius: 0px !important;
23+
}
24+
25+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
26+
#nav-bar {
27+
border-right: none !important;
28+
border-left: none !important;
29+
border-radius: 0px !important;
30+
}
31+
}
2432
}
2533

2634
/* When in fullscreen, remove left and right borders and radius */
@@ -50,18 +58,26 @@ background-color: unset !important;
5058
/* Personal Toolbar (bookmarks bar) */
5159

5260
#PersonalToolbar {
53-
margin-top: 2.5px !important;
54-
border-bottom: 1px solid #b2b2b2 !important;
55-
border-right: 2px solid #b2b2b2 !important;
56-
border-left: 2px solid #b2b2b2 !important;
61+
margin-top: 2.5px !important;
62+
border-bottom: 1px solid #b2b2b2 !important;
63+
border-right: 2px solid #b2b2b2 !important;
64+
border-left: 2px solid #b2b2b2 !important;
5765
}
5866

5967
/* Remove the borders for Linux if native titlebars are enabled */
6068
@media (-moz-platform: linux) {
6169
:root:not([tabsintitlebar="true"]) #PersonalToolbar {
62-
border-right: none !important;
63-
border-left: none !important;
64-
border-radius: 0px !important;
70+
border-right: none !important;
71+
border-left: none !important;
72+
border-radius: 0px !important;
73+
}
74+
75+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
76+
#PersonalToolbar {
77+
border-right: none !important;
78+
border-left: none !important;
79+
border-radius: 0px !important;
80+
}
6581
}
6682
}
6783

@@ -333,11 +349,19 @@ z-index: 90 !important;
333349
#nav-bar[home="false"] #identity-box[class="verifiedDomain"]:after {
334350
margin-top: 2px !important;
335351
}
352+
353+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
354+
#nav-bar[home="false"] #identity-box[class="verifiedDomain"]:after {
355+
margin-top: 0px !important;
356+
margin-left: -1px !important;
357+
}
358+
}
336359

337360
:root:not([tabsintitlebar="true"]) #nav-bar[home="false"] #identity-box[class="verifiedDomain"]:after {
338361
margin-top: 0px !important;
339362
margin-left: -1px !important;
340363
}
364+
341365
}
342366

343367
@media (-moz-platform: macos) {
@@ -364,7 +388,14 @@ z-index: 90 !important;
364388
#nav-bar[home="true"] #identity-box[class="verifiedDomain"]:after {
365389
margin-top: 2px !important;
366390
}
367-
391+
392+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
393+
#nav-bar[home="true"] #identity-box[class="verifiedDomain"]:after {
394+
margin-top: 0px !important;
395+
margin-left: -1px !important;
396+
}
397+
}
398+
368399
:root:not([tabsintitlebar="true"]) #nav-bar[home="true"] #identity-box[class="verifiedDomain"]:after {
369400
margin-top: 0px !important;
370401
margin-left: -1px !important;
@@ -396,10 +427,23 @@ z-index: 999 !important;
396427
margin-top: 3px !important;
397428
margin-left: 2px !important;
398429
}
430+
431+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
432+
#nav-bar[home="false"] #identity-box[class="verifiedDomain certUserOverridden"]:after {
433+
margin-left: 0px !important;
434+
}
435+
}
399436

400-
:root:not([tabsintitlebar="true"]) #nav-bar[home="false"] #identity-box[class="verifiedDomain certUserOverridden"]:after {
437+
:root:not([tabsintitlebar="true"]) #nav-bar[home="false"] #identity-box[class="verifiedDomain certUserOverridden"]:after {
401438
margin-left: 0px !important;
402439
}
440+
441+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
442+
:root:not([sizemode="normal"]) #nav-bar[home="false"] #identity-box[class="verifiedDomain certUserOverridden"]:after {
443+
margin-left: 3px !important;
444+
}
445+
}
446+
403447
}
404448

405449
@media (-moz-platform: macos) {
@@ -427,6 +471,18 @@ z-index: 999 !important;
427471
margin-top: 3px !important;
428472
margin-left: 3px !important;
429473
}
474+
475+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
476+
#nav-bar[home="true"] #identity-box[class="verifiedDomain certUserOverridden"]:after {
477+
margin-left: 1px !important;
478+
}
479+
480+
:root:not([sizemode="normal"]) #nav-bar[home="true"] #identity-box[class="verifiedDomain certUserOverridden"]:after {
481+
margin-left: 3px !important;
482+
}
483+
484+
}
485+
430486

431487
:root:not([tabsintitlebar="true"]) #nav-bar[home="true"] #identity-box[class="verifiedDomain certUserOverridden"]:after {
432488
margin-left: 0.5px !important;
@@ -590,6 +646,11 @@ background-position: 5px 10px !important;
590646
background-size: 18px !important;
591647
color: transparent;
592648
}
649+
650+
.urlbarView-row[type=bookmark] .urlbarView-favicon {
651+
visibility: hidden !important;
652+
}
653+
593654
.urlbarView-row[type="bookmark"]:hover {
594655
background-position: 20px 4px !important;
595656
}

theme/chrome/css/UI/osbehaviour.css

+33-7
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
background-image: linear-gradient(to bottom, #b4bec9 0%, #a0aebe 100%) !important;
4747
opacity: 0.95 !important;
4848
}
49-
50-
51-
5249

5350

5451
:root:not(:-moz-lwtheme) .tabbrowser-tab[visuallyselected="true"] .tab-background,
@@ -353,7 +350,7 @@
353350

354351
/* Linux System Theme */
355352
/* Tabs */
356-
353+
@supports not (-moz-bool-pref("silverfox.beChromeOS")) {
357354
:root:not(:-moz-lwtheme) .tab-text {
358355
color: -moz-DialogText !important;
359356
}
@@ -386,6 +383,7 @@
386383
background: color-mix(in srgb, white 14%, -moz-dialog) !important;
387384
}
388385

386+
389387
/* NavBar */
390388
:root:not(:-moz-lwtheme) #nav-bar {
391389
background-image: linear-gradient(to top,
@@ -400,7 +398,7 @@
400398
-moz-dialog 0%,
401399
color-mix(in srgb, black 4%, -moz-dialog) 100%) !important;
402400
}
403-
401+
}
404402

405403
/* Light theme */
406404

@@ -416,6 +414,35 @@ menupopup {
416414
--panel-color: FieldText !important;
417415
--panel-border-color: ThreeDShadow !important;
418416
}
417+
418+
419+
/* Chrome OS mode */
420+
421+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
422+
423+
:root:not(:-moz-lwtheme) #TabsToolbar {
424+
background-image: linear-gradient(to top, #c4c4c4 0%, #c1c5c0 100%) !important;
425+
}
426+
427+
:root:not(:-moz-lwtheme) #navigator-toolbox,
428+
:root:not(:-moz-lwtheme) #navigator-toolbox-background {
429+
background: #c1c5c0 !important;
430+
}
431+
432+
:root[privatebrowsingmode="temporary"][native="true"] #TabsToolbar {
433+
background-image: linear-gradient(to top, #526d92 0%, #526d92 10%, #617a9c 97%, #617a9c 100%) !important;
434+
}
435+
436+
:root[privatebrowsingmode="temporary"][native="true"] #navigator-toolbox,
437+
:root[privatebrowsingmode="temporary"][native="true"] #navigator-toolbox-background {
438+
background: #617a9c !important;
439+
}
440+
441+
:root:not(:-moz-lwtheme) #PersonalToolbar,
442+
:root:not(:-moz-lwtheme) .tab-text {
443+
color: black !important;
444+
}
445+
}
419446
}
420447

421448
/* MacOS */
@@ -461,6 +488,5 @@ menupopup {
461488
:root:not(:-moz-lwtheme) #PersonalToolbar,
462489
:root[style*="--lwt-accent-color: rgb(240, 240, 244)"] #PersonalToolbar {
463490
background-image: linear-gradient(to top, #cecfce 0%, #cecfcf 100%) !important;
464-
}
465-
491+
}
466492
}

theme/chrome/css/UI/tabstoolbar.css

+24
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
:root:not([tabsintitlebar="true"]) #TabsToolbar {
1212
margin-top: -4px !important;
1313
}
14+
15+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
16+
#TabsToolbar {
17+
margin-top: 2px !important;
18+
}
19+
}
1420
}
1521

1622

@@ -296,6 +302,24 @@ tab:where(:first-of-type[visuallyselected="true"]) {
296302

297303
}
298304

305+
@media (-moz-platform: linux) {
306+
307+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
308+
309+
#tabs-newtab-button, #TabsToolbar #new-tab-button {
310+
background-image: url(../../assets/images/topbar/newtab_original.png) !important;
311+
background-repeat: no-repeat !important;
312+
position: relative !important;
313+
top: 5px !important;
314+
right: 16px;
315+
list-style-image: none !important;
316+
visibility: visible;
317+
transform: scale(0.78) !important;
318+
filter: grayscale(30%) brightness(505%) !important;
319+
}
320+
}
321+
}
322+
299323
#tabs-newtab-button:hover, #TabsToolbar #new-tab-button:hover {
300324
background-color: transparent !important;
301325
border: 0px solid transparent !important;

theme/chrome/css/UI/titlebuttons.css

+61-1
Original file line numberDiff line numberDiff line change
@@ -680,4 +680,64 @@
680680
background: url(../../assets/images/topbar/linux/restore_pressed.png) !important;
681681
}
682682
}
683-
}
683+
684+
/* Chrome OS */
685+
@supports (-moz-bool-pref("silverfox.beChromeOS")) {
686+
687+
.titlebar-buttonbox {
688+
margin-top: 20px !important;
689+
}
690+
691+
:root:not([sizemode="normal"]) .titlebar-buttonbox {
692+
margin-top: -2px !important;
693+
}
694+
695+
.titlebar-close,
696+
.titlebar-restore,
697+
.titlebar-min,
698+
.titlebar-max {
699+
min-width: 35px !important;
700+
max-width: 35px !important;
701+
height: 36px !important;
702+
}
703+
704+
.titlebar-close {
705+
background: url(../../assets/images/topbar/chromeos/close.png) !important;
706+
}
707+
.titlebar-min {
708+
background: url(../../assets/images/topbar/chromeos/minimize.png) !important;
709+
}
710+
.titlebar-max {
711+
background: url(../../assets/images/topbar/chromeos/maximize.png) !important;
712+
}
713+
.titlebar-restore {
714+
background: url(../../assets/images/topbar/chromeos/maximize.png) !important;
715+
}
716+
717+
/* Hovers */
718+
.titlebar-close:hover {
719+
background: url(../../assets/images/topbar/chromeos/close_hover.png) !important;
720+
}
721+
.titlebar-min:hover {
722+
background: url(../../assets/images/topbar/chromeos/minimize_hover.png) !important;
723+
}
724+
.titlebar-max:hover {
725+
background: url(../../assets/images/topbar/chromeos/maximize_hover.png) !important;
726+
}
727+
.titlebar-restore:hover {
728+
background: url(../../assets/images/topbar/chromeos/restore_hover.png) !important;
729+
}
730+
731+
/* Pressed */
732+
.titlebar-close:hover:active {
733+
background: url(../../assets/images/topbar/chromeos/close_pressed.png) !important;
734+
}
735+
.titlebar-min:hover:active {
736+
background: url(../../assets/images/topbar/chromeos/minimize_pressed.png) !important;
737+
}
738+
.titlebar-restore:hover:active,
739+
.titlebar-max:hover:active {
740+
background: url(../../assets/images/topbar/chromeos/maximize_pressed.png) !important;
741+
}
742+
}
743+
}

theme/chrome/css/error pages/about-neterror-connectionfailure.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ body {
1010
box-shadow: 5px 5px 8px 2px rgba(0,0,0,0.29) !important;
1111
font-size: 12px !important;
1212
min-width: 780px !important;
13-
margin-top: -650px !important;
1413
height: 160px !important;
1514
color: black !important;
15+
position: fixed !important;
16+
top: 20% !important;
17+
left: 50% !important;
18+
transform: translate(-50%, -20%) !important;
1619
}
1720

1821

theme/chrome/css/error pages/about-neterror-cspblocked.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ body {
1010
box-shadow: 5px 5px 8px 2px rgba(0,0,0,0.29) !important;
1111
font-size: 12px !important;
1212
min-width: 780px !important;
13-
margin-top: -400px !important;
1413
color: black !important;
14+
position: fixed !important;
15+
top: 20% !important;
16+
left: 50% !important;
17+
transform: translate(-50%, -20%) !important;
1518
}
1619

1720

theme/chrome/css/error pages/about-neterror-dnsnotfound.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ body {
1010
box-shadow: 5px 5px 8px 2px rgba(0,0,0,0.29) !important;
1111
font-size: 12px !important;
1212
min-width: 780px !important;
13-
margin-top: -400px !important;
1413
color: black !important;
14+
position: fixed !important;
15+
top: 20% !important;
16+
left: 50% !important;
17+
transform: translate(-50%, -20%) !important;
1518
}
1619

1720
h1[data-l10n-id="dnsNotFound-title"] {

0 commit comments

Comments
 (0)