View Single Post
Old 02-27-2014, 04:41 PM   #8
Fapsi
Junior Member
Fapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongueFapsi can tie a knot in a cherry stem with his or her tongue
 
Fapsi's Avatar
 
Posts: 1
Karma: 22222
Join Date: Feb 2014
Device: PW2
Kindlet features

Hello,

it's some time later and I am not sure if somebody else already mentioned it before, but I found some other method to change the visibility of the toolbar.

Code:
KindletBooklet booklet = KindletBooklet.getInstance();
BookletContext context = booklet.getBookletContext();
BookletContextExtension contextext = (BookletContextExtension) context;
JFrame frame = contextext.Em();
KindleFrameFactory.setPersistentChromeMode(frame,KindleFrameFactory.PersistentChromeMode.NO_HEADER);
Other Possible values for setPersistentChromeMode are:
Code:
KindleFrameFactory.setPersistentChromeMode(frame,KindleFrameFactory.PersistentChromeMode.TITLE_AND_SEARCH)
KindleFrameFactory.setPersistentChromeMode(frame,KindleFrameFactory.PersistentChromeMode.TITLE_ONLY)
Note: Tried this code on my new Paperwhite 2 with Kindlet 2.2 version, but it mainly uses the standart jars : kaf.jar,kafui.jar, so it could work on other devices.

@ixtab: You may use this method also to modify the searchbar in the current version of your collection manager, since it receives the BookletContext.

Spoiler:

Since this is my first post, some off topic:
@all: Many thanks for sharing so many things

Last edited by Fapsi; 02-28-2014 at 02:14 PM.
Fapsi is offline   Reply With Quote