![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 808
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
Suggestions before releasing version 1.0
Kevin suggested that I write a new post on this topic.
I have been observing Sigil's development for years. I run it almost every day. I like to adapt tools to my needs. There are a few small things that may be worth changing before launching a milestone in the development of Sigil – version 1.0. Write what you think about these suggestions under this post. If something seems pointless – just write. And if something is neutral or seems acceptable – write also. All proposals are purely aesthetic and may be of low priority, but life is made of little things. 1. Question mark in dialog boxes Since Sigil does not use QWhatsThis – I suggest to disable the question mark globally. Many of you will ask "what's going on?" Well, the question mark is in the title bar in Windows in most windows that pop up in Sigil (eg About, Settings ...). It's about that question mark: Code:
#ifdef Q_OS_WIN32 QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton); #endif Find "Qt::AA_DisableWindowContextHelpButton" on page: https://doc.qt.io/qt-5/qt.html 2. Change link color Standard link colors have been used for years: blue for the standard link, purple for the visited link and red for the active link. These colors can of course vary depending on the web browser and even the specific version of the browser. Throughout the Sigil code, the link only appears three times (all in the About box), so I hope this is not a revolutionary suggestion. But why? The blue color of the link is very legible on a white background, but with darker themes this color does not look good because it is too blue. The change is simple, just cover these three links with the SPAN tag with the appropriate blue color – I suggest: Code:
<span style=\"text-decoration: underline; color:#039be5;\">…</span> 3. Optional turning off the border around the code view. The gray frame around the main window is hardcoded and cannot be styled in any way by an external QSS file. Over the past year I have used Sigil without this frame and I don't miss it, but maybe in MacOS or Linux systems the frame matters. The frame is defined in this way: Code:
static const QString TAB_STYLE_SHEET = "#managerframe {border-top: 0px solid white;" "border-left: 1px solid gray;" "border-right: 1px solid gray;" "border-bottom: 1px solid gray;}"; Code:
frame-> setStyleSheet (TAB_STYLE_SHEET); Image: sigil-border.png Image: sigil-dark-border-on.png Image: sigil-dark-border-off.png 4. Default empty files – a layout more similar to that after mending It's really a small thing. Two extra spaces (in two places) and one new line. Then the empty file before and after mending will be identical. Separate change for epub2 and epub3. Image: sigil-suggestion-4.png 5. Fix format case icon IMHO the text icon is not cool. When resizing icons on the toolbar, this icon is either too big or too small. Image: sigil-format-case-icon.png 6. Non-standard semantics (other.) in tooltips Epub2 files may have non-standard semantics (not in the main list) and then have the prefix "other." (e.g., other.footnotes). Sigil does not display tooltips for such xhtml files. Change in\src\Misc\GuideItems.cpp file: Code:
return rel.name; Code:
if (rel.name != "") { return rel.name; } else { return code; } |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
#1 is reasonable enough, but we'd need to remember to ifdef it conditionally. AA_DisableWindowContextHelpButton was only introduced in Qt5.10, and we try to ensure that Sigil will build and function with at least limited functionality back to Qt5.9.4 on Linux.
#2. I'm for anything that helps with moving Sigil toward better supporting a dark mode (however it's accomplished). #3. The frame is quite important. It's the central widget. It's visibility or appearance, however, is not vital. I've no real feelings (good or bad) on this particular suggestion. #4 Again, no strong feelings one way or another. #5 HOW DARE YOU! I slaved for minutes creating THAT icon! ![]() #6 I can live with or without this change. Last edited by DiapDealer; 12-08-2019 at 08:43 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,451
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I do not have strong feelings against any of these.
But it would certainly make things easier if we had a set of separate pull request for each the change you proposed so we can merge the ones people have no trouble with more easily. After everyone who wants to speaks up. Thanks, KevinH |
![]() |
![]() |
![]() |
#4 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,793
Karma: 6758980
Join Date: Mar 2015
Device: Kindle, iOS
|
#3 - Just so I'm clear, this would be an optional, user-customizable thing? If so, I always like the idea of user-customizable options, though I'm not sure I would make use of the option as the default has always been fine for me.
#5 - I have never felt this icon was too big or too small and am therefore a little leery of changing it, but I don't feel strongly about this. Everything else I don't have much opinion for or against. |
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I just noticed the ? a few days ago. I clicked to see what it actually did, and it looked like it did absolutely nothing.
Just thought it was one of those things that was always there and I just never noticed. Against this. That specific color (#039BE5) looks quite hard to read on white background, and even inserting it into: https://webaim.org/resources/contrastchecker/ gives a Contrast Ratio 3.07:1, and fails WCAG on nearly all background levels. I assume the vast majority has white background and leaves the colors on defaults. If someone goes out of their way to create a darker theme, is this link color not user-adjustable? Either seems fine to me. 3 more pixels of screen real estate seems like a plus! ![]() Quote:
Consistency is probably good. Seems like the change wouldn't hurt. But do you have an example of a book using this in the wild? Last edited by Tex2002ans; 12-09-2019 at 12:57 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Klak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
After regex search and replace in Calibre you can compare before and after code in 2 windows side by side.
It would be cool to add this to Sigil. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,634
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Maybe you can implement something like this:
![]() |
![]() |
![]() |
![]() |
#8 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Aug 2019
Device: none
|
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Lets not turn this thread into a general wishlist, please. Everyone is free to create their own thread, but this one should be about @Becky's suggestions.
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
We will try to look for colors that will strike a reasonable compromise RE contrast in Light and Dark Themes with regard to accessibility standards. A triple-A contrast-rating for both modes from WCAG is not very likely to happen, though. Dark Theme compromises RE Sigil's default colors/icons are going to eventually happen across the board, though; just to be clear. Many OSes already offer High Contrast themes (Windows 10 1909 included) for those who have accessibility needs. |
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 808
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
I will try to reply to comments later, I need to think about it.
I still have an additional idea. 7. Colors in Validation Results Image: sigil-validation-results-colors.png System variables are cool, but an even better section would be in the sigil_tweaks.ini file (if the file does not exist – default settings are used). Code:
[tweaks] border=false link_color=#3333FF validation=foreground info_color=#72A5D4 warning_color=#D4A572 error_color=#DE5E5E link_color (#2) – do not like blue or is illegible? enter your color for links validation (#7) – foreground/background. Whether the color in the Validation Results window is to be set for text or for the background info_color, warning_color, error_color – own colors in Validation Results |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'd rather not come up with a lot of individual tweaks to address dark theme aspects of various sigil widgets. If at all possible, I'd like to use QPalette generic "darkColor", "lightColor", "disabledColor" for the various ui elements that can then be styled or themed appropriately. One ini tweak file for the validation widget alone seems a bit messy to me.
|
![]() |
![]() |
![]() |
#13 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 808
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
If only an optional solution is possible – it will definitely be better than coming up with workarounds/tweaks.
Dark theme can be thought of after release 1.0. I wanted to gather in one place those elements that are an obstacle. I hope that users can have their opinion and then developers will have an easier task in the future. Sometimes something bothers for years, but when a new option/functionality appears, he thinks "How could I live without it?" ![]() Just the ini file with tweaks would cover all aspects that go beyond the default (light) theme and hardcoded elements. Please note that border (described in the first post) and link_color (these blue links in the About window) are just an attempt to collect changes in one place. The list is open and would allow you to add other "tweaks" in the future. And if one day it is possible without tweaks – even better. |
![]() |
![]() |
![]() |
#14 | ||||||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 808
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
Quote:
Quote:
Quote:
Quote:
Quote:
![]() I have thoroughly analyzed the guidelines regarding contrast and visibility for people with sight diseases. Since there is no perfect solution (and perfect blue for links), I have to accept that adjustment for the disabled is more important than subjective aesthetics. On the other hand, people with impaired eyesight would probably prefer not to use a dark theme, but a high contrast theme. Then the links are often yellow on a black background or similarly highly contrasting. Quote:
I have 769 e-books bought from Polish bookstores. 83 of them (10.8%) was used semantics of "other." in the guide section. |
||||||
![]() |
![]() |
![]() |
#15 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BTW that's an upcoming calibre enhancement, as I understand the change, it's what Windows users can (will ?) get if they have selected Dark in Windows->Settings->Personalisation->Colours. BR Last edited by BetterRed; 12-09-2019 at 08:17 PM. Reason: Clarification |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feature Suggestions for Future Version | Authorspeak | Sigil | 12 | 03-13-2014 12:21 PM |
Releasing a chapter at a time? | jhempel24 | Writers' Corner | 24 | 03-15-2013 08:11 AM |
Releasing updated eBooks | jhempel24 | General Discussions | 26 | 02-20-2013 07:26 AM |
PRS 650 releasing on 09/16 | sachinwalia | Sony Reader | 6 | 09-09-2010 10:45 AM |
Releasing Out of Print Books? | KindleKid | Reading Recommendations | 6 | 12-05-2008 03:24 PM |