gui: PatternPassword: allow any N*N grid
Rather than only supporting a 3x3 grid, allow for multiple grid sizes
(using the CyanogenMod method of generating passphrases for non-3x3
grids). Also fix the detection of touches, as the old code was far too
sensitive for larger grids (and also didn't make much sense).
Change-Id: I343ef654e6d29ce0cb790a28281be7c7c9b171d9
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
diff --git a/gui/theme/watch_mdpi/ui.xml b/gui/theme/watch_mdpi/ui.xml
index 7c7715a..850a32f 100644
--- a/gui/theme/watch_mdpi/ui.xml
+++ b/gui/theme/watch_mdpi/ui.xml
@@ -46,6 +46,8 @@
<resource name="home" type="image" filename="home" retainaspect="1" />
<resource name="back" type="image" filename="back" retainaspect="1" />
<resource name="console" type="image" filename="console" retainaspect="1" />
+ <resource name="grid_less" type="image" filename="grid_less" retainaspect="1" />
+ <resource name="grid_more" type="image" filename="grid_more" retainaspect="1" />
<resource name="checkbox_false" type="image" filename="checkbox_false" retainaspect="1" />
<resource name="checkbox_false_small" type="image" filename="checkbox_false_small" retainaspect="1" />
<resource name="checkbox_true" type="image" filename="checkbox_true" retainaspect="1" />
@@ -167,8 +169,8 @@
<variable name="console_terminal_height" value="64" />
<variable name="close_btn_x" value="280" />
<variable name="pattern_x" value="60" />
- <variable name="pattern_dot_dia" value="20" />
- <variable name="pattern_line_w" value="8" />
+ <variable name="pattern_dot_dia" value="12" />
+ <variable name="pattern_line_w" value="4" />
<variable name="pattern_size" value="200" />
</variables>