Remove iOS theme in favor of plain light/dark themes
This commit is contained in:
parent
19cbfae127
commit
fc5c52fbdf
16 changed files with 51 additions and 623 deletions
|
@ -114,6 +114,17 @@
|
|||
}
|
||||
});
|
||||
|
||||
function mapOldThemeToNew(theme) {
|
||||
switch (theme) {
|
||||
case 'android-dark':
|
||||
return 'dark';
|
||||
case 'android':
|
||||
case 'ios':
|
||||
default:
|
||||
return 'light';
|
||||
}
|
||||
}
|
||||
|
||||
// We need this 'first' check because we don't want to start the app up any other time
|
||||
// than the first time. And storage.fetch() will cause onready() to fire.
|
||||
let first = true;
|
||||
|
@ -171,6 +182,10 @@
|
|||
},
|
||||
};
|
||||
|
||||
const themeSetting = window.Events.getThemeSetting();
|
||||
const newThemeSetting = mapOldThemeToNew(themeSetting);
|
||||
window.Events.setThemeSetting(newThemeSetting);
|
||||
|
||||
try {
|
||||
await ConversationController.load();
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue