eink.qss - magic file - customize everything you want!

sergeyvl
Posts: 1366
Joined: Sun Nov 13, 2011 5:43 pm
My ELO: 1500-1600
Location: Харьков
Contact:

eink.qss - magic file - customize everything you want!

Postby sergeyvl » Thu Mar 05, 2015 3:37 pm

Hi!

Sometimes people are not satisfied with GUI font size or GUI font face (I don't like Djvu Sans in the main menu!)

This is not a problem because we have "magic" file: eink.qss. I'll post some tips in this thread about how to change the look and feel of CR and other apps...

Here is non-official eink.qss file from the russian forum: download/file.php?id=65

sergeyvl
Posts: 1366
Joined: Sun Nov 13, 2011 5:43 pm
My ELO: 1500-1600
Location: Харьков
Contact:

Re: eink.qss - magic file - change everything you want!

Postby sergeyvl » Thu Mar 05, 2015 3:40 pm

Suppose we want to change the global (default) applications font size.

Just add the following lines to your eink.qss:

Code: Select all

/* Global style */
* {
    font-size: 9pt;
}


Or we want to change the font size for the main menu only...

Let's find the QMenu style:

Code: Select all

QMenu {
...
}


and add/change it's font size! In this example we also make menu font bold

Code: Select all

QMenu {
   font-size: 10pt;
   font: bold;
   ...
}


Button icon size in Open File, TOC, Recent Books and Bookmarks dialogs of CR:

Code: Select all

QToolButton
{
  ...   
  icon-size: 80px;
  ...
}


The default icon size is ~ 1cm. You can make it smaller. You can also make it bigger but maximum icon size is 80x80 pixels. The button size is increased but icon size stay 80px if you specify samthing bigger than 80px.

to be continued...

pblasi
Posts: 29
Joined: Wed Mar 04, 2015 8:04 am
My ELO: 0-1000

Re: eink.qss - magic file - customize everything you want!

Postby pblasi » Mon Mar 09, 2015 7:09 am

Cool! I'll give it a try! Thanks!

pblasi
Posts: 29
Joined: Wed Mar 04, 2015 8:04 am
My ELO: 0-1000

Re: eink.qss - magic file - customize everything you want!

Postby pblasi » Mon Mar 09, 2015 10:09 am

Just to have an start point, I replaced the whole eink.qss I had with the one you attached here... The overall GUI improvement is awesome! Menus, TOC and everything is better now, much more good-looking. I recommend everyone to try it!

(sergeyvl maybe having this eink.qss integrated in the next build?)

pblasi
Posts: 29
Joined: Wed Mar 04, 2015 8:04 am
My ELO: 0-1000

Re: eink.qss - magic file - customize everything you want!

Postby pblasi » Mon Mar 09, 2015 10:15 am

Hi,
Is there a way to change icon's size of the buttons? I'm referring to those at the bottom of TOC, "Open file", "Recent books", etc...
After applying attached eink.qss these buttons are too big to me, I would like to reduce them. Thanks!

sergeyvl
Posts: 1366
Joined: Sun Nov 13, 2011 5:43 pm
My ELO: 1500-1600
Location: Харьков
Contact:

Re: eink.qss - magic file - customize everything you want!

Postby sergeyvl » Tue Mar 10, 2015 9:49 am

pblasi wrote:Hi,
Is there a way to change icon's size of the buttons? I'm referring to those at the bottom of TOC, "Open file", "Recent books", etc...
After applying attached eink.qss these buttons are too big to me, I would like to reduce them. Thanks!


Updated. See QToolButton (above)

pblasi
Posts: 29
Joined: Wed Mar 04, 2015 8:04 am
My ELO: 0-1000

Re: eink.qss - magic file - customize everything you want!

Postby pblasi » Tue Mar 10, 2015 11:02 am

sergeyvl wrote:
pblasi wrote:Hi,
Is there a way to change icon's size of the buttons? I'm referring to those at the bottom of TOC, "Open file", "Recent books", etc...
After applying attached eink.qss these buttons are too big to me, I would like to reduce them. Thanks!


Updated. See QToolButton (above)


Amazing! CR better and better every day! Thanks!

LittleBiG
Posts: 56
Joined: Tue Feb 10, 2015 11:56 am
My ELO: I don't know

Re: eink.qss - magic file - customize everything you want!

Postby LittleBiG » Wed Mar 11, 2015 9:52 am

I also modified it. Yes, it is really great!

I have just noticed, that these didn't change the font size of recent books. What should I set to do so?
Kobo Mini v3.4.1 and Pocketbook Touch Lux 2 v5.8

pblasi
Posts: 29
Joined: Wed Mar 04, 2015 8:04 am
My ELO: 0-1000

Re: eink.qss - magic file - customize everything you want!

Postby pblasi » Wed Mar 11, 2015 11:59 am

LittleBiG wrote:I have just noticed, that these didn't change the font size of recent books. What should I set to do so?


I think you need to add a line in "cr3/data/cr3.ini" file. You can find it here below "cr3.ini options":

http://wiki.vlasovsoft.net/doku.php?id=en:coolreader

LittleBiG
Posts: 56
Joined: Tue Feb 10, 2015 11:56 am
My ELO: I don't know

Re: eink.qss - magic file - customize everything you want!

Postby LittleBiG » Wed Mar 11, 2015 12:11 pm

Ah, yes, thanks. Just a bit weird, that when I changed the global size it has changed the table of contents size too, but not the recent books. There is also a size for table of contents in the ini file, and I didn't need to touch it.

EDIT: Now I am almost sure it is a bug. The global size works everywhere but in the recent list.
Kobo Mini v3.4.1 and Pocketbook Touch Lux 2 v5.8


Return to “Cool Reader”

Who is online

Users browsing this forum: No registered users