View Single Post
Old 02-15-2012, 04:46 PM   #3383
quisvir
Addict
quisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animals
 
quisvir's Avatar
 
Posts: 238
Karma: 6875
Join Date: Feb 2009
Location: Netherlands
Device: Kindle PW2
Quote:
Originally Posted by Analogus View Post
For closing full-page-overlays (e.g. authors-list-overlay) you have to hit the small button in the left upper corner. It would be nice to be able to close it by touching somewhere on the broad black upper border, not just the small area of the button.
Yes, that's possible. In main.xml, look for id="MENU_DETAILS_GROUP". In that group, about 120 lines down, there's this line:

Spoiler:
<button2 skin="button_back" left="5" top="5" width="61" height="61" can="canBack" do="doMenuClose"/>


Now, right before that line, insert the following line of code:

Spoiler:
<kbookHotspot do="doMenuClose" left="0" right="0" top="0" height="70" visible="false"/>


That should take care of most 'regular' views. If you do a search for skin="button_back" though, you'll see that there are more definitions for specific views. Of those, I'd say that SETTING_GROUP and maybe SCROLL_SETTING_GROUP are the most used, so you could consider adding the code there too. Note that in the latter case, the back button refers to doMenuClose2, so you'll have to change the inserted line accordingly.

Last edited by quisvir; 02-15-2012 at 04:50 PM.
quisvir is offline   Reply With Quote