mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Fix: System Theme - Prepare windows active border #445
This commit is contained in:
parent
f9ea650bdb
commit
d01bb7a257
3 changed files with 17 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
@include output {
|
@include output {
|
||||||
@include AccentColor {
|
@include AccentColor {
|
||||||
body {
|
body {
|
||||||
|
border-color: $accentBorder;
|
||||||
background-color: $accentColor;
|
background-color: $accentColor;
|
||||||
color: $accentTextColor;
|
color: $accentTextColor;
|
||||||
}
|
}
|
||||||
|
|
@ -14,11 +15,13 @@
|
||||||
}
|
}
|
||||||
@include expect {
|
@include expect {
|
||||||
body {
|
body {
|
||||||
|
border-color: ActiveBorder;
|
||||||
background-color: AccentColor;
|
background-color: AccentColor;
|
||||||
color: AccentColorText;
|
color: AccentColorText;
|
||||||
}
|
}
|
||||||
@supports -moz-bool-pref("userChrome.compatibility.accent_color") {
|
@supports -moz-bool-pref("userChrome.compatibility.accent_color") {
|
||||||
body {
|
body {
|
||||||
|
border-color: -moz-accent-color;
|
||||||
background-color: -moz-accent-color;
|
background-color: -moz-accent-color;
|
||||||
color: -moz-accent-color-foreground;
|
color: -moz-accent-color-foreground;
|
||||||
}
|
}
|
||||||
|
|
@ -32,10 +35,12 @@
|
||||||
:root {
|
:root {
|
||||||
@include AccentColor {
|
@include AccentColor {
|
||||||
// Don't use like this!!
|
// Don't use like this!!
|
||||||
|
--uc-accent-border: $accentBorder;
|
||||||
--uc-accent-color: $accentColor;
|
--uc-accent-color: $accentColor;
|
||||||
--uc-accent-text-color: $accentTextColor;
|
--uc-accent-text-color: $accentTextColor;
|
||||||
|
|
||||||
// Use like this
|
// Use like this
|
||||||
|
--uc-accent-border: #{$accentBorder};
|
||||||
--uc-accent-color: #{$accentColor};
|
--uc-accent-color: #{$accentColor};
|
||||||
--uc-accent-text-color: #{$accentTextColor};
|
--uc-accent-text-color: #{$accentTextColor};
|
||||||
}
|
}
|
||||||
|
|
@ -43,15 +48,19 @@
|
||||||
}
|
}
|
||||||
@include expect {
|
@include expect {
|
||||||
:root {
|
:root {
|
||||||
|
--uc-accent-border: $accentBorder;
|
||||||
--uc-accent-color: $accentColor;
|
--uc-accent-color: $accentColor;
|
||||||
--uc-accent-text-color: $accentTextColor;
|
--uc-accent-text-color: $accentTextColor;
|
||||||
|
--uc-accent-border: ActiveBorder;
|
||||||
--uc-accent-color: AccentColor;
|
--uc-accent-color: AccentColor;
|
||||||
--uc-accent-text-color: AccentColorText;
|
--uc-accent-text-color: AccentColorText;
|
||||||
}
|
}
|
||||||
@supports -moz-bool-pref("userChrome.compatibility.accent_color") {
|
@supports -moz-bool-pref("userChrome.compatibility.accent_color") {
|
||||||
:root {
|
:root {
|
||||||
|
--uc-accent-border: $accentBorder;
|
||||||
--uc-accent-color: $accentColor;
|
--uc-accent-color: $accentColor;
|
||||||
--uc-accent-text-color: $accentTextColor;
|
--uc-accent-text-color: $accentTextColor;
|
||||||
|
--uc-accent-border: -moz-accent-color;
|
||||||
--uc-accent-color: -moz-accent-color;
|
--uc-accent-color: -moz-accent-color;
|
||||||
--uc-accent-text-color: -moz-accent-color-foreground;
|
--uc-accent-text-color: -moz-accent-color-foreground;
|
||||||
}
|
}
|
||||||
|
|
@ -64,6 +73,7 @@
|
||||||
@include output {
|
@include output {
|
||||||
@include AccentColor("Highlight") {
|
@include AccentColor("Highlight") {
|
||||||
body {
|
body {
|
||||||
|
border-color: $accentBorder;
|
||||||
background-color: $accentColor;
|
background-color: $accentColor;
|
||||||
color: $accentTextColor;
|
color: $accentTextColor;
|
||||||
}
|
}
|
||||||
|
|
@ -71,11 +81,13 @@
|
||||||
}
|
}
|
||||||
@include expect {
|
@include expect {
|
||||||
body {
|
body {
|
||||||
|
border-color: ActiveBorder;
|
||||||
background-color: AccentColor;
|
background-color: AccentColor;
|
||||||
color: AccentColorText;
|
color: AccentColorText;
|
||||||
}
|
}
|
||||||
@supports -moz-bool-pref("userChrome.compatibility.accent_color") {
|
@supports -moz-bool-pref("userChrome.compatibility.accent_color") {
|
||||||
body {
|
body {
|
||||||
|
border-color: -moz-accent-color;
|
||||||
background-color: Highlight;
|
background-color: Highlight;
|
||||||
color: HighlightText;
|
color: HighlightText;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@
|
||||||
.titlebar-color {
|
.titlebar-color {
|
||||||
@include AccentColor {
|
@include AccentColor {
|
||||||
color: $accentTextColor;
|
color: $accentTextColor;
|
||||||
background-color: $accentColor;
|
background-color: $accentColor; // TODO: Use $accentBorder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
// https://github.com/mozilla/gecko-dev/commit/4c5f20179e8d3b963dc588efb9dc2c7b49e7bb31
|
// https://github.com/mozilla/gecko-dev/commit/4c5f20179e8d3b963dc588efb9dc2c7b49e7bb31
|
||||||
//
|
//
|
||||||
// Need to hard coded #437
|
// Need to hard coded #437
|
||||||
|
$accentBorder: ActiveBorder;
|
||||||
$accentColor: AccentColor;
|
$accentColor: AccentColor;
|
||||||
$accentTextColor: AccentColorText;
|
$accentTextColor: AccentColorText;
|
||||||
|
|
||||||
|
|
@ -11,6 +12,8 @@ $accentTextColor: AccentColorText;
|
||||||
@content;
|
@content;
|
||||||
|
|
||||||
@include Option("userChrome.compatibility.accent_color") {
|
@include Option("userChrome.compatibility.accent_color") {
|
||||||
|
$accentBorder: -moz-accent-color !global;
|
||||||
|
|
||||||
@if $mode == "Highlight" {
|
@if $mode == "Highlight" {
|
||||||
$accentColor: Highlight !global;
|
$accentColor: Highlight !global;
|
||||||
$accentTextColor: HighlightText !global;
|
$accentTextColor: HighlightText !global;
|
||||||
|
|
@ -22,6 +25,7 @@ $accentTextColor: AccentColorText;
|
||||||
|
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
|
$accentBorder: ActiveBorder !global;
|
||||||
$accentColor: AccentColor !global;
|
$accentColor: AccentColor !global;
|
||||||
$accentTextColor: AccentColorText !global;
|
$accentTextColor: AccentColorText !global;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue