Comments (6)
I had no problems to add it to dark and Valendas, but it would work only if you opened the menu twice, see lxqt/lxqt-themes#105 (comment) and response.
Maybe @tsujan gives you the long explanation.
EDIT: I see that you're right, it doesn't work anymore at all.
from lxqt-panel.
No, transparency isn't possible because the widget should work without stylesheet too, but Qt styles like Fusion and Breeze don't support window translucency. Only a Qt style like Kvantum does.
Fancy Menu with translucency and KWin's blur-behind, styled by Kvantum:
from lxqt-panel.
Since elsewhere I'd promised to give an explanation:
If you enable translucency in the code, Fancy Menu could be made translucent by Qt's Stylesheet style but, without stylesheet and with a Qt style like Fusion, either it'll be 100% transparent or it'll have a black background, depending on whether compositing is present or not.
A widget like Main Menu is different because it's a QMenu
, and QMenu
is drawn differently by QStyle.
All in all, it's about QStyle and that we want our widget to be usable with or without stylesheets and also with or without compositing — except for @stefonarch and me, I doubt that anyone uses Fancy Menu under Wayland.
from lxqt-panel.
Okay then, how about this: the older Wing Menu's main window is a QMenu, so we know this can be done. Would it be a lot of work to refactor the code that generates LXQtFancyMenuWindow such that is itself a QMenu rather than whichever unstyleable derived class it is?
I had kind of assumed it was built the same way to begin with...oops.
from lxqt-panel.
.... rather than whichever unstyleable derived class it is?
First, it is completely stylable. Second, it isn't a derived class.
the older Wing Menu's main window is a QMenu
Wing Menu was a QMenu
having a QWidgetAction
with a default widget, while Fancy Menu is simply a widget with a Qt::Popup
flag. I don't think anyone wants to sacrifice the simplicity of the latter just to force translucency, to say nothing of the probable side effects that might result, especially under Wayland.
from lxqt-panel.
The thing is, this is a step backwards in flexibility and themeability compared to Wing Menu.
How much work would reimplementing this that way really be? It sounds like you're saying the entire plugin as we have it now would just need to be "wrapped in" a QMenu one level up, from the sound of it. And I don't see why it couldn't still fall back to sane defaults if none are defined in the theme -- for example, if there's no LXQtPanelMainWindow {}
block defined, grab palette(window)
, palette(base)
, and palette(text)
.
Also, what exactly would happen under Wayland? I was under the impression Qt makes it more or less seamless to code for both...
from lxqt-panel.
Related Issues (20)
- Prevent multiple auto-selection in Fancy Menu
- Worldclock sometimes displays another timzone after resume from suspend
- [Feature request] - User-configurable icon sizes for QuickLaunch and StatusNotifierPlugin
- KDE Workaround to focus issues HOT 2
- Fancy Menu: misbehavior if an favorite app is disinstalled. HOT 9
- enable using color in panel custom widgets HOT 4
- CMake: warning about minimum version required too old HOT 1
- frequent freeze / hang that blocks some X11 keyboard/mouse events HOT 11
- Panel spams system log in an infinite loop freezing the system HOT 12
- System freezes randomly, Dbus Error pointing to lxqt-panel HOT 25
- [Feature request] Add info line about middleclick in worldclock → timezones HOT 2
- lxqt-panel: symbol lookup error: /usr/lib64/lxqt-panel/libvolume.so: undefined symbol: _ZNK14PluginSettings5groupEv HOT 6
- Show Deskop widget not working HOT 7
- Wrong icon sizes in the fancy menu? HOT 4
- [Feature request] Move responsibility for device management to pcmanfm-qt (plugin-mount) HOT 2
- Detection of overlapping windows for autohide stopped working across all virtual desks except for the first (leftmost) one HOT 12
- Task Manager plugin: buttons shifting position when opening or closing windows HOT 3
- [Feature request]Allow lxqt-panel to be built on a system without wayland HOT 1
- Settings not applied for dual monitor setup under wayland HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxqt-panel.