diff options
author | Amine Mouafik <amine@mouafik.fr> | 2020-02-25 04:24:55 +0100 |
---|---|---|
committer | Amine Mouafik <amine@mouafik.fr> | 2020-02-25 04:24:55 +0100 |
commit | 80fc23b570ef048df55e04ba3e8af695afc6c37b (patch) | |
tree | 2329aee86094cb0fc79b1e2fffa7a32e4f301328 /src/config.js | |
parent | Fix lock at startup (diff) | |
parent | Avoid AppVeyor builds on i18n-only commits (diff) | |
download | ferdium-app-80fc23b570ef048df55e04ba3e8af695afc6c37b.tar.gz ferdium-app-80fc23b570ef048df55e04ba3e8af695afc6c37b.tar.zst ferdium-app-80fc23b570ef048df55e04ba3e8af695afc6c37b.zip |
Merge branch 'develop' into refactor/lock
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/config.js b/src/config.js index 895852ed8..9b77aa9a5 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -45,6 +45,28 @@ export const HIBERNATION_STRATEGIES = { | |||
45 | 3600: 'Extemely Slow Hibernation (1hour)', | 45 | 3600: 'Extemely Slow Hibernation (1hour)', |
46 | }; | 46 | }; |
47 | 47 | ||
48 | export const SIDEBAR_WIDTH = { | ||
49 | 35: 'Extemely slim sidebar', | ||
50 | 45: 'Very slim sidebar', | ||
51 | 55: 'Slim sidebar', | ||
52 | 68: 'Normal sidebar', | ||
53 | 80: 'Wide sidebar', | ||
54 | 90: 'Very wide sidebar', | ||
55 | 100: 'Extemely wide sidebar', | ||
56 | }; | ||
57 | |||
58 | export const ICON_SIZES = { | ||
59 | 0: 'Very small icons', | ||
60 | 10: 'Small icons', | ||
61 | 20: 'Normal icons', | ||
62 | 30: 'Large icons', | ||
63 | 40: 'Very large icons', | ||
64 | }; | ||
65 | // We need a bias to push all icon sizes into positive numbers | ||
66 | // otherwise the settings screen won't sort the sizes correctly. | ||
67 | // The bias should always be the "Normal icons" value | ||
68 | export const iconSizeBias = 20; | ||
69 | |||
48 | export const DEFAULT_APP_SETTINGS = { | 70 | export const DEFAULT_APP_SETTINGS = { |
49 | autoLaunchInBackground: false, | 71 | autoLaunchInBackground: false, |
50 | runInBackground: true, | 72 | runInBackground: true, |
@@ -83,6 +105,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
83 | adaptableDarkMode: true, | 105 | adaptableDarkMode: true, |
84 | accentColor: '#7367f0', | 106 | accentColor: '#7367f0', |
85 | serviceRibbonWidth: 68, | 107 | serviceRibbonWidth: 68, |
108 | iconSize: iconSizeBias, | ||
86 | sentry: false, | 109 | sentry: false, |
87 | }; | 110 | }; |
88 | 111 | ||