quik icon indicating copy to clipboard operation
quik copied to clipboard

New font size and pinch change font size

Open gavine99 opened this issue 7 months ago • 3 comments

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

gavine99 avatar Apr 22 '25 22:04 gavine99

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.

octoshrimpy avatar Apr 23 '25 17:04 octoshrimpy

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.

gavine99 avatar Apr 23 '25 20:04 gavine99

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.

octoshrimpy avatar Apr 25 '25 17:04 octoshrimpy