anyrun-org / anyrun

A wayland native, highly customizable runner.
GNU General Public License v3.0
609 stars 51 forks source link

do not display empty list element (on launch) #178

Open fybx opened 1 month ago

fybx commented 1 month ago

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: image

And here are the nodes, I am certain that my issue is with element list with ID main image


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;
}
deepanchal commented 3 weeks ago

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

fybx commented 3 weeks ago

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.

fybx commented 1 week ago

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