m31s-systemui: change fps animation to start from power button

Changes:
 - Add physical_fingerprint_sensor_center_screen_location x & y and map them to the power button (where the fingerptint sensor is)
 - So the fingerprint unlocking animation starts from the power button instead of from the center of screen

 - Refactor code, categorize configs based on what they are for

Thanks to phh for helping me with this :)
This commit is contained in:
rufus582 2022-12-19 19:10:25 +05:30
parent 4004607780
commit cb7dd890a6
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Display/UI -->
<dimen name="keyguard_carrier_text_margin">45px</dimen>
<dimen name="system_icons_keyguard_padding_end">45px</dimen>
<dimen name="rounded_corner_content_padding">4dp</dimen>
<dimen name="rounded_corner_content_padding">10dp</dimen>
<!-- Power button & Side FP Sensor -->
<dimen name="physical_power_button_center_screen_location_y">890px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">@dimen/physical_power_button_center_screen_location_y</dimen>
</resources>