Independent thumbnail background color for Dark mode.

Features wanted...
admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Independent thumbnail background color for Dark mode.

Post by admin »

klownboy wrote: 16 Feb 2022 20:50 EDIT: From testing, it appears you still have to refresh thumbnails if you transition from dark to light though or visa versa se pic after beta v22.80.0125. Correct? black on white background.jpg
Yes. The thumbs cache doesn't support transparency. Which is a good thing for speed.

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Independent thumbnail background color for Dark mode.

Post by klownboy »

Okay thanks Don. I'm just very glad that I'm still able to get a white folder thumb background in light mode and a black folder thumb background in dark mode.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

WirlyWirly
Posts: 195
Joined: 21 Oct 2020 23:33
Location: Through the Looking-Glass

Re: Independent thumbnail background color for Dark mode.

Post by WirlyWirly »

Thanks for the new update, finally got it working...

A couple tips for anyone else having trouble setting their colors...

1) The variable is case-sensitive, so make sure it's camel-case just like this otherwise it won't work... It took me longer than I care to admit to realize this...

Code: Select all

clrFolderThumbs1=41215 ; Top of gradient
clrFolderThumbs2=2607871 ; Bottom of gradient
clrFolderThumbsBorder=1 ; Outline color
2) Thumbs1 is the top (first color of gradient), Thumbs2 is the bottom (second color of gradient), and ThumbsBorder is the outline. If you want a flat look than just use the same color on Thumbs1/Thumbs2.

3) I've never seen/used this type of color-decimal and none of my usual color pickers were working for it. After a bunch of trial and error, I found an online color-picker to help me get the right colors. Look up your color using HEX and then scroll down and find the Windows Color (decimal) number, which is the one you'll paste into the Xyplorer.ini line (2607871 in this example): https://www.htmlcsscolor.com/hex/FFCA27

Image

Hope this helps someone, this was a pretty big headache just to pick some colors...

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Independent thumbnail background color for Dark mode.

Post by klownboy »

Hi WirlyWirly, thanks for the color background info. If I remember correctly, someone had posted another color picker site not long ago that was also very useful. I thought it was highend. I couldn't find it again.

Hey Don, is there any way you could support getting that folder thumbnail background and border color back to how it behaved in v22.90.0000 (i.e., where I could have folder thumbnail colors that were black in dark mode and white in light mode) and yet still support the gradient colors that WirlyWirly? I just downgraded to v22.90.0000 get it back. Honestly, I don't need to see a different color in the background of my thumbnailed folders to know they are folders and not files.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Independent thumbnail background color for Dark mode.

Post by admin »

AFAIK there is hardly any difference now. Can you show comparative screenshots?

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Independent thumbnail background color for Dark mode.

Post by klownboy »

These first 2 pics are with current v22.90.0006.
v22.90.0006 white background for folder thumb icons in dark mode after thumb refresh.jpg
v22.90.0006 white background for folder thumb icons in dark mode after thumb refresh.jpg (45.62 KiB) Viewed 1471 times
v22.90.0006 white folder thumb border in dark mode after thumb refresh.jpg
v22.90.0006 white folder thumb border in dark mode after thumb refresh.jpg (237.79 KiB) Viewed 1471 times
These next 2 pics are from v22.90.0000 of the same basic folder thumbnails after thumb refreshes.
v22.90.0000 black thumb background matches dark mode after refresh.jpg
v22.90.0000 black thumb background matches dark mode after refresh.jpg (45.19 KiB) Viewed 1471 times
v22.90.0000 black thumb folder border matches background.jpg
v22.90.0000 black thumb folder border matches background.jpg (253.03 KiB) Viewed 1471 times
I like seeing the black thumbnail background and borders match the dark black mode and same in white. The white or light mode is fine. All pics are with the same XYplorer settings here viewtopic.php?p=196260#p196260
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Independent thumbnail background color for Dark mode.

Post by admin »

Sure, because I removed the dark-smart as was desired:
viewtopic.php?p=196433#p196433

I'm losing interest in this tweak. What does everybody want now? :evil: I'm short before removing the whole tweak...

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Independent thumbnail background color for Dark mode.

Post by klownboy »

admin wrote: 21 Feb 2022 13:02 What does everybody want now?
Who knows. I know some users like WirlyWirly obviously want that gradient look for folder thumbnail background. Back a year or two users complained about the ugly yellow background colors.

