From 03123ee729eadd0fcafd5565c4bb251ea677f62b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 18 Jan 2023 12:15:26 +0100 Subject: [PATCH] Fix wrong label set for dark mode switch --- api/js/framework/fw_desktop.js | 4 ++-- pixelegg/js/fw_mobile.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/js/framework/fw_desktop.js b/api/js/framework/fw_desktop.js index 192348ee16..abec32be6b 100644 --- a/api/js/framework/fw_desktop.js +++ b/api/js/framework/fw_desktop.js @@ -549,12 +549,12 @@ import "sortablejs/Sortable.min.js"; if (state == 1) { node.firstElementChild.classList.remove('darkmode_on'); - node.firstElementChild.title = egw.lang('light mode'); + node.firstElementChild.title = egw.lang('dark mode'); } else { node.firstElementChild.classList.add('darkmode_on'); - node.firstElementChild.title = egw.lang('dark mode'); + node.firstElementChild.title = egw.lang('light mode'); } } }); diff --git a/pixelegg/js/fw_mobile.js b/pixelegg/js/fw_mobile.js index 0b7e55da51..eff854cf58 100644 --- a/pixelegg/js/fw_mobile.js +++ b/pixelegg/js/fw_mobile.js @@ -1059,12 +1059,12 @@ import {tapAndSwipe} from "../../api/js/tapandswipe"; { node.classList.remove('darkmode_on'); if (node.hasChildNodes()) node.children[0].classList.remove('darkmode_on'); - node.title = egw.lang('light mode'); + node.title = egw.lang('dark mode'); } else { node.classList.add('darkmode_on'); - node.title = egw.lang('dark mode'); + node.title = egw.lang('light mode'); if (node.hasChildNodes()) node.children[0].classList.add('darkmode_on'); } }