mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
feat: make auto dark theme available for free users
This commit is contained in:
@@ -207,17 +207,19 @@ export const features = [
|
|||||||
{
|
{
|
||||||
title: 'Personalize & make Notesnook your own',
|
title: 'Personalize & make Notesnook your own',
|
||||||
detail: 'Change app themes to match your style. Custom themes are coming soon.',
|
detail: 'Change app themes to match your style. Custom themes are coming soon.',
|
||||||
pro: true,
|
|
||||||
features: [
|
features: [
|
||||||
{
|
{
|
||||||
highlight: 'Automatic',
|
highlight: 'Automatic',
|
||||||
content: 'dark mode',
|
content: 'dark mode',
|
||||||
icon: 'theme-light-dark'
|
icon: 'theme-light-dark',
|
||||||
|
pro: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
highlight: 'Change accent',
|
highlight: 'Change accent',
|
||||||
content: 'color',
|
content: 'color',
|
||||||
icon: 'invert-colors'
|
icon: 'invert-colors',
|
||||||
|
pro: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ const SettingsAppearanceSection = () => {
|
|||||||
if (SettingsService.get().useSystemTheme) {
|
if (SettingsService.get().useSystemTheme) {
|
||||||
await SettingsService.set({ useSystemTheme: false });
|
await SettingsService.set({ useSystemTheme: false });
|
||||||
} else {
|
} else {
|
||||||
if (!PremiumService.get()) return;
|
|
||||||
await SettingsService.set({
|
await SettingsService.set({
|
||||||
useSystemTheme: !SettingsService.get().useSystemTheme,
|
useSystemTheme: !SettingsService.get().useSystemTheme,
|
||||||
theme: {
|
theme: {
|
||||||
|
|||||||
Reference in New Issue
Block a user