Re: Library Tree Discussion
Reply #516 – 2023-06-09 00:16:00
@Defender 1) Search text: selected background colour If pseudo transparency is enabled the background colour seemed irrelevant and so is hard coded blue RGB(0, 153, 255) If you want to change it now, you can alter a little code, comment out window.IsTransparent in ~line 686 of interface.js (I'll likely make the change for the next version):this.col.searchSel = /*window.IsTransparent ||*/ !this.col.bgSel ? 0xff0099ff : this.getContrast(this.col.search, this.col.bgSel) > 3 ? this.col.bgSel : this.getBlend(this.col.search, this.col.bg == 0 || this.img.blurDark ? 0xff000000 : this.col.bg, 0.25); It should then use the background selected colour (CUI or custom), unless there's insufficient contrast with search text, when a blend of search text colour and background is used. 2) ScrollingThis is not an issue in folder view. That's because drawing the text is much more straightforward. In the text selection pic there is image + text + there could also be text overlayed on top of the thumbnails etc. That makes the handling much more complicated, especially with smooth scroll enabled. To deal with this, for image backgrounds generated internally by library tree such as blur backgrounds or those generated by single panel SMP themes like Georgia Reborn, library tree seamlessly overlays a segment of the image background to hide the scroll items. In your case an external image is being used which library tree has no access to. There used to be a window.GetBackgroundImage() method which would have overcome this, but that was removed pre-SMP. Consequently, in pseudotransparent mode the default is to use a solid overlay. You can choose the colour. Alternatively, the top bar can be hidden and in layout metrics the margin override top/bottom (no top bar) set to 0. These are in the display tab. It is possible to make a few changes to the code so that when scroll has ended, no unwanted scroll items are in the top bar. But during scrolling, with smooth scrolling enabled, without an overlay they will pass through the top bar. Smooth scrolling can be switched, to stop that, but IMO that's inferior for images. If you want to try I can pm you code changes. Another possibility might be to somehow or other get the background image to library tree.