I would like to discuss what, if anything, Leo's standard themes should do about the arrow issue. Of course, it's always possible to modify any theme and put it into your own .leo/themes directory, but I'd like to improve a new or non-developer user's experience with Leo. That makes me want to have something visible in the line-by-line areas.
A full solution would require supplying our own arrows and styling all the parts of the scrollbars. I don't especially want to personally create up-, down-, left- and right- arrowhead images (maybe with various colors to suit various themes), and I would be reasonably well satisfied with the style shown in default-theme-page-by-page-color screenshot, which I'm repeating here. An alternative would be to style all the scrollbar pieces ourselves and accept having a line-by-line region with a dot but not an arrow. If there is some agreement, I would update the following themes in Leo's directory: - DefaultTheme.leo - EKRDark.leo - minimal-ui-tbp_dark_solarized.leo - minimal-ui-tbp_light_quasi-solarized.leo - minimal-ui-tbp_light_solarized.leo - tbp_dark.leo I would leave the tbp-xxx-solarized themes alone. They look the same as the current minimal-ui-tbp-xxx-solarized themes (although their overall CSS is more detailed than it needs to be), so anyone who uses the tbp-solarized themes but prefers the current scrollbar appearance could use them. Please reply with your opinions and suggestions. On Saturday, October 29, 2022 at 10:21:00 AM UTC-4 Thomas Passin wrote: > Here is a screen shot of the default Leo theme, showing the scrollbars > with no arrows (default_scroll_bars.png). Next is the same theme with all > CSS styling removed ( default-theme-no-scrollbar-css). Apparently Qt could > not match the background color so it provided a hatched appearance for the > page-by-page areas. Qt applies a reasonable solid color for some themes > but hatched like this for others. Notice that we now have arrows at the > ends. > > Next is the same theme but has specified a color for the page-by-page > areas (default-theme-page-by-page-color.png). > > I have also added an image from a Qt tutorial on styling scrollbars > (stylesheet-scrollbar.png). It's for a horizontal scrollbar and shows the > line-by-line areas but not with actual arrows. Leo themes could do > something similar - I have worked out the combination of margins and > heights to make it work - but I like arrows better. > > > On Saturday, October 29, 2022 at 10:00:50 AM UTC-4 Thomas Passin wrote: > >> I have an issue with Leo's scroll bars, especially the vertical scrollbar >> for the outline view. Most of the more recent themes don't show an arrow >> at the ends of the scrollbar region. >> Scroll bars normally have two clickable regions, the line-by-line region >> and the page-by-page region. The line-by-line region usually shows an >> arrow to click, except for these Leo themes. The page-by-page region is >> everywhere in the scollbar area that isn't the handle or the arrows. >> >> With invisible arrows, I can't always tell if I'm clicking in the >> page-by-page or the line-by-line, so sometimes the outline will >> unexpectedly jump by a page when I wanted a line. I really dislike that. >> This happens with the newer "solarized"-based themes including Leo's >> default theme, and my own themes (the ones with "tbp" in their names) that >> are derived from the default. >> >> I have experimented with the CSS styles for the parts of the scrollbars, >> and it's very tricky. There are very few CSS properties that you can >> change and still have the arrows. Basically, without adding CSS properties >> to the stylesheets, Qt figures out the right colors, etc., to match your >> page colors, and sets up arrows and borders to suit. But change one color, >> padding, margin, etc, and then Qt gives up and makes you specify everything >> yourself. And you won't get an arrow. You can arrange to have a box with >> a dot where the arrow normally is, and you can provide your own arrow >> image. It's tricky but doable to get that set up. >> >> The two exceptions I have found are that you can change the background >> color of the page-by-page regions, and you can change the width of the >> scrollbars. >> >> To avoid making this post even longer, I'll give examples in my next >> post, and then ask readers for their opinions and suggestions. >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/1276df97-e8d5-4953-8d58-3134a8931e00n%40googlegroups.com.