Would it be possible that if one has the white color (16777215) for all 3 clrFolderThumb... settings in XYplorer.ini you would get the results of v22.90.0000 (smart darkened) white on white, black on black (i.e., it would be smart darked only if all three settings were 16777215)? If a user has something else they get their gradient look.

Sorry any confusion.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

WirlyWirly
Posts: 195
Joined: 21 Oct 2020 23:33
Location: Through the Looking-Glass

Re: Independent thumbnail background color for Dark mode.

Post by WirlyWirly »

Personally, I just wanted to have the yellow color that I'd grown accustomed to back. Finding out about this tweak was just a bonus, but if it's there then I'll put it to use.

Allowing a user to specify an exact color and then forcibly changing that color (smart-dark) doesn't make much sense to me. If I were switching back and forth between light/dark, then I'd pick a folder color that I thought was more neutral to both themes.

Of course, in Klownboy's case, he's going for an Alpha 0 (transparent) look for his folders, which isn't actually a color at all. Not sure how you'd approach that, maybe some kind of "Neutral" option like the preview window has. That, or as mentioned before, 2 seperate tweaks for light and dark mode.
Last edited by WirlyWirly on 21 Feb 2022 15:49, edited 1 time in total.

Horst
Posts: 1091
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Independent thumbnail background color for Dark mode.

Post by Horst »

I'm a little bit amused about that discussion about Thumbnail background :)
If I have dark mode the thumbnails background is black which is what I expect.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Independent thumbnail background color for Dark mode.

Post by admin »

I gave it one last shot. :)

PS: If you want the classic yellow don't use the bloody tweak at all. :)

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Independent thumbnail background color for Dark mode.

Post by klownboy »

WirlyWirly wrote: 21 Feb 2022 15:37 Of course, in Klownboy's case, he's going for an Alpha 0 (transparent) look for his folders, which isn't actually a color at all.
Well, my background colors are always going to be black in dark mode or white in light mode nowhere in between. I'm not sure you'd have to call that transparent, but I like the folder thumbnail's background color to match the panel's background. I'd prefer not to see a white border around my folder thumbnails when I'm in a dark mode as shown in my pic above.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

Display
Posts: 77
Joined: 21 Apr 2015 11:20

Re: Independent thumbnail background color for Dark mode.

Post by Display »

Sorry to bump this but I'm wondering if there's an existing tweak for manually choosing the thumbnail background colour?
admin wrote: 20 Feb 2022 15:35 Yes. The thumbs cache doesn't support transparency. Which is a good thing for speed.
Totally agree with this!
However in Dark mode it always treats transparency as black:
230222_XYplorer_black_transparency.png
230222_XYplorer_black_transparency.png (20.85 KiB) Viewed 483 times
-
Is it possible to specify the colour that XY uses to create the thumb so it matches the list view colour?
230222_XYplorer_opaque_canvas.png
230222_XYplorer_opaque_canvas.png (18.01 KiB) Viewed 483 times

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Independent thumbnail background color for Dark mode.

Post by admin »

Check out "Neutral" here: Configuration | Preview | Thumbnails | Transparency

Display
Posts: 77
Joined: 21 Apr 2015 11:20

Re: Independent thumbnail background color for Dark mode.

Post by Display »

I've tried the 'Neutral' but XY doesn't seem to be interacting correctly with transparency. It also appears to interact differently depending on the thubnail handler.

On the left is Explorer and on the right is XY set to 'Neutral':
(thumbnail handlers are ai=Adobe, af=Affinity, svg=SVGTextEditor, wav=MysticThumbs, png=Icaros)
230223_XY_vs_Explorer_alpha.png
230223_XY_vs_Explorer_alpha.png (84.28 KiB) Viewed 420 times
-
Here I've set all the handlers (except png/svg) to MysticThumbs. Also set MysticThumbs to use magenta for files with alpha (to visually see if it's reading the alpha information correctly). In the top row, the ai files have black bars on the sides - these bars should to be transparent but XY interprets them as black:
230223_XY_vs_Explorer_opaque.png
230223_XY_vs_Explorer_opaque.png (79.38 KiB) Viewed 420 times
-
Here I've set set XY to 'White', again XY interperts the transparent thumbs generated by MysticThumbs as black and SVGTextEditor remains white. The Icaros thumbnail handler for png seems to be the only file that's getting correctly rendered by XY (it also renders the 'Grid' setting correctly too):
230223_XY_vs_Explorer_white.png
230223_XY_vs_Explorer_white.png (84.21 KiB) Viewed 420 times

Post Reply