Skip to content

Commit

Permalink
fries: Add screen off animations
Browse files Browse the repository at this point in the history
Change-Id: Ic070d04205ba2273dc2aec778949ed8ee05cebf6
  • Loading branch information
SahilSonar committed Jan 16, 2022
1 parent a7cc3a3 commit 9a831a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion lib/backend/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ class Settings {
SettingTable.system,
0,
);

static const Setting<int> screen_off_animation = Setting<int>(
"screen_off_animation",
SettingTable.system,
0,
);
}

class Properties {
Expand Down Expand Up @@ -317,7 +323,7 @@ class Pages {
selectedIcon: Icons.lock,
sections: [
PageSection(
title: "Keyguard gestures",
title: "Keyguard",
preferences: [
DropdownSettingPreference<int>(
setting: Settings.torch_power_button_gesture,
Expand All @@ -329,6 +335,16 @@ class Pages {
},
icon: MdiIcons.lamp,
),
DropdownSettingPreference<int>(
setting: Settings.screen_off_animation,
title: "Screen off animation",
options: {
0: "Default",
1: "CRT",
2: "Scale"
},
icon: Icons.phone,
),
],
),
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ packages:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.1.3"
material_design_icons_flutter:
dependency: "direct main"
description:
Expand Down

0 comments on commit 9a831a5

Please sign in to comment.