Bug 432961 - Background doesn't match well with transparent windows when icon painting / smart theme function is enabled
Summary: Background doesn't match well with transparent windows when icon painting / s...
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-15 08:38 UTC by jan.claussen10
Modified: 2021-02-15 19:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
picture 1 (23.06 KB, image/png)
2021-02-15 08:38 UTC, jan.claussen10
Details
picture 2 (26.49 KB, image/png)
2021-02-15 08:38 UTC, jan.claussen10
Details
picture 3 (73.58 KB, image/png)
2021-02-15 16:24 UTC, jan.claussen10
Details
attachment-21447-0.html (279 bytes, text/html)
2021-02-15 17:34 UTC, jan.claussen10
Details
attachment-24322-0.html (614 bytes, text/html)
2021-02-15 19:11 UTC, jan.claussen10
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jan.claussen10 2021-02-15 08:38:15 UTC
Created attachment 135690 [details]
picture 1

SUMMARY
I am using a transparent theme in Plasma. When I choose "Color from window --> Disabled", the color and transparency are fine because they are taken from Plasma (see picture 1). But when I choose "Color from window --> Any touching window/Active window" the color is lighter than it should be (see picture 2).

STEPS TO REPRODUCE
1. Use a transparent dark window theme
2. Choose Color from Window --> Any touching window

OBSERVED RESULT
Color is too light

EXPECTED RESULT
It should be the same as from the Plasma theme that is set for that window.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 1 jan.claussen10 2021-02-15 08:38:32 UTC
Created attachment 135691 [details]
picture 2
Comment 2 jan.claussen10 2021-02-15 08:43:33 UTC
To be more precise:

The transparency option of Latte does not fit the transparency of the Plasma theme anymore. I had to set the transparency of Latte to 60% to perfectly match it with the Plasma theme. But this only works when "Color from window" is disabled. When it is enabled I can't set the transparency to match the Plasma theme anymore. No matter what setting I take, it always has this light color.
Comment 3 jan.claussen10 2021-02-15 08:44:22 UTC
This is definitely related to Latte and not to Plasma this time. Please investigate!
Comment 4 jan.claussen10 2021-02-15 09:09:02 UTC
I think the problem is that there is a white color added to the Panel when lowering the opacity setting while having "Color from window" enabled. This does not happen when having it disabled. 

I btw use the Harmony theme and have opactiy set to 60%, if you want to reproduce.
Comment 5 jan.claussen10 2021-02-15 09:25:42 UTC
Okay this problem is hard to pin down.

It is not related to "Color from window". It is related to the icon painting function. I think the easiest way to change this would be to provide an option to have the painting turned off when any window is touching the panel.

I would like to paint only when the panel is transparent and use the plasma theme when the panel is not transparent.
Comment 6 Michail Vourlakos 2021-02-15 12:30:34 UTC
I can not follow your explanation. Lets start from the beginning:

1. Show me a screenshot of your Appearance advanced settings
2. Have you installed in your system the Latte Window Colors script https://store.kde.org/p/1290287/ ?
3. Have you set your default window color scheme appropriately in order to provide the colors you want? For example the Window Titlebar background and textColors?
4. How do you gain that transparency in your windows? What window decoration are you using? aurorae? breeze? something else?
Comment 7 jan.claussen10 2021-02-15 16:24:50 UTC
Created attachment 135704 [details]
picture 3
Comment 8 jan.claussen10 2021-02-15 16:31:15 UTC
2. Yes, of course. Coloring the windows works and I found out that the issue is not related to coloring.
3. Yes, I am experienced in forcing titlebar colors for programs.
4. I use the Plasma theme Harmony https://www.pling.com/s/Applications/p/1356763/ but it should not matter. I set the transparency of Latte to match the one from the theme by setting opacity to 60% and theme to Plasma. Then it works perfectly. If I set the theme to Smart though. It is lighter.
Comment 9 jan.claussen10 2021-02-15 16:34:17 UTC
I use the window coloring to not have the completely white bar when the icon painting is currently black. It works to get the color, but the color is lighter as in picture 1.
Comment 10 jan.claussen10 2021-02-15 16:37:50 UTC
Maybe it is easier to show you in a screencast...
Comment 11 Michail Vourlakos 2021-02-15 17:01:19 UTC
yep, send me a screencast in order to understand through google drive, dropbox etc...  try to avoid youtube for bad marketing reasons.
Comment 12 jan.claussen10 2021-02-15 17:34:21 UTC
Created attachment 135705 [details]
attachment-21447-0.html

Here is the link:

https://www.dropbox.com/s/jwmfx4kd22nrob0/Latte-screencast.webm?dl=0
Comment 13 Michail Vourlakos 2021-02-15 18:20:05 UTC
Please do not make assumptions on what is the problem because I can not follow.

From my understanding the problem is in your system:

B1. Go to plasma systemsettings->application style->window decorations. What theme are you using for Window Decorations?
B2. Go to plasma systemsettings->Colors->what color scheme have you chosen?
B3. With your mouse go to [2] selected color scheme, end at the bottom right corner there is a pencil. Use the pencil to open Color Scheme editor.
B4. After B3 search for the color of Active Titlebar. Is it set to dark? or even better to plasma theme background color?
Comment 14 jan.claussen10 2021-02-15 19:11:11 UTC
Created attachment 135709 [details]
attachment-24322-0.html

B1. Harmony
B2. Harmony
B3. I tried that already
B4. I tried that already

....and you were right again. I tried that yesterday and it didn't change anything. You know what the problem was? I still had old colors set from when I first played around with the automatic coloring. I had to remove them from the other applications. Strangely it also just worked after making a second color theme. Maybe the theme was broken.
Anyway, sorry for wasting your time. I still believe that making assumptions is totally appropriate.
Thank you!
Comment 15 jan.claussen10 2021-02-15 19:13:36 UTC
And great: Now the Plasmashell people just have to fix the problem with the background color for the Picture of the Day mode and everything is perfect :)