Browse Source

add qmcToggleNightMode to actions dropdown

Andrew Dolgov 1 year ago
parent
commit
fca78f7417
2 changed files with 4 additions and 0 deletions
  1. 1 0
      index.php
  2. 3 0
      js/tt-rss.js

+ 1 - 0
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

+ 3 - 0
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;