![]() |
#1 |
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: May 2021
Device: PW 2 3gb
|
Horizontal scrollbar in editor window
![]() Man, that would be nice. Thanks for listening. - Andy |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,160
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Not sure why you would need to scroll under normal circumstances??? The main editing window (code view) automatically wraps… and if you select to not wrap then a horizontal scroll bar appears IIRC.
Unless you are talking about a scroll bar instead of the arrows to select the different tabs when you have multiples open at a time??? |
![]() |
![]() |
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,020
Karma: 5449552
Join Date: Nov 2009
Device: many
|
As Turtle91 says, the CodeView editing window does auto wrap while still properly numbering the lines. If you turn off wrapping (the default) then a horizontal scrollbar will appear if needed.
Also fyi, Plugins in Sigil can not modify the Sigil ui itself by design for safety reasons (to help prevent a plugin from crashing Sigil), so a plugin is not what you are looking for. What version of Sigil and what Platform are you using? If Linux perhaps some desktop theme is interfering with the scrollbar being shown? |
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,857
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Perhaps the OP is referring to the scroll bar slider, they can be very hard to see in Windows. It's a Qt dark mode 'thing', there are threads about it in the calibre editor forum.
BR |
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,020
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Could be.
But even in your image both horizontal and vertical scrollbars are visible and right where you expect them to be. They just don't jump out at you, which I personally like, but to each their own. Of course, one could use Sigil/Qt's .qss file approach to try to style them. |
![]() |
![]() |
![]() |
#6 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,857
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
A horizontal scroll bar with a slider you can't see is about as useful as….
But I normally have line wrap enabled so it rarely bothers me. I wonder if the OP realises that line wrap is toggled in the CV context menu. I recall initially looking for it in preferences, then in the menus; and cursing before I finally found it ![]() BR |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: May 2021
Device: PW 2 3gb
|
"Unless you are talking about a scroll bar instead of the arrows to select the different tabs when you have multiples open at a time???"
Yes. ![]() |
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,020
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Sorry, the tab bar will create arrow buttons when it gets too crowded but a scrollbar there is not something we will be adding.
Use the BookBrowser to force the tabbar to bring the file you want to the front when too many tabs are opened. You can also right click on a tab to close all others to help keep a small working set size. |
![]() |
![]() |
![]() |
#9 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,020
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Quote:
Custom colours for the slider may be possible. But if calibre suffers from the same thing, it might be something that Windows dark mode needs to address or Qt itself. |
|
![]() |
![]() |
![]() |
#10 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,857
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Other applications in Windows dark mode are fine out of the box, e.g. file managers, office, browsers, editors etc - for me its just Qt apps Sigil and Calibre.
FYI : Calibre Editor: Scroll bars with higher contrast BR |
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,020
Karma: 5449552
Join Date: Nov 2009
Device: many
|
I would be happy to add in a windows dark mode specific Qt .qss stylesheet to the CodeView editor to increase contrast but since I do not have access to a Windows box and can not see the issue or compare against other non Qt apps in dark mode, I have no way to test anything.
Sigil can already read and use a .qss stylesheet, so if someone with access to Windows can generate a piece of stylesheet, I would be happy to include it. See: https://bugreports.qt.io/browse/QTCREATORBUG-15865 and https://forum.qt.io/topic/104646/why...is-transparent for ideas and approaches. Last edited by KevinH; 01-08-2023 at 10:28 AM. |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,824
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
There's already a generic windows dark mode qss resource (:/dark/win-dark-style.qss) that gets loaded by Misc/SigilDarkStyle.cpp (which in turn is loaded on Windows whenever main.cpp determines that windows dark mode is wanted).
That existing resource might be the place to put some changes. Especially if assigning a new qss file/resource to CodeView causes any issues with the default qss. Preview's scrollbars are styled by css being injected. @BeckyEbook is pretty handy with this qss stuff. She contributed a lot to the Windows dark mode when we were first tweaking it. Last edited by DiapDealer; 01-08-2023 at 02:09 PM. |
![]() |
![]() |
![]() |
Tags |
editor, horizontal scroll, plugin, scroll, update |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I clicked on the X in the Editor File Preview Window | HappyCalibreUser | Editor | 8 | 01-31-2022 11:29 AM |
Spell Checker window on top of Editor window | Calibre-Fan | Editor | 3 | 01-30-2016 11:48 AM |
TOC Editor window - oversized | Paulie_D | Editor | 4 | 05-05-2015 05:29 PM |
Window Editor Resizing | Crafter | Editor | 4 | 02-13-2015 02:57 AM |
Editor Window settings | BetterRed | Editor | 17 | 04-18-2014 04:51 AM |