01-07-2023, 11:56 AM | #1 |
Enthusiast
Posts: 46
Karma: 10
Join Date: May 2021
Device: PW 2 3gb
|
Horizontal scrollbar in editor window
Is it possible to get a plugin for Sigil, or an update to the program itself, such that a horizontal scroll displays in the editor window under the currently open pages, reminiscent of VS Code?
Man, that would be nice. Thanks for listening. - Andy |
01-07-2023, 12:53 PM | #2 |
A Hairy Wizard
Posts: 3,223
Karma: 19000635
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??? |
01-07-2023, 02:49 PM | #3 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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? |
01-07-2023, 05:40 PM | #4 |
null operator (he/him)
Posts: 20,998
Karma: 27620706
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 |
01-07-2023, 05:59 PM | #5 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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. |
01-07-2023, 07:30 PM | #6 |
null operator (he/him)
Posts: 20,998
Karma: 27620706
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 |
01-07-2023, 08:26 PM | #7 |
Enthusiast
Posts: 46
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. |
01-07-2023, 08:36 PM | #8 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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. |
01-07-2023, 08:43 PM | #9 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
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. |
|
01-07-2023, 09:20 PM | #10 |
null operator (he/him)
Posts: 20,998
Karma: 27620706
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 |
01-08-2023, 11:26 AM | #11 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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 11:28 AM. |
01-08-2023, 03:02 PM | #12 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
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 03:09 PM. |
Tags |
editor, horizontal scroll, plugin, scroll, update |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I clicked on the X in the Editor File Preview Window | HappyCalibreUser | Editor | 8 | 01-31-2022 12:29 PM |
Spell Checker window on top of Editor window | Calibre-Fan | Editor | 3 | 01-30-2016 12:48 PM |
TOC Editor window - oversized | Paulie_D | Editor | 4 | 05-05-2015 06:29 PM |
Window Editor Resizing | Crafter | Editor | 4 | 02-13-2015 03:57 AM |
Editor Window settings | BetterRed | Editor | 17 | 04-18-2014 05:51 AM |