Xfce Forum

Sub domains
 

You are not logged in.

#1 Yesterday 10:04:19

moooartin
Member
Registered: 2017-05-05
Posts: 6
LinuxChrome 142.0

xfce4-docklike-plugin : How to make floating Window Preview

Hi,

I've been using the xfce4-docklike-plugin from ppa xubutnu-dev extras, the version i'm using is: 0.4.2-0ppa1~bpo24.04

I've been able to style it pretty much like I wanted to, but few things are missing:

1 - I'd like to make the Window Preview "float", to have some space between the panel and the Window Preview.

What've been trying for this is to make background-color transparent and add some margin, but I cannot access the window specifically for the docklike-plugin.
It the white part in this image

image.png

When viewing the Css Selectors, it seems like it is the window.background that could do the trick but it also used many times in  many other window and not just in side the panel.
image.png


2 - When the window is minimized, I want the preview to be smaller. I did not achieve to reduce the yellow part.

image.png


Here is the css I get for the moment:

box.menu{
    background-color: greenyellow;
    border-radius: 5px;
    margin: 15px;
    padding: 5px;
}
box.menu>widget.menu_item{
    background-color: red;
    border-radius: 10px;
    padding:0;
    margin:0;
}
box.menu>widget.menu_item>grid{
    background-color: magenta;
    padding:0;
    margin:0;
}
box.menu>widget.menu_item>grid>image:first-child{
    background-color: green;
    padding:0;
    margin:0;
}
box.menu>widget.menu_item>grid>image:last-child{
    background-color: yellow;
    padding:0;
    margin:0;
}
box.menu>widget.menu_item>grid>label{
    background-color: aqua;
    padding:0;
    margin:0;
}
box.menu>widget.menu_item>grid>button{
    background-color: blue;
    padding:0;
    margin:0;
}

Thanks for your time and help!

Last edited by moooartin (Yesterday 10:09:29)

Offline

#2 Yesterday 15:50:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,383
LinuxFirefox 145.0

Re: xfce4-docklike-plugin : How to make floating Window Preview

but I cannot access the window specifically for the docklike-plugin.

I don't think its possible. In the code, the preview window is a new GtkWindow element that is created but it has no style class associated with it. You can affect it with "window" directives (as you have noted), but these will affect all windows. Even in the code that you have, any other applications that use that hierarchy will be impacted.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 Yesterday 17:41:32

moooartin
Member
Registered: 2017-05-05
Posts: 6
LinuxChrome 142.0

Re: xfce4-docklike-plugin : How to make floating Window Preview

Dannnng...  sad

Even in the code that you have, any other applications that use that hierarchy will be impacted.

Yeah true it misses some "id" or "class" to be more specific... for the moment nothing other than the docklike-plugin Window Preview seems impacted. We'll see in the future.

I've open a "issue" on gitlab maybe there will be some answer.
https://gitlab.xfce.org/panel-plugins/x … issues/102


Thanks @ToZ for your answer

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 8 queries executed - Memory usage: 552.34 KiB (Peak: 553.19 KiB) ]