View Single Post
Old 04-27-2024, 09:07 PM   #165
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BetterRed View Post
AFAIK: on Windows 10 there's no easy way to control the system colour palette other than registry hacks, or 3rd party payware.

I disabled the .qss tweak, and set the EnvVar thus:

Code:
SIGIL_FOCUS_HIGHLIGHT_COLOR=#FFFF00
That put a yellow box around the CV window ✔

Attachment 207871

But other places I still see midnight Blue, which is acceptable on text boxes, barely on buttons with text, and practically invisible on buttons with icons such as those under Preview.etc:

Attachment 207872

So I re-enabled the .qss tweak

Attachment 207873

Which gives me yellow borders everywhere ✔

BR

Hmm ... then something is broken.

That environment variable should override all highlight colors on the widgets specified. The only widget intentionally left out is the QComboBox that gets a bit messed up when it is styled with a stylesheet on Windows and macOS - see BeckyEbook's post about the Find Replace qcomboboxes earlier in this thread.

Update:
And your yellow box in Find Replace is a QComboBox! To check out non-QCombobox focus highlighting go to Sigil Preferences and play around with the controls in some of the Preference windows.

Update 2:
As for buttons and other controls on Windows, I can add them so that the override color works on them. I do that now for macOS. I just have no way to test changes on Windows so I did not add them in case they had problems similar to QComboBoxes has on Windows under light mode.

The approach used by BeckyEbook's qss just had some issues in Windows in light mode (and dark) and macOS because of Qt's idiocy. I am attempting to work around them by more selectively applying the highlight to specific widgets and then matching the system highlight color to handle the exceptions. We can certainly expand Windows to match what is done on macOS.

Last edited by KevinH; 04-27-2024 at 09:32 PM.
KevinH is offline   Reply With Quote