lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
179 stars 135 forks source link

Improved styling of views of Fancy Menu a little #1982

Closed tsujan closed 5 months ago

tsujan commented 5 months ago
stefonarch commented 5 months ago

I can't get to work

 #FancyMenu AppView {
    background-color: red;
}

Same for CategoryView. Am I missing something? AppView has alwayspalette(view) background.

EDIT: I missed # as it's an object not a class.

 #FancyMenu #AppView {
   ....
tsujan commented 5 months ago

There is an issue with stying the 2 scrollbar, atm, this white square.

It isn't related to this PR. You could remove it by using this:

#FancyMenu QAbstractScrollArea::corner {
    background: transparent;
}

I found it only by chance ;) Before merging this PR, I wait for you to try the above trick and let me know if it works.

BTW, I also found a way to resize the widget such that CategoryView doesn't have any vertical or horizontal scrollbar with any font size (as long as it can be fit into the screen, of course). I'll make another PR after this one is merged.

stefonarch commented 5 months ago

It isn't related to this PR. You could remove it by using this:

I know - this snippet works, nice! For some reason the square was only visible in CategoryView but not with "All Applications where they are 2 scrollbars too.

BTW, I also found a way to resize the widget such that CategoryView doesn't have any vertical or horizontal scrollbar with any font size (as long as it can be fit into the screen, of course). I'll make another PR after this one is merged.

That's fine, in AppView both scrollbars can appear, with long names and/or in "All Applications"

tsujan commented 5 months ago

in AppView both scrollbars can appear

Yes. It'll be only for CategoryView.