Connection State: Minimized by default, better contrast

This commit is contained in:
Alexander Zinchuk 2022-02-02 22:49:31 +01:00
parent 4b9e9fd67c
commit 8a5aa4ac46
3 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@
}
&.bg-light::before {
background: rgba(255, 255, 255, 0.25);
background: rgba(255, 255, 255, 0.4);
}
}

View File

@ -124,6 +124,7 @@ function readCache(initialState: GlobalState): GlobalState {
}
function migrateCache(cached: GlobalState, initialState: GlobalState) {
// Migrate from legacy setting names
if ('shouldAutoDownloadMediaFromContacts' in cached.settings.byKey) {
const {
shouldAutoDownloadMediaFromContacts,
@ -150,6 +151,7 @@ function migrateCache(cached: GlobalState, initialState: GlobalState) {
};
}
// Pre-fill settings with defaults
cached.settings.byKey = {
...initialState.settings.byKey,
...cached.settings.byKey,

View File

@ -168,7 +168,7 @@ export const INITIAL_STATE: GlobalState = {
language: 'en',
timeFormat: '24h',
wasTimeFormatSetManually: false,
isConnectionStatusMinimized: false,
isConnectionStatusMinimized: true,
},
themes: {
light: {