feat(zen): use dedicated floating button to stop zen mode

This commit is contained in:
Elian Doran
2025-02-14 18:18:28 +02:00
parent e8f0af8954
commit 2c80607bfd
5 changed files with 52 additions and 3 deletions

View File

@@ -179,7 +179,10 @@ export default class RootCommandExecutor extends Component {
}
toggleZenModeCommand() {
$("body").toggleClass("zen");
const $body = $("body");
$body.toggleClass("zen");
const isEnabled = $body.hasClass("zen");
appContext.triggerEvent("zenModeChanged", { isEnabled });
}
firstTabCommand() {