From f94720c34b38d0157fa2c19c28edcb27840d5912 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Sat, 4 Jun 2022 07:06:38 +0200 Subject: [PATCH] added `compactWidth` setting --- packages/app/constants/defaultSettings.json | 1 + packages/app/constants/settings/apparence/index.jsx | 10 ++++++++++ packages/app/constants/settingsGroupsDecorator.json | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/packages/app/constants/defaultSettings.json b/packages/app/constants/defaultSettings.json index 8c86a187..eb8734c2 100644 --- a/packages/app/constants/defaultSettings.json +++ b/packages/app/constants/defaultSettings.json @@ -10,6 +10,7 @@ "haptic_feedback": false, "collapseOnLooseFocus": true, "auto_darkMode": false, + "compactWidth": false, "language": "en", "sidebarKeys": [ "main", diff --git a/packages/app/constants/settings/apparence/index.jsx b/packages/app/constants/settings/apparence/index.jsx index 64706f2d..4b585d3b 100644 --- a/packages/app/constants/settings/apparence/index.jsx +++ b/packages/app/constants/settings/apparence/index.jsx @@ -6,6 +6,16 @@ import { UnsplashBrowser } from "./components" import "./index.less" export default [ + { + "id": "compactWidth", + "title": "Compact Width", + "description": "Sets the width of the app to a compact width to facilitate the vision of components.", + "component": "Switch", + "icon": "MdCompress", + "group": "layout", + "experimental": true, + "storaged": true + }, { "id": "reduceAnimations", "storaged": true, diff --git a/packages/app/constants/settingsGroupsDecorator.json b/packages/app/constants/settingsGroupsDecorator.json index 0b45a512..be176b9c 100644 --- a/packages/app/constants/settingsGroupsDecorator.json +++ b/packages/app/constants/settingsGroupsDecorator.json @@ -22,5 +22,9 @@ "account.profile": { "title": "Profile", "icon": "Book" + }, + "layout": { + "title": "Layout", + "icon": "Layers" } } \ No newline at end of file