From 87a639df2b39dc89f4d589a376e3ee482dc3591f Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 30 Jul 2019 11:37:52 +0200 Subject: [PATCH] Mobile: Disabled solarized themes on mobile --- ReactNativeClient/lib/components/note-list.js | 2 +- ReactNativeClient/lib/models/Setting.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ReactNativeClient/lib/components/note-list.js b/ReactNativeClient/lib/components/note-list.js index 880d9ce15..916dba7f5 100644 --- a/ReactNativeClient/lib/components/note-list.js +++ b/ReactNativeClient/lib/components/note-list.js @@ -123,7 +123,7 @@ class NoteListComponent extends Component { } else { const noItemMessage = _('There are currently no notes. Create one by clicking on the (+) button.'); return {noItemMessage}; - } + } } } } diff --git a/ReactNativeClient/lib/models/Setting.js b/ReactNativeClient/lib/models/Setting.js index 547bd4094..157bfd449 100644 --- a/ReactNativeClient/lib/models/Setting.js +++ b/ReactNativeClient/lib/models/Setting.js @@ -217,8 +217,10 @@ class Setting extends BaseModel { let output = {}; output[Setting.THEME_LIGHT] = _('Light'); output[Setting.THEME_DARK] = _('Dark'); - output[Setting.THEME_SOLARIZED_LIGHT] = _('Solarised Light'); - output[Setting.THEME_SOLARIZED_DARK] = _('Solarised Dark'); + if (platform === 'desktop') { + output[Setting.THEME_SOLARIZED_LIGHT] = _('Solarised Light'); + output[Setting.THEME_SOLARIZED_DARK] = _('Solarised Dark'); + } return output; }, },