05-18-2018, 03:42 PM | #16 | ||||
Member
Posts: 10
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD
|
Quote:
Max-width is a compromise which would also be good and definitely an improvement. I'm open to that. That programs do have fixed width (and a ton of max-width), see proof in my post before and in every Microsoft-product. Quote:
Cutting the words would be ugly and placing ellipsis also isn't acceptable imho. Quote:
Let it be 10px vertical space if you want more padding. Quote:
https://www.qt.io/ I will let you know their answer. However, thanks for hearing me and giving answers. @jbacelar Thanks. But if some new code is needed anyway I'd rather ask the ones for the solid solution first (QT) which will be beneficial for everyone than asking an addon author for a custom workaround. Last edited by Fuzzi; 05-18-2018 at 04:50 PM. Reason: added an "in" in first paragraph |
||||
05-18-2018, 07:32 PM | #17 | |
null operator (he/him)
Posts: 20,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I have several packages that I use every day that utilise the QT framework, calibre being one of those; someone else will have another set of applications, possibly running on some obscure platform - none of which I've ever heard of. I don't know if KG keeps a count, but I wouldn't be surprised the number of QT workarounds he has had to implement is a double digit number. Same with the Sigil developers. If anything were to be done on this front for calibre I'd rather it be done by Kovid, read what another highly respected software developer has to say about him ==>> https://www.mobileread.com/forums/sh...3&postcount=19 BR |
|
Advert | |
|
05-18-2018, 08:36 PM | #18 |
Member
Posts: 10
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD
|
@BetterRed
I don't get your point. Isn't it better for everyone using QT to have a max-width option? Isn't it better for everyone to have a cleaner UI at first touch rather than having to customize it (which e.g. is a big minus for foobar2000 which overall still is a great program)? Isn't it easier for KG to set a given QT option rather than for an addon author to make it possible to change default icon's titles which is a hacky workaround only few people who have that addon and know about it will benefit from? And why did the mood in this thread become so bad? |
05-18-2018, 09:16 PM | #19 |
null operator (he/him)
Posts: 20,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Fuzzi - QT is used in a variety of application systems: desktop, phone/tablet, and embedded. The only people who can make a judgement that something is better for everyone are the QT developers.
On the more general point:
|
05-19-2018, 05:18 AM | #20 |
Member
Posts: 10
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD
|
@BetterRed
Ah come on, again. You know what "everyone" means. It's not my grandma and it's not people who don't make use of such an option. To the general points
Last edited by Fuzzi; 05-19-2018 at 05:21 AM. Reason: specified "it" |
Advert | |
|
05-22-2018, 05:16 PM | #21 | |
Member
Posts: 10
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD
|
Hey,
got an answer from the Qt guys: Quote:
To prevent that workaround and not overcomplicate it, I consider it an appropriate solution to hardcode the wordwraps and define a minWidth to approximate the width for all buttons. Last edited by Fuzzi; 05-22-2018 at 05:17 PM. Reason: typo |
|
05-22-2018, 09:37 PM | #22 |
Hedge Wizard
Posts: 800
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Another solution Just occurred to me, even if it is a stupid one.
You could create your own set of Icons which Just contain text to replace the Calibre icons. This would give you a sort of menu Bar. You could adjust the text to suit your tastes. This is quite easy to do and would not take a lot of time. I have replaced a number if Calibre Icons for Icons I prefer. |
05-23-2018, 05:07 AM | #23 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That will not work, if the text has multiple lines in it Qt will paint the icons without their bases aligned, which is much worse. Like the attached image
|
05-23-2018, 05:11 AM | #24 |
Member
Posts: 10
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD
|
@Thasaidon
Thanks, I tried. It doesn't work as the icons get resized to a fixed square width automatically, making the title unreadably small. |
05-23-2018, 05:28 AM | #25 |
Member
Posts: 10
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD
|
@kovidgoyal
So the title isn't in its own box? Actually imho its more clean the way it is (aligned at top, line 1 always at the same level, no matter if there is a second one or not). I don't think vertical centering is necessary. What is strange to me is the difference e.g. from "test library" to "save to disk". Not even the icon baselines are at the same level, whereas it works for other single line titles like "mark books" or "preferences". The only faulty ones are "test library", "Connect/share" and maybe the donation button which doesn't have a title for whatever reason. /edit Corrected those three and gave the font a bit less top/bottom padding - already looks gorgeous, even without caring about min-width! Unfortunately I can't tell where the differences come from. It has to be something programatically or different alphatransparency-padding hardcoded in icon images? /edit2 How about adding a dummy line to "test library" and "Connect/share"? Just an \n at the end. Last edited by Fuzzi; 05-23-2018 at 05:53 AM. Reason: add screenshot |
05-23-2018, 08:28 AM | #26 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Really, you think that looks beautiful? I think that looks awful
It wastes a whole 10px of vertical height just to wrap 3 buttons. It might be more neccessary for other languages, but for English its pretty bad. Connect/share and test library just have not been changed, it requires some more work for that. I certainly dont want to enable it by default, but I can probably add an option for it. |
05-23-2018, 08:54 AM | #27 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And here's what it looks like with all multi-word texts wrapped
|
05-23-2018, 09:19 AM | #28 |
Well trained by Cats
Posts: 29,785
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
If I want to know what my UNLABELED icons do, I hover and look at the balloon help.
Vertical space has better uses |
05-23-2018, 09:41 AM | #29 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
05-23-2018, 10:11 AM | #30 |
Member
Posts: 10
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD
|
Oh, I was just photoshopping two versions which maintain the old height (just lowering vertical padding) to show you don't need to "lose" 5 oder even 10px (which I personally don't mind) and you already made a PR. Cool :-)
I think that should solve it. Btw the issue is better visible if you didn't choose large but medium or small icons. However, ultimately the title length usually defines the width of a button, not the icon size. |
Tags |
icons, menubar |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD new to aura hd.. (annotation/fixed width fonts) | kbahd260 | Kobo Reader | 12 | 02-15-2014 06:35 PM |
PRS-300 Fixed-width fonts for text files. | seanhennessy | Sony Reader | 0 | 09-24-2010 11:41 AM |
How to apply fixed-width fonts | EnergyLens | Calibre | 5 | 04-17-2010 12:41 PM |
single HTML to ePub with fixed width font | skyfish | Calibre | 8 | 12-10-2009 01:30 PM |
Fixed-width txt to fluid one | vitalyb | Workshop | 5 | 12-05-2009 08:06 AM |