From be663f31ecff014e9572ed716008ce13be60db0b Mon Sep 17 00:00:00 2001 From: srgooglo Date: Wed, 2 Mar 2022 20:33:52 +0100 Subject: [PATCH] update settings --- packages/app/constants/settings.jsx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/packages/app/constants/settings.jsx b/packages/app/constants/settings.jsx index 9be748a9..3abf1634 100644 --- a/packages/app/constants/settings.jsx +++ b/packages/app/constants/settings.jsx @@ -98,8 +98,33 @@ export default [ "id": "collapseOnLooseFocus", "group": "sidebar", "type": "Switch", + "icon": "Columns", "title": "Auto Collapse", "description": "Collapse the sidebar when loose focus", + "emitEvent": "settingChanged.sidebar_collapse", + }, + { + "id": "autoCollapseDelay", + "group": "sidebar", + "type": "Slider", + "icon": "Wh", + "dependsOn": { + "collapseOnLooseFocus": true + }, + "title": "Auto Collapse timeout", + "description": "Set the delay before the sidebar is collapsed", + "props": { + min: 0, + max: 2000, + step: 100, + marks: { + 0: "No delay", + 600: "0.6s", + 1000: "1s", + 1500: "1.5s", + 2000: "2s", + } + } }, { "id": "reduceAnimations",