Skip to content

Commit

Permalink
fries: Add dt2s on lockscreen
Browse files Browse the repository at this point in the history
Change-Id: I4e28329dc8ce1b56700e626399b59bca217ec4f3
  • Loading branch information
SahilSonar committed Dec 11, 2021
1 parent fe98d7d commit 8413d6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 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> double_tap_sleep_lockscreen = Setting <bool>(
"double_tap_sleep_lockscreen",
SettingTable.secure,
false,
);

static const Setting<bool> three_finger_gesture = Setting<bool>(
"three_finger_gesture",
SettingTable.system,
Expand Down Expand Up @@ -103,6 +109,12 @@ class Pages {
PageSection(
title: "Gestures",
preferences: [
SwitchSettingPreference(
setting: Settings.double_tap_sleep_lockscreen,
title: "Double tap to sleep on lockscreen",
description: "Turn off screen by double tapping empty space on lockscreen",
icon: Icons.touch_app_outlined,
),
SwitchSettingPreference(
setting: Settings.three_finger_gesture,
title: "Three finger screenshot",
Expand Down

0 comments on commit 8413d6c

Please sign in to comment.