![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2015
Device: iPad
|
Toolbar Icons....
How do I create a blank icon to use as a spacer between command/plugin icons? Or is there a way to center the items in the toolbar?
I tried creating a fake .zip plugin containing only blank .png file, but it won't show up as an option in the Toolbar organizer. Many thanks for any help. |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,645
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
In the toolbar 'customiser' (Preferences->Toolbars) there's a Separator item in the left side list, more than one of which can be moved to the right side list, and then use the up/down green arrows to position the Separator(s)
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2015
Device: iPad
|
Hi. Yes, I'm aware of the existing separator. Where is that icon located in the application files? I'm on a Mac, if it makes a difference. Can I replace the existing separator with a blank png of a particular size? I want spaces between groups of toolbar icons to even out the appearance. As is, everything is shoved over to the left and adding extra lines with the separators doesn't do much to remedy that.
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,917
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
the problem is, the separator is not a normal icon BTW I use 2 separators in places I wish to ||emphasize|| the section |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2015
Device: iPad
|
What do you mean it's not a normal icon?
I did a deep search using EasyFind & didn't come up with anything called "separator". & poking around through the application files hasn't revealed its location to me yet, either. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
It's not an icon, it's just a line drawn with the addSeparator() method inherent to a QToolBar.
Extra images aren't really going to help anyway. What you want is a feature request to center the toolbar. Last edited by eschwartz; 12-01-2015 at 01:58 PM. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2015
Device: iPad
|
But the image file for the separator has to exist somewhere in the application files, right? Shouldn't I just be able to swap in another image with the same name & have that appear instead of the dotted line? Do you know where the separator image file is located or what it might be named? Thanks
|
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
No, like I said, it is a drawn line created by the QToolBar.addSeparator() method.
That means there is an instruction to "draw a line", not "render an image". If you want to change that, you will either need to hack calibre to use an image instead of a QToolBar.addSeparator() or you will have to hack and recompile Qt AND calibre to use an image for QToolBar.addSeparator() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hiding toolbar icons - can you? | Hoods7070 | Calibre | 4 | 06-05-2012 03:08 AM |
Refreshing toolbar icons | meme | Development | 6 | 04-20-2011 01:27 PM |
Toolbar icons | yingwu | iRex | 3 | 06-17-2009 12:20 PM |
iLiad Add new icons to the toolbar | ouais32 | iRex Developer's Corner | 2 | 01-04-2008 12:04 PM |
iLiad Toolbar icons | tomchek | iRex Developer's Corner | 6 | 07-30-2007 11:13 AM |