Files icon indicating copy to clipboard operation
Files copied to clipboard

Bug: Icons sometimes have a black background

Open hishitetsu opened this issue 1 year ago • 24 comments

Description

I confirmed this happens when Windows version is 10 and DPI scaling is set to 150%. It doesn't occur when DPI scaling is set to 100%.

150% DPI scaling: image

100% DPI scaling: image

Steps To Reproduce

  1. Set DPI scaling to 150%.
  2. Launch Files.
  3. Observe the sidebar

Requirements

Make the background transparent.

Files Version

3.3.0.0

Windows Version

10.0.19045.4170

Log File

n/a

hishitetsu avatar Mar 19 '24 08:03 hishitetsu

Does clearing the thumbnail cache resolve this?

yaira2 avatar Mar 19 '24 14:03 yaira2

Does clearing the thumbnail cache resolve this?

No.

hishitetsu avatar Mar 19 '24 15:03 hishitetsu

I can't repro this issue in Windows 11, is it only an issue in Windows 10?

yaira2 avatar Mar 19 '24 21:03 yaira2

I can't repro this issue in Windows 11, is it only an issue in Windows 10?

Yes.

hishitetsu avatar Mar 20 '24 01:03 hishitetsu

Does it also occur at higher scales? We might need to cap the requested size for the pinned items in Windows 10. Alternatively, we can make the black background transparent at runtime.

yaira2 avatar Mar 25 '24 22:03 yaira2

Oddly enough, I found that this only occurs when the scale is 150%. It doesn't occur at 125% or 175%.

hishitetsu avatar Mar 26 '24 01:03 hishitetsu

That's interesting, perhaps they don't provide a size for 150% in which case we should skip to 175% on Windows 10.

yaira2 avatar Mar 26 '24 01:03 yaira2

I have same problem on 100% DPI

Sicquze avatar Mar 31 '24 11:03 Sicquze

I have same problem on 100% DPI

That's likely unrelated, in most cases that's a Windows bug and can be resolved by clearing the thumbnail cache.

yaira2 avatar Mar 31 '24 14:03 yaira2

It occur to me when my DPI scaling is 100% or 125%.

yrifl avatar Apr 02 '24 13:04 yrifl

I don't have 150% dpi scale.

yrifl avatar Apr 02 '24 13:04 yrifl

@yrifl Can you try erasing cache?

0x5bfa avatar Apr 02 '24 14:04 0x5bfa

I have tried cleaning the thumbnail cache, and rebuild it.

yrifl avatar Apr 02 '24 16:04 yrifl

@Sicquze @yrifl can you upload a screenshot?

hishitetsu avatar Apr 03 '24 00:04 hishitetsu

@Sicquze @yrifl can you upload a screenshot?

image

Sicquze avatar Apr 04 '24 06:04 Sicquze

That's likely unrelated, in most cases that's a Windows bug and can be resolved by clearing the thumbnail cache.

Nope, it didn't work for me.

Sicquze avatar Apr 04 '24 06:04 Sicquze

This is a widget, not the sidebar. In any case, Windows 10 seems to have a black background for icons of certain sizes.

hishitetsu avatar Apr 05 '24 00:04 hishitetsu

This is a widget, not the sidebar. In any case, Windows 10 seems to have a black background for icons of certain sizes.

It's the same in sidebar

Sicquze avatar Apr 06 '24 09:04 Sicquze

I have Windows 10.0.19045, and I set custom scaling as 100% in Advance scaling options because I am using KVM switch before monitor, Windows identified my monitor scaling to 175% by mistake. I can conform the bug. This bug exists at almost everywhere in Files which referenced this icon, or at least in sidebar, title of tab, homepage, %USERPROFILE% (exactly, this sub-item of the icon set. e.g. smaller desktop icon looks like a blue desktop but bigger one has a folder with blue desktop, and the bug only exists on the smaller one). This cannot resolve by clearing thumbnail cache. Sorry for my poor English.

jieran233 avatar May 10 '24 08:05 jieran233

I have both a Windows 10 (10.0.19045.4412) and Windows 11 machine with the same version of Files (3.4.1.0) and the W10 one has this same black background in the Desktop and Images directories (I don't remember seeing it anywhere else). I have DPI scaling at 100%. imagen

david03130 avatar Jun 02 '24 07:06 david03130

Small size icons without alpha channel have also black background. image

mac-kn avatar Aug 24 '24 12:08 mac-kn

@mac-kn is your DPI 125%?

0x5bfa avatar Aug 24 '24 12:08 0x5bfa

DPI: 100% Windows 11 Pro 23H2 22631.3880

mac-kn avatar Sep 01 '24 06:09 mac-kn