gmc-holle / xfdashboard

Maybe a Gnome shell like dashboard for Xfce
GNU General Public License v2.0
121 stars 14 forks source link

CSS doesn't quite work like you'd expect in themes #198

Closed davehayes closed 2 years ago

davehayes commented 2 years ago

I am trying to have xfdashboard -only- display windows that aren't minimized or "pinned". So as an experiment I tried this in the Style CSS:

.window-state-minimized {
    display: none;
}

That turned the rendered windows dark, but left their outline. Thus this did not remove their display completely like I would expect. I'm confused here. How would I achieve what I am trying to do above?

Thanks in advance.

gmc-holle commented 2 years ago

Hi. xfdashboard supports theming via CSS files but only as a "language". It does not support any HTML-like CSS declaration, only its own declaration as listed at [http://xfdashboard.froevel.de/theming-unstable.html]. Setting any kind of "display" value isn't supported at all, that means you cannot hide any actor (or elements) via CSS. Not yet at least, as I like this idea. Maybe I can support it some day.

gmc-holle commented 2 years ago

It is now possible with commit 36ae310c9f73dbf38f62c31ed655ba57169320fe . Check out next development version ;)

davehayes commented 2 years ago

Thank you so much! This works!

One step closer to expose behavior. :)

davehayes commented 2 years ago

One more thing though. I cannot seem to run in daemon mode for faster startup. This is what it told me:

(xfdashboard:10014): GVFS-RemoteVolumeMonitor-WARNING **: 11:56:55.094: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
Fontconfig error: Cannot load default config file: No such file: (null)

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.206: Desktop ID 'exo-web-browser.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.206: Desktop ID 'exo-mail-reader.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.206: Desktop ID 'exo-file-manager.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.206: Desktop ID 'exo-terminal-emulator.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.210: Desktop ID 'exo-web-browser.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.210: Desktop ID 'exo-mail-reader.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.210: Desktop ID 'exo-file-manager.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.210: Desktop ID 'exo-terminal-emulator.desktop' not found

(xfdashboard:10014): xfdashboard-WARNING **: 11:56:55.249: Determination of application by checking environment variables is not supported at this system.
** Use environment variable XFDASHBOARD_DEBUG to enable debug messages
** To get a list of debug categories set XFDASHBOARD_DEBUG=help

(xfdashboard:10014): Clutter-WARNING **: 11:56:57.983: Attempting to map a child that does not meet the necessary invariants: the actor 'ClutterActor' is parented to an unmapped actor 'XfdashboardLiveWindow'

(xfdashboard:10014): Clutter-WARNING **: 11:56:57.983: Attempting to map a child that does not meet the necessary invariants: the actor 'XfdashboardActor' is parented to an unmapped actor 'XfdashboardLiveWindow'

(xfdashboard:10014): Clutter-WARNING **: 11:56:57.983: Attempting to map a child that does not meet the necessary invariants: the actor 'XfdashboardActor' is parented to an unmapped actor 'XfdashboardLiveWindow'
**
Clutter:ERROR:clutter-actor.c:1279:clutter_actor_set_mapped: assertion failed: (CLUTTER_ACTOR_IS_MAPPED (self))
Bail out! Clutter:ERROR:clutter-actor.c:1279:clutter_actor_set_mapped: assertion failed: (CLUTTER_ACTOR_IS_MAPPED (self))

I have no idea how to proceed (which doesn't normally stop me) but I've experienced an EOUTOFTIME. I will look more tomorrow. Any hints are warmly appreciated.

gmc-holle commented 2 years ago

Good morning,

it seems you are running an unix OS but it's not Linux. FreeBSD or any other BSD-derived one? So sadly I will be not help as I do not run such systems. But running the daemon with environment variable XFDASHBOARD_DEBUG set to "all" and maybe running it in a gdb session will help to narrow down this problem.

Regards, Stephan

davehayes commented 2 years ago

Er, this is FreeBSD. :) I'm curious about your conclusion there. What made you say that? I will admit that my system might have some differences to stock ideas.