Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
ux(Hugo 1/2): Remove Hugo theme app pref
Browse files Browse the repository at this point in the history
  • Loading branch information
iakdis committed Mar 18, 2023
1 parent a50a7e8 commit 2492ae2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions lib/src/utils/globals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ const String prefDraggableMode = 'draggableMode';

const String prefTabs = 'tabs';

//Hugo
const String prefHugoTheme = 'hugoTheme';

// Layout
const int mobileWidth = 600;
6 changes: 0 additions & 6 deletions lib/src/utils/preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Preferences {
prefFrontMatterAddList, json.encode(defaultFrontMatterAddList())),
const MapEntry(prefDraggableMode, false),
const MapEntry(prefTabs, null),
const MapEntry(prefHugoTheme, ''),
]);
}

Expand Down Expand Up @@ -247,9 +246,4 @@ class Preferences {

return fromStringsToType.entries.map((e) => e).toList();
}

//Hugo Theme
static Future<void> setHugoTheme(String theme) async =>
await setPreferences(prefHugoTheme, theme);
static String getHugoTheme() => getPreferencesEntry(prefHugoTheme);
}

0 comments on commit 2492ae2

Please sign in to comment.