diff options
author | 2020-02-26 09:54:35 +0100 | |
---|---|---|
committer | 2020-02-26 09:54:35 +0100 | |
commit | 97d9f482956845cf139c6ce4cbd8480cb1a8bc83 (patch) | |
tree | 50b6658adc6cf768377a2b855bfb1af6f0f43568 /src/config.js | |
parent | Add migration from old setting (diff) | |
parent | Avoid AppVeyor builds on i18n-only commits (diff) | |
download | ferdium-app-97d9f482956845cf139c6ce4cbd8480cb1a8bc83.tar.gz ferdium-app-97d9f482956845cf139c6ce4cbd8480cb1a8bc83.tar.zst ferdium-app-97d9f482956845cf139c6ce4cbd8480cb1a8bc83.zip |
Merge branch 'develop' into feat/#270
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 83b79b689..283c20f84 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -51,6 +51,28 @@ export const NAVIGATION_BAR_BEHAVIOURS = { | |||
51 | never: 'Never show navigation bar', | 51 | never: 'Never show navigation bar', |
52 | }; | 52 | }; |
53 | 53 | ||
54 | export const SIDEBAR_WIDTH = { | ||
55 | 35: 'Extemely slim sidebar', | ||
56 | 45: 'Very slim sidebar', | ||
57 | 55: 'Slim sidebar', | ||
58 | 68: 'Normal sidebar', | ||
59 | 80: 'Wide sidebar', | ||
60 | 90: 'Very wide sidebar', | ||
61 | 100: 'Extemely wide sidebar', | ||
62 | }; | ||
63 | |||
64 | export const ICON_SIZES = { | ||
65 | 0: 'Very small icons', | ||
66 | 10: 'Small icons', | ||
67 | 20: 'Normal icons', | ||
68 | 30: 'Large icons', | ||
69 | 40: 'Very large icons', | ||
70 | }; | ||
71 | // We need a bias to push all icon sizes into positive numbers | ||
72 | // otherwise the settings screen won't sort the sizes correctly. | ||
73 | // The bias should always be the "Normal icons" value | ||
74 | export const iconSizeBias = 20; | ||
75 | |||
54 | export const DEFAULT_APP_SETTINGS = { | 76 | export const DEFAULT_APP_SETTINGS = { |
55 | autoLaunchInBackground: false, | 77 | autoLaunchInBackground: false, |
56 | runInBackground: true, | 78 | runInBackground: true, |
@@ -89,6 +111,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
89 | adaptableDarkMode: true, | 111 | adaptableDarkMode: true, |
90 | accentColor: '#7367f0', | 112 | accentColor: '#7367f0', |
91 | serviceRibbonWidth: 68, | 113 | serviceRibbonWidth: 68, |
114 | iconSize: iconSizeBias, | ||
92 | sentry: false, | 115 | sentry: false, |
93 | navigationBarBehaviour: 'custom', | 116 | navigationBarBehaviour: 'custom', |
94 | }; | 117 | }; |