From 645f23a9a7c28dfa0271888e419ff13b4b4b2986 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Thu, 13 Jan 2022 19:45:48 +0530 Subject: [PATCH] fix: Add toggle theme as standard dropdown option - For new sites toggle theme was not available. It was added via patch for old sites. --- frappe/utils/install.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frappe/utils/install.py b/frappe/utils/install.py index 5ca8c4878a..cf76c9fffc 100644 --- a/frappe/utils/install.py +++ b/frappe/utils/install.py @@ -219,6 +219,12 @@ def add_standard_navbar_items(): 'action': 'frappe.ui.toolbar.toggle_full_width()', 'is_standard': 1 }, + { + 'item_label': 'Toggle Theme', + 'item_type': 'Action', + 'action': 'new frappe.ui.ThemeSwitcher().show()', + 'is_standard': 1 + }, { 'item_label': 'Background Jobs', 'item_type': 'Route',