From 2492ae25930dc2c59c2a9eff029ecc5e0aa5cf91 Mon Sep 17 00:00:00 2001 From: iakmds <111225446+iakmds@users.noreply.github.com> Date: Sat, 18 Mar 2023 11:57:11 +0100 Subject: [PATCH] ux(Hugo 1/2): Remove Hugo theme app pref --- lib/src/utils/globals.dart | 3 --- lib/src/utils/preferences.dart | 6 ------ 2 files changed, 9 deletions(-) diff --git a/lib/src/utils/globals.dart b/lib/src/utils/globals.dart index 2ced8fc5..d5bfe402 100644 --- a/lib/src/utils/globals.dart +++ b/lib/src/utils/globals.dart @@ -22,8 +22,5 @@ const String prefDraggableMode = 'draggableMode'; const String prefTabs = 'tabs'; -//Hugo -const String prefHugoTheme = 'hugoTheme'; - // Layout const int mobileWidth = 600; diff --git a/lib/src/utils/preferences.dart b/lib/src/utils/preferences.dart index 3f065084..c89c4baf 100644 --- a/lib/src/utils/preferences.dart +++ b/lib/src/utils/preferences.dart @@ -29,7 +29,6 @@ class Preferences { prefFrontMatterAddList, json.encode(defaultFrontMatterAddList())), const MapEntry(prefDraggableMode, false), const MapEntry(prefTabs, null), - const MapEntry(prefHugoTheme, ''), ]); } @@ -247,9 +246,4 @@ class Preferences { return fromStringsToType.entries.map((e) => e).toList(); } - - //Hugo Theme - static Future setHugoTheme(String theme) async => - await setPreferences(prefHugoTheme, theme); - static String getHugoTheme() => getPreferencesEntry(prefHugoTheme); }