Skip to content

Commit 7c18b1d

Browse files
committed
no-bug - Add support for accent color on titlebar preference for windows 11, c=no-component, t=feat
1 parent 6663a47 commit 7c18b1d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/browser/base/content/browser-xhtml.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml
2-
index 8f8c5536cb6e54300897180ca3f950974c60e930..79305485631f14712d8b2674f477b641ec53fcd6 100644
2+
index 8f8c5536cb6e54300897180ca3f950974c60e930..403f821f561a2dfcf6ad23db7e61712aac867716 100644
33
--- a/browser/base/content/browser.xhtml
44
+++ b/browser/base/content/browser.xhtml
55
@@ -26,6 +26,7 @@
@@ -26,7 +26,7 @@ index 8f8c5536cb6e54300897180ca3f950974c60e930..79305485631f14712d8b2674f477b641
2626
</vbox>
2727
</html:template>
2828

29-
+<hbox id="zen-main-app-wrapper" flex="1" persist="zen-compact-mode">
29+
+<hbox id="zen-main-app-wrapper" flex="1" persist="zen-compact-mode" class="browser-toolbox-background">
3030
#include navigator-toolbox.inc.xhtml
3131

3232
#include browser-box.inc.xhtml

src/browser/themes/windows/browser-css.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css
2-
index 007aec91e089a1d2df20235890b268b820b0a529..ac0592cbcec62ffefb58b491dff48749852f2d88 100644
2+
index 007aec91e089a1d2df20235890b268b820b0a529..a03a0d7b7837f6315f47f76a4491bf08d96e00e0 100644
33
--- a/browser/themes/windows/browser.css
44
+++ b/browser/themes/windows/browser.css
55
@@ -31,7 +31,6 @@
@@ -10,3 +10,12 @@ index 007aec91e089a1d2df20235890b268b820b0a529..ac0592cbcec62ffefb58b491dff48749
1010
}
1111
}
1212

13+
@@ -56,7 +55,7 @@
14+
15+
/* This is needed for Windows 10, see bug 1961257 */
16+
@media (-moz-windows-accent-color-in-titlebar) {
17+
- :root[customtitlebar][sizemode="normal"] #navigator-toolbox {
18+
+ :root[customtitlebar][sizemode="normal"] #browser {
19+
border-top: .5px solid ActiveBorder;
20+
&:-moz-window-inactive {
21+
border-top-color: InactiveBorder;

0 commit comments

Comments
 (0)