Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 07-05-2017, 03:42 PM   #1
Rellwood
Library Breeder
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 232
Karma: 1891742
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (2), KPW2 (1), KP3 (2)
GUI Icons

Where might I find the file that has the code which indicates which icon is used for the Yes/no custom columns? Or is it something that requires more than one file to coordinate? I am looking to change the choices in icons for yes/no so that I can cut down on icon rules.


I know its a lot of work thats pobably above my head, but I located the "ok" png file and just want to see where the code that controls it is located and try to make sense of it.

Last edited by Rellwood; 07-05-2017 at 03:47 PM.
Rellwood is offline   Reply With Quote
Advert
Old 07-09-2017, 11:19 AM   #2
Nicolas F
Connoisseur
Nicolas F began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Jan 2016
Device: Kobo Glo HD
You can use the search tool on github to find what you are looking for:
https://github.com/kovidgoyal/calibr...utf8=%E2%9C%93

From what I've seen, the concerned files seem to be :
  • src\calibre\gui2\library\models.py for the icon displayed in the main calibre view
  • src\calibre\gui2\library\delegates.py for the icon displayed when you set the value for the column from the main view
  • src\calibre\gui2\custom_column_widgets for the icon displayed when you set the value for the column from the edit metadata view
It's easy enough to change which icon is used, but if you want to add more choices there is probably more work involved.
Nicolas F is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suddenly my Calibre's GUI icons became too huge. vkaghkd Calibre 15 09-28-2016 10:45 PM
customized column icons now Micro-icons Gary_M_Mugford Calibre 10 09-05-2016 04:05 AM
Icons v1 Iñigo iRex 1 04-04-2011 07:08 AM
Sony Reader Icons, Other Reader Icons and much more! TheHeartlessHero Deals, Freebies, and Resources (No Self-Promotion) 27 11-21-2008 06:21 AM
iLiad Icons henkvdg iRex Developer's Corner 9 11-23-2006 06:06 PM


All times are GMT -4. The time now is 07:43 AM.


MobileRead.com is a privately owned, operated and funded community.