do not display empty list element (on launch)
First of all, thanks for the project!
I am trying to get anyrun to look more like Spotlight and I couldn't get the "list" element that contains the rows (of plugins) to hide when there's nothing to be shown.
Here's what it looks like:
And here are the nodes, I am certain that my issue is with element list with ID main
Here's the CSS I am using right now:
window {
background-color: transparent;
}
entry {
border: none;
box-shadow: 0 8px 16px -8px #555;
border-radius: 8px;
font-size: 16px;
padding: 8px 16px;
margin-bottom: 16px;
}
main {
border: none;
border-radius: 8px;
font-size: 16px;
padding: 8px 16px;
}
list {
border: none;
border-radius: 8px;
font-size: 16px;
}
Have you tried doing a style reset before applying your styles?
* {
all: unset;
}
/* other styles */
I found this solution in one of discussion posts https://github.com/anyrun-org/anyrun/discussions/71#discussioncomment-9752077
Edit: I have shared my current styling in a discussion post if it helps https://github.com/anyrun-org/anyrun/discussions/179#discussion-7085110
Have you tried doing a style reset before applying your styles?
* { all: unset; } /* other styles */I found this solution in one of discussion posts #71 (reply in thread)
Edit: I have shared my current styling in a discussion post if it helps #179 (comment)
Yeah, I've tried; but as I've stated here:
... I couldn't get the "list" element that contains the rows (of plugins) to hide when there's nothing to be shown.
it isn't about styling at all. The list element shouldn't be drawn when there's nothing to show. I don't think tinkering with the style would solve this.
What program is that you are using to see all the information about elements? (The one in the second image)
What program is that you are using to see all the information about elements? (The one in the second image)
It's GTK's debug window spawned by passing GTK_DEBUG=interactive environment variable like this: GTK_DEBUG=interactive anyrun
The relm4 rewrite reworked the widget structure completely, at least with my style this does not happen anymore but I would appreciate if it was tested on the relm4 branch/the pre release.