summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php1
-rw-r--r--js/tt-rss.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 2dc4bb762..126f731b7 100644
--- a/index.php
+++ b/index.php
@@ -238,6 +238,7 @@
<div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcShowOnlyUnread')"><?php echo __('(Un)hide read feeds') ?></div>
<div dojoType="dijit.MenuItem" disabled="1"><?php echo __('Other actions:') ?></div>
<div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcToggleWidescreen')"><?php echo __('Toggle widescreen mode') ?></div>
+ <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcToggleNightMode')"><?php echo __('Toggle night mode') ?></div>
<div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcHKhelp')"><?php echo __('Keyboard shortcuts help') ?></div>
<?php
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 7cb4832eb..890e35b55 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -534,6 +534,9 @@ require(["dojo/_base/kernel",
alert(__("Widescreen is not available in combined mode."));
}
break;
+ case "qmcToggleNightMode":
+ App.toggleNightMode();
+ break;
case "qmcHKhelp":
App.helpDialog("main");
break;