lxqt-panel icon indicating copy to clipboard operation
lxqt-panel copied to clipboard

[Feature request] A direct way to obtain the styling of the panel

Open xuzhen opened this issue 1 year ago • 2 comments

I developed a plugin for LXQt panel. It embedded an external Python-GTK program in QWidget. I want to keep its background the same as the panel, so I need to redraw the background of that program.

Then I found that there is no direct way to get the background settings of the panel. I have to detect the current configuration file from the command line arguments, then find the required settings in that file and monitor file changes.

This method is not only troublesome, but also cannot guarantee that the configuration file format will not change in the future.

I hope there is a more direct way to get the styling of the panel and notify the changes of related options.

xuzhen avatar Dec 13 '23 01:12 xuzhen

Such a plugin is on the wish list of many users, so that is a nice achievement anyway! For getting the background color I see the issue but I'm not familiar with the code.

stefonarch avatar Dec 13 '23 07:12 stefonarch

You could try using a background image for the panel:

        <source>A partial workaround for widget styles that
cannot give a separate theme to the panel.

You might also want to disable:

LXQt Appearance Configuration →
Icons Theme →
Colorize icons based on widget style (palette)</source>

stefonarch avatar Dec 25 '23 08:12 stefonarch