Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xuzhen opened this issue Dec 13, 2023 · 2 comments
Open

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

xuzhen opened this issue Dec 13, 2023 · 2 comments

Comments

@xuzhen
Copy link

xuzhen commented Dec 13, 2023

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.

@stefonarch
Copy link
Member

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
Copy link
Member

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants