View Single Post
Old 02-12-2026, 07:22 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,366
Karma: 31000000
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Comfy.n View Post
I haven't figured a way to test but maybe...

Code:
/* apply with app.setStyleSheet(...) */
*:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 0px;
}

/* target common editor widgets */
QLineEdit:focus, QTextEdit:focus, QPlainTextEdit:focus, QTreeView:focus {
    outline: 2px solid #FFFF00;}
Where would I put code like that, AFAIK calibre doesn't look for .qss files

Quote:
Originally Posted by BetterRed View Post
yellow like I have for Sigil (can't remember how, maybe a BeckyEbook .qss).
Actually, to get what I have in Sigil is a combination of a BeckyEbook .qss and a setting in Sigil's preferences.

In the .qss I can set border colour and width. Sigil preferences has a "Highlight Widgets with Focus (Needs Sigil Restart)" checkbox - yellow 1 pixel is in the code :sigh:

Who said it was okay to weave inconsistency and fragmentation into the Zeitgeist… when was that on any ballot. MS just sent me some toast, but they forgot the coffee.

BR
BetterRed is offline   Reply With Quote