Skip to content

Commit

Permalink
fries: Add 3 finger screenshot
Browse files Browse the repository at this point in the history
Change-Id: Icb7dd724b5932bf052771907f68fe62b08eab1b9
  • Loading branch information
SahilSonar committed Dec 11, 2021
1 parent 316adb6 commit fe98d7d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions 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<bool> three_finger_gesture = Setting<bool>(
"three_finger_gesture",
SettingTable.system,
false,
);

static const Setting<int> navigation_handle_width = Setting<int>(
"navigation_handle_width",
SettingTable.system,
Expand Down Expand Up @@ -94,15 +100,25 @@ class Pages {
icon: Icons.settings_outlined,
selectedIcon: Icons.settings,
sections: [
PageSection(
title: "Gestures",
preferences: [
SwitchSettingPreference(
setting: Settings.three_finger_gesture,
title: "Three finger screenshot",
description: "Swipe down with three fingers to screenshot",
icon: Icons.camera,
),
],
),
PageSection(
title: "Navigation",
preferences: [
SliderSettingPreference<int>(
setting: Settings.navigation_handle_width,
title: "Navigation handle length",
min: 10,
max: 20
),
max: 20),
],
),
],
Expand Down

0 comments on commit fe98d7d

Please sign in to comment.