04-19-2024, 04:38 AM | #136 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
|
04-19-2024, 09:38 AM | #137 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
Thanks! Last edited by KevinH; 04-19-2024 at 03:42 PM. |
|
Advert | |
|
04-19-2024, 09:39 AM | #138 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Is it another widget the captures focus or is the order wrong?
I tried it and I was able to tab between the Filter, the Table of Index Entries, the AddEntry button and Save button in a cycle. Does that work for you? Last edited by KevinH; 04-19-2024 at 10:04 AM. |
04-19-2024, 10:01 AM | #139 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
|
04-19-2024, 11:14 AM | #140 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
Ad Index Editor.
You are right. Once all the index items have passed, the focus jumps off the table, so all is well here. |
Advert | |
|
04-19-2024, 12:17 PM | #141 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
|
04-19-2024, 01:42 PM | #142 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Okay, I did notice one thing on macOS.
The highlight we add for CodeView can never seem to get larger that 1px even if we change the qss border style but the natural highlights generated by macOS seem to be about 3 pixels or more wide. So can everyone see the 1px solid highlight properly on their platforms? Does it match the highlight width used on QComboBoxes (see FindReplace) generated by your system style? Would it be better to change the Sigil generated highlight from 1px to 3px and make the associated padding-top, padding-bottom, ... changes to give Sigil enough room to draw the border properly? @Doitsu, @BeckyEbook, @DiapDealer, @retiredbiker, @BetterRed? Thoughts? |
04-19-2024, 02:52 PM | #143 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
I have the impression that on most widgets the default focus is 1px. But, for example, when you open the Preferences window, the OK button might have a 1px or with focus a 2px border.
EDIT: Presumably hover and focus+hover has a 1px border. The focus on the button itself may have a 2px. Last edited by BeckyEbook; 04-19-2024 at 02:58 PM. |
04-19-2024, 02:56 PM | #144 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
@DiapDealer: By the way, I think I see a problem with the recent commits regarding the inclusion of stylling when the wider cursor option is enabled.
Can't switch to a light theme by using an environment variable. |
04-19-2024, 03:48 PM | #145 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
So I will leave Windows focus border as is. On macOS, I will use a 3px border. if not mac and not windows (Linux) yet to be determined. |
|
04-19-2024, 08:47 PM | #146 | |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Quote:
The double width cursor in the code view does work perfectly, very nice! Here are various shots of things with focus highlight turned on and off. The most visible highlighting, to my old eyes, is the file tabs at the top of the code view window. The file names on hover will tell you if the focus highlight is on or off. Let me know if there is some specific spot you'd like me to look at... Last edited by retiredbiker; 04-19-2024 at 08:49 PM. |
|
04-19-2024, 09:12 PM | #147 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
Great! What about the focus highlight size for Preview, CodeView, BookBrowser, etc. Do they look like a good width or should they be wider? |
|
04-19-2024, 09:49 PM | #148 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Everything looks good in Preview and CodeView. In BookBrowser there doesn't seem anything to focus on? Tab and hover have no effect, tried it both docked and undocked. When it is docked, tabbing just goes into CodeView, and if floating tabbing does nothing at all that I can see.
To try and see what is supposed to be different, I tried changing the color with Code:
$ export SIGIL_FOCUS_HIGHLIGHT_COLOR="#FF4D00" |
04-21-2024, 11:45 AM | #149 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Using my Manjaro Linux KDE desktop as a test case, it seems on Linux all of the buttons, controls, lineedits, and comboboxes are all properly highlighted natively (so no need to add our highlighting to them). Only the major widgets/ qdockwidgets contents need to have focus highlights added to them.
I have now pushed this to master. Last edited by KevinH; 04-21-2024 at 07:49 PM. |
04-21-2024, 11:53 AM | #150 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
The reason it is hard to tell is that on Linux most of the focus highlighting is done natively by your desktop. Sigil will not try to overwrite it with your own. You control that in your Desktop Settings. All Sigil can control is the color of the highlights it adds. These include around the border of each of the major QDockWidgets. Those are the only highlight colors that Sigil can control. So on Linux to completely change all focus highlighting, you would need to change both the Sigil highlight color with an environment variable and then make sure you have used your own Desktop settings to set the proper color for its built-in highlighting. By default, Sigil will look at your native highlight color and choose the match it unless you use the environment variable. So on Linux, the changing the system desktop highlighting color should be enough to change all (no need for the environment variable). On platforms like MacOS that has very little native highlighting, the environment variable is a useful way of fine tuning the color. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Icon Redesign for future 1.0 Release of Sigil | shorshe | Sigil | 38 | 06-07-2016 12:29 AM |
Kindle Software Preview Release and calibre 'Fetch News' items | tomsem | Devices | 25 | 07-20-2011 09:02 AM |
Will amazon release another cheaper version of DX in the near future | CalvinL | Amazon Kindle | 6 | 07-31-2010 06:01 PM |
Suggestion For Future Release Of Calibre | clambert | Calibre | 5 | 07-10-2010 02:45 PM |
dotReader alpha release next month with future iLiad support possible | Alexander Turcic | News | 7 | 09-28-2006 01:24 PM |