aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-02-24 18:16:08 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-02-24 18:16:08 +0100
commit8fe27d40f06aedec6a7c752542908d0bc6af091b (patch)
treeb1b836ca26fb8ea0f4c32144b0335a33f2d1d777 /src/config.js
parentAdd ability to change sidebar width (diff)
downloadferdium-app-8fe27d40f06aedec6a7c752542908d0bc6af091b.tar.gz
ferdium-app-8fe27d40f06aedec6a7c752542908d0bc6af091b.tar.zst
ferdium-app-8fe27d40f06aedec6a7c752542908d0bc6af091b.zip
#153 Add ability to change service icon size
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.js b/src/config.js
index 193ba74e6..9b77aa9a5 100644
--- a/src/config.js
+++ b/src/config.js
@@ -55,6 +55,18 @@ export const SIDEBAR_WIDTH = {
55 100: 'Extemely wide sidebar', 55 100: 'Extemely wide sidebar',
56}; 56};
57 57
58export 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
68export const iconSizeBias = 20;
69
58export const DEFAULT_APP_SETTINGS = { 70export const DEFAULT_APP_SETTINGS = {
59 autoLaunchInBackground: false, 71 autoLaunchInBackground: false,
60 runInBackground: true, 72 runInBackground: true,
@@ -93,6 +105,7 @@ export const DEFAULT_APP_SETTINGS = {
93 adaptableDarkMode: true, 105 adaptableDarkMode: true,
94 accentColor: '#7367f0', 106 accentColor: '#7367f0',
95 serviceRibbonWidth: 68, 107 serviceRibbonWidth: 68,
108 iconSize: iconSizeBias,
96 sentry: false, 109 sentry: false,
97}; 110};
98 111