View Single Post
Old 06-20-2016, 05:51 PM   #24
yc_richard
Junior Member
yc_richard doesn't litteryc_richard doesn't litter
 
Posts: 8
Karma: 130
Join Date: May 2016
Location: Lausanne
Device: Kobo Aura H2O, Kobo Auro One
Quote:
Originally Posted by The_Immortal View Post
Unfortunately, it doesn't work for me How can I fix it? I guess the problem refers to the following (cylight.lua):
Could someone provide the proper values for Glo HD?

Thank you!
DTAP_ZONE_CYLIGHTSWIPE shoudn't matter, it is just the area of which it looks for swipe gesture. feel free to change it yourself.

Actually the sliding up or down dose not behave exactly the same as nickel. it will not refresh the frontlight level as you slide, but only after finishing the gesture.
So depend on the distance of the gesture, it will increase or decrease a corresponding among of light. The max is 10% per gesture. (I took the code directly from two-finger swipe). Full distance is between 12.5% of screen height from top to 87.5% of screen height fron top (in my DTAP_ZONE_CYLIGHTSWIPE) and gives the 10% of frontlight change.
Plus, I guess there is a listening time limit for koreader's swipe event, which means that you have to slide it fast!!! slowly motion does not work at all.

Last edited by yc_richard; 06-20-2016 at 06:22 PM.
yc_richard is offline   Reply With Quote