-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Tap left shortcut to toggle flashlight from lock screen
- Loading branch information
Showing
9 changed files
with
1,315 additions
and
1,198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
198 changes: 107 additions & 91 deletions
198
app/src/main/java/name/mikanoshi/customiuizer/mods/System.java
Large diffs are not rendered by default.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
app/src/main/res/drawable/keyguard_bottom_flashlight_img_dark.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:viewportWidth="70" | ||
android:viewportHeight="70" | ||
android:width="25.45dp" | ||
android:height="25.45dp"> | ||
<path | ||
android:fillColor="#ff000000" | ||
android:strokeColor="#00000000" | ||
android:strokeWidth="1" | ||
android:fillAlpha="0.5" | ||
android:pathData="M13.051 4.112C13 4.303 13 4.535 13 5C13 5.465 13 5.697 13.051 5.888C13.19 6.406 13.594 6.81 14.112 6.949C14.302 7 14.535 7 15 7H55C55.465 7 55.697 7 55.888 6.949C56.406 6.81 56.81 6.406 56.949 5.888C57 5.697 57 5.465 57 5C57 4.535 57 4.303 56.949 4.112C56.81 3.594 56.406 3.19 55.888 3.051C55.697 3 55.465 3 55 3H15C14.535 3 14.302 3 14.112 3.051C13.594 3.19 13.19 3.594 13.051 4.112ZM46.48 24.414C45.94 25.071 45.636 25.924 45.638 26.775C45.646 30.77 45.653 43.768 45.659 65.769C45.659 67.001 44.734 68 43.593 68H26.57C25.429 68 24.504 67.001 24.504 65.769C24.505 43.879 24.505 31.13 24.506 27.521C24.506 26.825 24.275 26.15 23.852 25.597L13.235 11.724C13.086 11.54 13 11.309 13 11.064C12.999 10.782 13.113 10.511 13.317 10.311C13.521 10.112 13.798 9.999 14.086 10H55.7C56.267 10 56.715 10.292 56.906 10.741C57.02 11.01 57.028 11.304 56.941 11.57C56.899 11.687 56.858 11.77 56.808 11.847L46.48 24.414ZM32 33C32 31.343 33.343 30 35 30C36.657 30 38 31.343 38 33V39C38 40.657 36.657 42 35 42C33.343 42 32 40.657 32 39V33Z" | ||
android:fillType="evenOdd" /> | ||
</vector> |
13 changes: 13 additions & 0 deletions
13
app/src/main/res/drawable/keyguard_bottom_flashlight_img_light.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:viewportWidth="70" | ||
android:viewportHeight="70" | ||
android:width="25.45dp" | ||
android:height="25.45dp"> | ||
<path | ||
android:fillColor="#ffffffff" | ||
android:strokeColor="#00000000" | ||
android:strokeWidth="1" | ||
android:fillAlpha="0.7" | ||
android:pathData="M13.051 4.112C13 4.303 13 4.535 13 5C13 5.465 13 5.697 13.051 5.888C13.19 6.406 13.594 6.81 14.112 6.949C14.302 7 14.535 7 15 7H55C55.465 7 55.697 7 55.888 6.949C56.406 6.81 56.81 6.406 56.949 5.888C57 5.697 57 5.465 57 5C57 4.535 57 4.303 56.949 4.112C56.81 3.594 56.406 3.19 55.888 3.051C55.697 3 55.465 3 55 3H15C14.535 3 14.302 3 14.112 3.051C13.594 3.19 13.19 3.594 13.051 4.112ZM46.48 24.414C45.94 25.071 45.636 25.924 45.638 26.775C45.646 30.77 45.653 43.768 45.659 65.769C45.659 67.001 44.734 68 43.593 68H26.57C25.429 68 24.504 67.001 24.504 65.769C24.505 43.879 24.505 31.13 24.506 27.521C24.506 26.825 24.275 26.15 23.852 25.597L13.235 11.724C13.086 11.54 13 11.309 13 11.064C12.999 10.782 13.113 10.511 13.317 10.311C13.521 10.112 13.798 9.999 14.086 10H55.7C56.267 10 56.715 10.292 56.906 10.741C57.02 11.01 57.028 11.304 56.941 11.57C56.899 11.687 56.858 11.77 56.808 11.847L46.48 24.414ZM32 33C32 31.343 33.343 30 35 30C36.657 30 38 31.343 38 33V39C38 40.657 36.657 42 35 42C33.343 42 32 40.657 32 39V33Z" | ||
android:fillType="evenOdd" /> | ||
</vector> |
32 changes: 32 additions & 0 deletions
32
app/src/main/res/drawable/keyguard_bottom_flashlight_on_img_dark.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="25.45dp" | ||
android:height="25.45dp" | ||
android:viewportWidth="30" | ||
android:viewportHeight="30"> | ||
<path | ||
android:pathData="M9.054,10.522C9.039,10.573 9.039,10.634 9.039,10.757C9.039,10.88 9.039,10.941 9.054,10.991C9.093,11.128 9.206,11.235 9.352,11.271C9.405,11.285 9.47,11.285 9.601,11.285H20.837C20.968,11.285 21.033,11.285 21.087,11.271C21.232,11.235 21.346,11.128 21.385,10.991C21.399,10.941 21.399,10.88 21.399,10.757C21.399,10.634 21.399,10.573 21.385,10.522C21.346,10.385 21.232,10.279 21.087,10.242C21.033,10.229 20.968,10.229 20.837,10.229H9.601C9.47,10.229 9.405,10.229 9.352,10.242C9.206,10.279 9.093,10.385 9.054,10.522ZM18.444,15.883C18.292,16.056 18.207,16.282 18.207,16.506C18.209,17.561 18.212,20.993 18.213,26.802C18.213,27.128 17.953,27.392 17.633,27.392H12.851C12.531,27.392 12.271,27.128 12.271,26.802C12.271,21.022 12.271,17.656 12.271,16.703C12.271,16.52 12.207,16.341 12.088,16.195L9.105,12.532C9.063,12.484 9.039,12.423 9.039,12.358C9.039,12.283 9.071,12.212 9.128,12.159C9.186,12.106 9.263,12.077 9.344,12.077H21.034C21.193,12.077 21.319,12.154 21.372,12.273C21.404,12.344 21.407,12.421 21.382,12.491C21.371,12.522 21.359,12.544 21.345,12.565L18.444,15.883ZM14.376,18.15C14.376,17.712 14.754,17.358 15.219,17.358C15.684,17.358 16.062,17.712 16.062,18.15V19.734C16.062,20.172 15.684,20.526 15.219,20.526C14.754,20.526 14.376,20.172 14.376,19.734V18.15Z" | ||
android:fillColor="#000000" | ||
android:fillAlpha="0.5" | ||
android:fillType="evenOdd"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M15,8V3" | ||
android:strokeLineJoin="round" | ||
android:strokeColor="#000000" | ||
android:strokeAlpha="0.5" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M19,8.2L21.5,4" | ||
android:strokeLineJoin="round" | ||
android:strokeColor="#000000" | ||
android:strokeAlpha="0.5" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M11,8.2L9,4" | ||
android:strokeLineJoin="round" | ||
android:strokeColor="#000000" | ||
android:strokeAlpha="0.5" | ||
android:strokeLineCap="round"/> | ||
</vector> |
32 changes: 32 additions & 0 deletions
32
app/src/main/res/drawable/keyguard_bottom_flashlight_on_img_light.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="25.45dp" | ||
android:height="25.45dp" | ||
android:viewportWidth="30" | ||
android:viewportHeight="30"> | ||
<path | ||
android:pathData="M9.054,10.522C9.039,10.573 9.039,10.634 9.039,10.757C9.039,10.88 9.039,10.941 9.054,10.991C9.093,11.128 9.206,11.235 9.352,11.271C9.405,11.285 9.47,11.285 9.601,11.285H20.837C20.968,11.285 21.033,11.285 21.087,11.271C21.232,11.235 21.346,11.128 21.385,10.991C21.399,10.941 21.399,10.88 21.399,10.757C21.399,10.634 21.399,10.573 21.385,10.522C21.346,10.385 21.232,10.279 21.087,10.242C21.033,10.229 20.968,10.229 20.837,10.229H9.601C9.47,10.229 9.405,10.229 9.352,10.242C9.206,10.279 9.093,10.385 9.054,10.522ZM18.444,15.883C18.292,16.056 18.207,16.282 18.207,16.506C18.209,17.561 18.212,20.993 18.213,26.802C18.213,27.128 17.953,27.392 17.633,27.392H12.851C12.531,27.392 12.271,27.128 12.271,26.802C12.271,21.022 12.271,17.656 12.271,16.703C12.271,16.52 12.207,16.341 12.088,16.195L9.105,12.532C9.063,12.484 9.039,12.423 9.039,12.358C9.039,12.283 9.071,12.212 9.128,12.159C9.186,12.106 9.263,12.077 9.344,12.077H21.034C21.193,12.077 21.319,12.154 21.372,12.273C21.404,12.344 21.407,12.421 21.382,12.491C21.371,12.522 21.359,12.544 21.345,12.565L18.444,15.883ZM14.376,18.15C14.376,17.712 14.754,17.358 15.219,17.358C15.684,17.358 16.062,17.712 16.062,18.15V19.734C16.062,20.172 15.684,20.526 15.219,20.526C14.754,20.526 14.376,20.172 14.376,19.734V18.15Z" | ||
android:fillColor="#ffffff" | ||
android:fillAlpha="0.7" | ||
android:fillType="evenOdd"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M15,8V3" | ||
android:strokeLineJoin="round" | ||
android:strokeColor="#ffffff" | ||
android:strokeAlpha="0.7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M19,8.2L21.5,4" | ||
android:strokeLineJoin="round" | ||
android:strokeColor="#ffffff" | ||
android:strokeAlpha="0.7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:strokeWidth="1" | ||
android:pathData="M11,8.2L9,4" | ||
android:strokeLineJoin="round" | ||
android:strokeColor="#ffffff" | ||
android:strokeAlpha="0.7" | ||
android:strokeLineCap="round"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.