HARDCODE theme to be dark, even if an old config is set to be light mode enabled

pull/733/head
Audric Ackermann 6 years ago
parent 24bf436b0c
commit 2194a3a537

@ -321,7 +321,7 @@
window.Events = { window.Events = {
getDeviceName: () => textsecure.storage.user.getDeviceName(), getDeviceName: () => textsecure.storage.user.getDeviceName(),
getThemeSetting: () => storage.get('theme-setting', 'dark'), getThemeSetting: () => 'dark', // storage.get('theme-setting', 'dark')
setThemeSetting: value => { setThemeSetting: value => {
storage.put('theme-setting', value); storage.put('theme-setting', value);
onChangeTheme(); onChangeTheme();

@ -25,7 +25,7 @@
}, },
applyTheme() { applyTheme() {
const iOS = storage.get('userAgent') === 'OWI'; const iOS = storage.get('userAgent') === 'OWI';
const theme = storage.get('theme-setting') || 'dark'; const theme = 'dark'; // storage.get('theme-setting') || 'dark';
this.$el this.$el
.removeClass('light-theme') .removeClass('light-theme')
.removeClass('dark-theme') .removeClass('dark-theme')

Loading…
Cancel
Save