quik
quik copied to clipboard
New font size and pinch change font size
add new font size - 'very large' - between large and super.
add pinch to change text size. operates on all screens. affects text size setting for all app screens ie same as changing font size in settings. each pinch changes text size one step larger or smaller.
eg. settings activity;
https://github.com/user-attachments/assets/10e74623-d158-46aa-9a89-06274f33c1fd
main activity;
https://github.com/user-attachments/assets/7964bf69-e5b9-40ea-b2ee-08996899d4a7
compose activity;
https://github.com/user-attachments/assets/3edc27f6-a92e-46c6-86b5-ff1ae41a4a19
love it. is this something that should be under accessibility settings? I worry about damaged digitizers that give off random taps, or water droplets that register as touch.
i designed it so that it requires a larger than minimum pinch to activate, specifically to avoid accidental firings. ie not immediately either side of scale factor 1. the below values worked best in my testing but, for sure, can be adjusted if it's found to be too sensitive.
// large enough pinch changes text size
if (detector.scaleFactor < 0.8) currentTextSize--
if (detector.scaleFactor > 1.2) currentTextSize++
do you think it warrants a setting to turn the feature on and off? happy to add one if you think so.
I'd say so to not spook the user with new features. i'm 2/3 of the way towards "hide behind toggle", with maybe a popup? I'll def need to think about it and look at it again.