Skip to content

Commit

Permalink
fries: Add navbar handle length
Browse files Browse the repository at this point in the history
Change-Id: Ibba29a48e28594947d44a1fafd410452b5e408f0
  • Loading branch information
SahilSonar committed Dec 11, 2021
1 parent d821a2a commit 316adb6
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lib/backend/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ import 'package:potato_fries/ui/components/headers/theme.dart';
class Settings {
const Settings._();

static const Setting<int> navigation_handle_width = Setting<int>(
"navigation_handle_width",
SettingTable.system,
10,
);

static const Setting<double> monet_engine_chroma_factor = Setting<double>(
"monet_engine_chroma_factor",
SettingTable.secure,
Expand Down Expand Up @@ -87,7 +93,19 @@ class Pages {
title: "System",
icon: Icons.settings_outlined,
selectedIcon: Icons.settings,
sections: [],
sections: [
PageSection(
title: "Navigation",
preferences: [
SliderSettingPreference<int>(
setting: Settings.navigation_handle_width,
title: "Navigation handle length",
min: 10,
max: 20
),
],
),
],
);

static const FriesPage themes = FriesPage(
Expand Down

0 comments on commit 316adb6

Please sign in to comment.