mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Disable auto activation of dark theme in next release
Until a fully usable dark theme is available. uBO's incomplete dark theme can still be forced by setting advanced setting `uiTheme` to `dark`.
This commit is contained in:
parent
eb8433cb19
commit
56cd238ad4
1 changed files with 4 additions and 3 deletions
|
|
@ -118,9 +118,10 @@ DOMListFactory.nodeFromSelector = function(selector) {
|
||||||
if ( window.matchMedia('(min-resolution: 150dpi)').matches ) {
|
if ( window.matchMedia('(min-resolution: 150dpi)').matches ) {
|
||||||
root.classList.add('hidpi');
|
root.classList.add('hidpi');
|
||||||
}
|
}
|
||||||
if ( window.matchMedia('(prefers-color-scheme: dark)').matches ) {
|
// TODO: re-enable once there is a fully functional dark theme
|
||||||
root.classList.add('dark');
|
//if ( window.matchMedia('(prefers-color-scheme: dark)').matches ) {
|
||||||
}
|
// root.classList.add('dark');
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue