anyrun icon indicating copy to clipboard operation
anyrun copied to clipboard

do not display empty list element (on launch)

Open fybx opened this issue 1 year ago • 5 comments

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;
}

fybx avatar Aug 01 '24 10:08 fybx

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

deepanchal avatar Aug 23 '24 00:08 deepanchal

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 avatar Aug 23 '24 08:08 fybx

What program is that you are using to see all the information about elements? (The one in the second image)

caiigee avatar Sep 04 '24 09:09 caiigee

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

fybx avatar Sep 04 '24 15:09 fybx

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.

Kirottu avatar Aug 25 '25 12:08 Kirottu