You are not logged in.
Hi!
Since xfdesktop-4.19.1 i have had problems with blurry font and lost transparency which only applies to xfdesktop, see this:
https://gitlab.xfce.org/xfce/xfdesktop/-/issues/268
It has come to my understanding that the developer has removed some "custom" code and now show what the gtk-theme tells it to show. Why this theme look only applies to xfdesktop and no other component is beyond me but whatever, no meaning to argue.
Apparently you can restore the old look with ~/.config/gtk-3.0/gtk.css.
I have found out somewhat what to type in gtk.css, like:
XfdesktopIconView.view
XfdesktopIconView.view:active
XfdesktopIconView.rubberband
XfdesktopIconView.label:active
But i would like to have the old look back, and it´s not that easy to find the previous, transparency and colors and pixel border thickness and so on...
Do anyone now how the get the 4.18.1 look back?
Last edited by Von_Kossa (2023-10-21 10:55:49)
Offline
i have come up with something like:
/* xfdesktop icon theme */
XfdesktopIconView.view {
background-color: rgba(0,0,0,0.0);
}
XfdesktopIconView.view:active {
background-color: rgba(0,0,0,0.3);
color: #3584e4;
border-radius: 1px;
}
XfdesktopIconView.rubberband {
background-color: rgba(53,132,228,0.2);
}
XfdesktopIconView.label:active {
background-color: rgba(53,132,228,0.5);
color: #ffffff;
border-radius: 3px;
}
Last edited by Von_Kossa (2023-10-18 17:49:13)
Offline
i have come up with something like:
Does this fix the issue for you? Theme developers will also need to adapt.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I´m not sure, still working on it.
Offline
Updated above mentioned theme, i think i am pretty close now. At least comparing 4.18.1 with or without entries in gtk.css.
After upgrading to 4.19.1 again and testing it in gtk.css, everything is not working as intended.
For some unknown reason for me it ignores som lines in 4.19.1
For example:
XfdesktopIconView.label:active {
background-color: rgba(53,132,228,0.5);
color: #ffffff;
border-radius: 3px;
}
background-color is ignored, instead it shows completely transparent background. color and border-radius is picked up as it should.
Last edited by Von_Kossa (2023-10-18 19:08:45)
Offline
What GTK (Appearance) theme are you using?
Based on the images you posted to the bug report, it looks like you are trying to make the default (unselected) icon background transparent. To do so:
XfdesktopIconView.view .label {
background: transparent;
color: #ffffff;
border-radius: 3px;
}
But in the above code, it looks like you are trying to affect the selected (active) icon. Try using the selected pseudo class:
XfdesktopIconView.view .label:selected {
background-color: rgba(53,132,228,0.5);
color: red;
border-radius: 3px;
}
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I use Adwaita theme.
Actually unselected and rubberband works as it should. It is the XfdesktopIconView.view:active and XfdesktopIconView.label:active parts that doesn´t work.
I think this is because some parts are already defined in Adwaita and overrides my settings in some way. For example in XfdesktopIconView.label:active i think adwaita has already set full transparency for label making background-color useless. so how do you unset it?
Offline
Try using the "selected" pseudo class instead of the "active" one:
XfdesktopIconView.view .label:selected
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Yeah i´ll test that, but i don´t think it will make any difference:
selected = when you hoover over an object but don´t click on it.
When i have the object active it ignores the background-color.
Offline
selected = when you hoover over an object but don´t click on it.
Thats the ":hover" pseudo-class.
When i have the object active it ignores the background-color.
Try with ":selected".
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Yes sir, yes.
Offline
Close but no cigarr.
After changing to selected it responds to changes. The label section now works as it should but this section doesn´t:
XfdesktopIconView.view:selected {
background-color: rgba(0,0,0,0.3);
color: #3584e4;
border-radius: 1px;
It was supposed to set the color of the icon to #3584e4, but no luck.
Offline
It was supposed to set the color of the icon to #3584e4, but no luck.
What do you mean by "the color of the icon"? The icon is an image. Can you provide screenshots?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
4.18.1 with:
XfdesktopIconView.view:active {
background-color: rgba(0,0,0,0.3);
color: #3584e4;
border-radius: 1px;
Unselected icon:
Selected icon:
Changed color to black:
XfdesktopIconView.view:active {
background-color: rgba(0,0,0,0.3);
color: #000000;
border-radius: 1px;
Offline
But the color of the icon does look like #3584e4 - its the hue that covers it. Compare that to the black hue of the last image.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Yes indeed it is #3584e4, but the image shows xfdesktop 4.18, if i do the same in 4.19 it does not change color.
Even if i change to selected from active, it remains like the above "unselected" image.
XfdesktopIconView.view:selected {
background-color: rgba(0,0,0,0.3);
color: #3584e4;
border-radius: 1px;
Last edited by Von_Kossa (2023-10-20 19:17:26)
Offline
Okay, now I understand what you are saying. Apologies for not understanding earlier. I can replicate the issue when comparing 4.18.1 and 4.19 on my system. The secret is that in 4.18.1, you need to use the ":active" pseudo-class, but in 4.19, this pseudo class no longer works.
This appears to be the commit that refactors the code in the icon view. I've tried to revert the style changes in the xfdesktop-application.c file, but it doesn't make a difference. There must be something else in that refactor code that impacts the :active psuedoclass.
From the commit comment:
This turns the icon view into more of just a view, and removes a lot of
the icon-related logic. Cell renderers are used to draw the icon image
and label now. The view uses GtkTreeModel to populate itself, rather
than having the view managers add/remove things directly to/from the
view. The icon view now doesn't know anything about the view managers,
and the manager is responsible for creating and packing an icon view
into the desktop window.
My bolded emphasis in the quote. Perhaps this change removed the ability to saturate/recolor the icon like in 4.18.1.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I managed to get it somewhat to work, for some strange reason XfdesktopIconView.view:active worked in this case but only on "color".
So this is my solution for now:
/* xfdesktop icon theme */
XfdesktopIconView.view {
background-color: rgba(0,0,0,0.0);
color: #ffffff;
}
XfdesktopIconView.view:active {
color: #3584e4;
border-radius: 3px;
}
XfdesktopIconView.rubberband {
background-color: rgba(53,132,228,0.2);
}
XfdesktopIconView.label:selected {
background-color: rgba(53,132,228,0.5);
color: #ffffff;
border-radius: 3px;
}
I will marked this as [SOLVED] even if it is not entirely correct.
Also, thanks for all your help ToZ.
Last edited by Von_Kossa (2023-10-21 11:05:22)
Offline
[ Generated in 0.016 seconds, 8 queries executed - Memory usage: 613.65 KiB (Peak: 646.93 KiB) ]