Comment by ~zeioth on ~scoopta/wofi
yes, this cannot be fixed unless GTK implement proper HiDPI support, which seems they don't have any intention to do atm.
Workaround for this issue here: https://todo.sr.ht/~scoopta/wofi/179
Comment by ~zeioth on ~scoopta/wofi
Thank you so much for your hard work 🙏
Ticket created by ~zeioth on ~scoopta/wofi
If you write something on wofi to filter the list, and press , it will take two keypress before the cursor move.
This bug seems to have been introduced recently.
##More info
- Command: wofi -p run
- System: Arch Linux (hyprland)
Ticket created by ~zeioth on ~tsdh/swayr
Swayr is the only thing I'm missing after moving to hyprland.
Comment by ~zeioth on ~scoopta/wofi
Would it be feasible to close wofi when the form loses focus?
Ticket created by ~zeioth on ~scoopta/wofi
It would be nice to have an option to tell Wofi to close when the user clicks outside Wofi.
We could call it '--modal=y/n'.
Comment by ~zeioth on ~scoopta/wofi
I think the same, but I recently discovered that making QT look like GTK is actually trivial.
Anyway, wofi is awesome like it is. No need to do anything radical. GTK will eventually catch up, and everything will be fine, I hope.
Also this is unrelated but I think there are QT/GTK hooks for rust. That's going to be a cool experiment for someone in the future 😁
Comment by ~zeioth on ~scoopta/wofi
Hey thank you. You can see the difference here.
- belore css: https://0x0.st/oRk_.png
- after css: https://0x0.st/oRk2.png
Comment by ~zeioth on ~scoopta/wofi
I've succeeded. This is how I've adapted wofi for HiDPI:
It seems one cannot use the selector from the official docs (searchbar → revealer → box...) but the structure still exists, and can be accessed through child selectors.
/* search icon */ #input:first-child > :nth-child(1) { min-height: 1.25em; min-width: 1.25em; background-image: -gtk-icontheme('open-menu-symbolic'); } /* clear icon */ #input:first-child > :nth-child(4){ min-height: 1.25em; min-width: 1.25em; background-image: -gtk-icontheme('window-close-symbolic'); }
Of course the original icons are still there under the background image. GTK HiDPI support is hideous atm.
Comment by ~zeioth on ~scoopta/wofi
Right... This took me a long time to figure out because I'm no C expert, but I've been reading the source code and now I understand we are creating a gtk searchbar with the css selector name 'input' (wofi.c, line 1767).
Having that info is easy to figure out one can just
#input * { background-color: red; color: red; }
To apply styles to the searchbar icons.