mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
Bug 1778834 - Fix a typo in AccentColor handling. r=dholbert
If we're using the theme accent then we should _not_ use the standin. Differential Revision: https://phabricator.services.mozilla.com/D151442
This commit is contained in:
parent
f12a3fda65
commit
a4adec1fe6
9
layout/reftests/bugs/1778834-ref.html
Normal file
9
layout/reftests/bugs/1778834-ref.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!doctype html>
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: #0060df;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
10
layout/reftests/bugs/1778834.html
Normal file
10
layout/reftests/bugs/1778834.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<title>AccentColor without native accent</title>
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: AccentColor;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
@ -2129,3 +2129,4 @@ skip-if(Android) test-pref(ui.textScaleFactor,150) test-pref(browser.display.os-
|
||||
# test-pref(ui.textScaleFactor,50) test-pref(browser.display.os-zoom-behavior,1) == 1773633.html 1773633-full-zoom.html
|
||||
# This works (but not on macOS for some reason).
|
||||
skip-if(Android) test-pref(ui.textScaleFactor,50) test-pref(browser.display.os-zoom-behavior,1) != 1773633.html 1773633.html
|
||||
test-pref(widget.non-native-theme.use-theme-accent,false) == 1778834.html 1778834-ref.html
|
||||
|
@ -1183,7 +1183,7 @@ static bool ShouldUseStandinsForNativeColorForNonNativeTheme(
|
||||
}
|
||||
// There are platforms where we want the content-exposed accent color to be
|
||||
// the windows blue rather than the system accent color, for now.
|
||||
return StaticPrefs::widget_non_native_theme_use_theme_accent() &&
|
||||
return !StaticPrefs::widget_non_native_theme_use_theme_accent() &&
|
||||
(aColor == LookAndFeel::ColorID::Accentcolor ||
|
||||
aColor == LookAndFeel::ColorID::Accentcolortext);
|
||||
}();
|
||||
|
Loading…
x
Reference in New Issue
Block a user