![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Tag browser: custom icons per category value?
Today one can use custom icons for each tag browser category. From time to time I see a discussion about whether one can also use custom icons per category value. The latest was here.
One can apparently do it with the Job Spy plugin. Using Job Spy concerns me because a) the plugin seems to no longer be maintained, and b) to work it would need to reach deep into the tag browser code, making it fragile. I am considering adding this ability to base calibre. I don't think any "naming" scheme where the name of an icon specifies where it is used can work. There are too many category/value pairs, perhaps thousands, meaning icons could be duplicated thousands of times. I don't think a "rule" system such as used for column icons is practical for the same reason; one could end up with thousands of rules. A template scheme permits grouping and defaulting based on how the user thinks. One could even use subtemplates to make maintaining the icons used for a given category an easier task. If I go forward then there would be an option somewhere to specify a template that given a category and a value returns the name of an icon. If the template returns the empty string then the default icon (what you see today) would be used. The template would not have access to information about books. The biggest question for me is "where are the icons stored?" I think that they should be in a subfolder of the tb_icons folder, perhaps named something like "##category_icons##". The template would return an icon name, which must be found in that folder. The user is in charge of names, using any scheme desired. Further subfolders would be permitted. The user is in charge of theming (light or dark), using different names such as 'aaa-light.png' and 'aaa-dark.png' for the value 'aaa'. Questions:
|
![]() |
![]() |
![]() |
#2 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,540
Karma: 7095191
Join Date: Sep 2020
Device: none
|
Hard to say, really. Just yesterday I found a feature whose implementation started exactly like this. And it only took me almost 2 years to find it, lol.
I was wondering how to make space on book details panel to give more visibility to my author Bio composite, then I saw "Show with comments in book details" and I wondered, how is this here and I never saw it? Had to google and search github commits, it's from March 2023! https://www.mobileread.com/forums/sh....php?p=4308469 https://github.com/kovidgoyal/calibr...e28e2297c0f+69 I'm really enjoying this feature, so I guess in the future I may be one of those 10 people you're wondering. ![]() Last edited by Comfy.n; 01-06-2025 at 08:57 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,540
Karma: 7095191
Join Date: Sep 2020
Device: none
|
(but I'm not a heavy user of the Tag Browser currently)
|
![]() |
![]() |
![]() |
#4 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I would find it useful. Job Spy has limitations such as it not working with partitions.
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,500
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I don't use the TB extensively, most the time it's hidden. And I have difficulty identifying suitable icons - e.g. my Books library has two custom categories that I have no idea how to represent iconically — Admin Tags and Status.
But, I have a more general Tab Browser related issue: which is configuring it - IMO it's too fragmented. JobSpy: I suspect most of its users have concerns about its longevity. There are a handful of JS features I wouldn't like to lose. Should we try to compile a composite list of Most Valued Features as the basis for implementing them in the basellne code or in feature specific plugins? BR |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Another option is that someone take over maintenance of Job Spy. FWIW: not something I'm interested in doing. |
||
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
An implementation of per-value icons is in calibre source. It works in the GUI and in the content server.
Here is the documentation from the manual, with some formatting changed: Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
![]() Should I disable the tag browser icons in job spy? |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#10 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I turned it off just to be safe. Seems to be working as expected.
|
![]() |
![]() |
![]() |
#11 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Another question: If a tag browser category regularly disappears and reappears (e.g. my Kobo statuses add/remove from device) will the icons remain?
|
![]() |
![]() |
![]() |
#12 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Small bug: Ampersand is missing, replaced with underscore.
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Where? |
|
![]() |
![]() |
![]() |
#14 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Categorys that have an ampersand in the name. In te menu.
Last edited by ownedbycats; 01-16-2025 at 03:39 PM. |
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I disable Icons in Tag Browser? | mikhail_fil | Library Management | 1 | 08-10-2023 06:34 PM |
Lighter icons in tag browser? | polymerwitch | Calibre | 3 | 11-29-2021 06:21 PM |
Category Ranges in Tag Browser | BetterRed | Library Management | 7 | 10-18-2020 04:44 AM |
Any way to unhide just one user category in the tag browser? | ownedbycats | Library Management | 2 | 10-14-2020 09:10 PM |
Show Category in Tag Browser | MerlinMama | Calibre | 4 | 02-01-2016 11:11 AM |