1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02: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:
Raymond Hill 2020-11-13 12:15:29 -05:00
parent eb8433cb19
commit 56cd238ad4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -118,9 +118,10 @@ DOMListFactory.nodeFromSelector = function(selector) {
if ( window.matchMedia('(min-resolution: 150dpi)').matches ) {
root.classList.add('hidpi');
}
if ( window.matchMedia('(prefers-color-scheme: dark)').matches ) {
root.classList.add('dark');
}
// TODO: re-enable once there is a fully functional dark theme
//if ( window.matchMedia('(prefers-color-scheme: dark)').matches ) {
// root.classList.add('dark');
//}
}
/******************************************************************************/