diff options
-rw-r--r-- | index.php | 1 | ||||
-rw-r--r-- | js/tt-rss.js | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -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; |