![]() |
#31 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Mar 2011
Device: Kindle
|
I just want to share my appreciation for the folks still working on/talking about this. Only yesterday I came across the issue again in an old book I was working on. Thanks!!
|
![]() |
![]() |
![]() |
#32 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
|
For the record, I have just pushed changes to master to colour the current semantic in red (if any set) in the Add Semantics dialog.
For those who build from source you can pull from master and rebuild to get this change asap. Otherwise this change will be included for the upcoming final (non-beta) release of Sigil. |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
|
Thank you for this improvement.
One note: The red color is probably not visible with the dark theme, because you can not add style only for current semantic element. It would be worth building a version and checking on a dark theme in Mojave. Using the QSS style – the red color disappears. The solution would be simply to add a checkmark suggested by BetterRed here. Code:
QString added_checkmark = name + " ✓"; item->setText(added_checkmark); |
![]() |
![]() |
![]() |
#34 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
|
No the name itself is used in a dictionary lookup, so modifying the name itself is out.
Why can't red be seen on a Dark motif? It is a foreground colour and not a background colour for the text. Red should show up on a dark or light background. That is why I chose it. Last edited by KevinH; 07-02-2019 at 08:05 AM. |
![]() |
![]() |
![]() |
#35 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
|
Quote:
Screen shots were real. Quote:
But for QSS style if the current semantics does not have any css / qss class or id that can be individually configured - it looks like this: dark background and black text. The red color among black foreground on a dark background looks unattractive. If I write style: Code:
QListView::item { color: #d8d8d8; } That's what I meant when I suggested a checkmark that always works. |
||
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It's always going to be possible for a user's custom qss and Sigil defaults to be at odds with each other. And "unattractive" is always going to be in the eye of the beholder. People wanted to be able to SEE if a semantic is already applied to a file in the semantics dialog. This accomplishes that without adding extra columns to an already crowded dialog.
Last edited by DiapDealer; 07-02-2019 at 11:05 AM. |
![]() |
![]() |
![]() |
#37 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
|
The name string itself is used in a dictionary lookup. If you append a check char to the end, looking up the name will fail, which means you will not be able to toggle the previously set semantic in one step.
So adding chars to the name is *not* what I want to do. I would have to collect the selected names and check if already appended with space check and then remove it before looking it the name in the dictionary. BTW, any user could set their own qss and make any Sigil dialog pretty unusable. |
![]() |
![]() |
![]() |
#38 | ||||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
|
Quote:
Quote:
Quote:
Quote:
I can handle it. |
||||
![]() |
![]() |
![]() |
#39 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
|
I could either set the foreground and background colour independent of theme, or use a text decoration like an underline. Would an underline be better than a vibrant red colour? I find underlines are harder to detect than a foreground colour like red.
|
![]() |
![]() |
![]() |
#40 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Another possibility is to add checked versions of the names to the dictionary as well. Or even just the current name with check to the dictionary... that would work.
|
![]() |
![]() |
![]() |
#41 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Could we somehow let QPalette choose a thematic color? I don't know the first thing about it, but I think we're supposed to be able to use things like:
QPalette::BrightText QPalette::AlternateBase QPalette::Midlight |
![]() |
![]() |
![]() |
#42 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Yes this sounds like a good idea.
It will take some study and work. So until then I have just pushed the space checkmark idea where we load the checked version of the name into the dictionary to prevent issues. That should keep everyone happy for the upcoming release until we figure out how to do our own themes or at least figure out how to make theme-appropriate choices. Thanks, Kevin |
![]() |
![]() |
![]() |
#43 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 843
Karma: 3335974
Join Date: Jan 2017
Location: Poland
Device: Various
|
Double thank you for your understanding of users who use their own themes.
I confirm that it works great now (build on Win10). |
![]() |
![]() |
![]() |
#44 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,745
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FTR - my original idea was to have a checkmark on the file name in the Book Browser, to indicate the files that have a semantic tag.
This would help identify files that a) might have been spuriously tagged - e.g. I would not expect chapter3.xhtml to have a semantic tag, and b) might have missed being tagged - e.g. I would expect dedication.xhtml to have a semantic tag. My thinking was that the presence and/or absence of questionable checkmarks would be a trigger for me to take a closer look at Reports->All Files. That's not at odds with using a checkmark (or colour) in the Add Semantics dialogue against the tag assigned to a given file. But it is not equivalent. BR |
![]() |
![]() |
![]() |
#45 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,607
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It's not equivalent. But it's what we're getting. I'm simply not in favor of adding extra visual indicators to the Book Browser (or changing the existing Book Browser icons). Especially when those indicators won't give you the level of detail you'd actually need to make any changes. Look at the OPF or the NAV if you need a quick, detailed overview of which files have which semantics assigned to them, and use the new visual indication in the semantics dialog to make sure you're not toggling off something you meant to turn on.
Last edited by DiapDealer; 07-02-2019 at 06:24 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add Semantics? | lkasdorf | Sigil | 2 | 04-25-2012 07:33 AM |
The 'Add' Dialog box spanning the whole screen? | ne0b0rn | Calibre | 10 | 01-16-2012 09:43 PM |
Add semantics context menu | Artha | Sigil | 1 | 11-22-2011 02:11 PM |
I want to add Calibre Plugboard usage to the Kindle Visual Guide... | daffy4u | Amazon Kindle | 19 | 12-19-2010 05:31 PM |
Wonderful Book Browser-->add semantics menu not sticking | meika | Sigil | 3 | 07-31-2010 08:30 AM |