1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:15:55 +00:00

implement automatic night mode detection using MQL

add separate light.css to force light theme
remove manual night mode toggle and related code
This commit is contained in:
Andrew Dolgov
2019-12-12 20:09:43 +03:00
parent 9c0235ab66
commit 0237dee980
9 changed files with 30 additions and 36 deletions

View File

@@ -513,9 +513,6 @@ require(["dojo/_base/kernel",
Headlines.renderAgain();
});
};
this.hotkey_actions["toggle_night_mode"] = function () {
App.toggleNightMode();
};
},
onActionSelected: function(opid) {
switch (opid) {
@@ -581,9 +578,6 @@ require(["dojo/_base/kernel",
alert(__("Widescreen is not available in combined mode."));
}
break;
case "qmcToggleNightMode":
App.toggleNightMode();
break;
case "qmcHKhelp":
App.helpDialog("main");
break;