Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2020, 05:47 PM   #61
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: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
I played around with this but dropping the highlight when focus is lost just does not work.

Every time a user clicks on a place in Preview to sync with CodeView the highlighting would be lost as Focus goes to Preview so you can not tell where you are after the sync (or that the sync even happened at all if no scrolling is involved). Similar problems happen with Find and Replace as it takes the focus but you can not easily see where you are finding and replacing as the highlight is lost.

I am afraid that is something that too many users rely on (ie - I do!) and so we will not drop current line highlighting when focus is lost as there are many outside windows can can and will interact with the CodeView window but are outside of focus.
Fair enough.

Removing the display line highlight was a suggestion to indicate that the CV window does not have keyboard focus. Panels such as the Book browser and ToC change the background colour of the current item (see third screen shot below) when they don't have focus. Perhaps a similar approach could be applied to the current display line in the CV panel; on reflection, that would be better than removing the highlight.

Quote:
Originally Posted by KevinH View Post
Sorry, but your window manager should be making things clear when focus changes by dropping/showing the insertion point cursor. So looking to see when the blinking cursor is in a window is the best way to tell if that window is able to accept keyboard input.

If you have trouble seeing the cursor, please try using Windows Accessibility features to help make it more clear (that does work with macOS Accessibility settings so it should with Window's as well).
Which is precisely what I did decades ago, viz:

Click image for larger version

Name:	Screenshot 2020-12-11 082149.jpg
Views:	159
Size:	107.2 KB
ID:	183910

Here you see compliance with that setting in Sigil's metadata editor :

Click image for larger version

Name:	Screenshot 2020-12-11 090735.jpg
Views:	191
Size:	54.6 KB
ID:	183913

Here you see non-compliance with that setting in Sigil's Code View panel:

Click image for larger version

Name:	Screenshot 2020-12-11 090911.jpg
Views:	152
Size:	725.3 KB
ID:	183914

Sigil is no Robinson Crusoe in this regard, the calibre editor and most browsers, text editors etc, don't comply with that setting either.

I don't really want to continue this discussion, the underlying deficiency presumably lies within Qt, and in this instance perhaps deeper than that. It's probably one of those deep-seated 'bugs' that some regard as a 'feature'

BR
BetterRed is offline   Reply With Quote
Old 12-11-2020, 11:08 AM   #62
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,654
Karma: 5433388
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BetterRed View Post
Panels such as the Book browser and ToC change the background colour of the current item (see third screen shot below) when they don't have focus. Perhaps a similar approach could be applied to the current display line in the CV panel; on reflection, that would be better than removing the highlight.
This is quite easy to do. On loss of focus invoke HighlightCurrentLine, and on regain of focus invoke HighlightCurrentLine, and then modify that routine to check if CV has focus to determine what background colour to highlight with.

As proof of concept, I used the line# background color to highlight the current line when no focus and the normal highlight the line color when it has focus.

This makes detecting if has focus or not much easier, while still allowing easy visual syncing between Preview and CodeView and with the various other dockwidgets.

If that colour combination works for you, I could easily push this to master.

Last edited by KevinH; 12-11-2020 at 12:04 PM.
KevinH is offline   Reply With Quote
Advert
Old 12-11-2020, 04:04 PM   #63
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: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
As proof of concept, I used the line# background color to highlight the current line when no focus and the normal highlight the line color when it has focus.
If that means this:

Click image for larger version

Name:	Screenshot 2020-12-12 075553.jpg
Views:	160
Size:	170.4 KB
ID:	183923

Then that would be perfect I like symmetry.

BR
BetterRed is offline   Reply With Quote
Old 12-12-2020, 11:19 AM   #64
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,654
Karma: 5433388
Join Date: Nov 2009
Device: many
Good. I will push that to master today.

FWIW, the BookBrowser highlight colours are inherited from the underlying OS to match what it typically does (at least that is what it does for most colours used). We choose, and users can set, the Line# Background colour (it is not inherited from the OS). It just happens to be the same in your case.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question Moonbeam111 KOReader 9 08-28-2019 12:16 PM
Quick Question.. The Branimal Kobo Reader 3 04-25-2011 08:17 PM
Quick question... Magic Man Calibre 18 09-05-2010 03:18 PM
PRS-600 Okay, quick question.... emonti8384 Sony Reader 13 11-12-2009 06:18 PM
Quick Question. Baz047 Sony Reader 10 12-09-2008 12:25 PM


All times are GMT -4. The time now is 03:56 PM.


MobileRead.com is a privately owned, operated and funded community.