I'm on HiDPI and it shows super tiny. I've managed to style everything else except for this and I don't find anything on the manuals.
What's the css identifyer for it? Thank you.
+1, I'd like to remove this icon.
I've found from another ticket that you can use the CSS below to style it:
#input:first-child > :nth-child(1) {
}
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
I tried qazer's solution, and it looks like it is possible to make the looking glass disappear by doing: #input:first-child > :nth-child(1) { color: ; }
However this doesn't remove it. I did some hacking around the source and discovered, on line 2016 in wofi.c:
entry = gtk_search_entry_new()
According to GTK's docs: "[A search entry] will show an inactive symbolic “find” icon when the search entry is empty, and a symbolic “clear” icon when there is text. Clicking on the “clear” icon will empty the search entry." https://docs.gtk.org/gtk3/class.SearchEntry.htmlI substituted
entry = gtk_search_entry_new()
forentry = gtk_entry_new()
, compiled, and voila! No icon, and no "clear text" icon. Here's the patch:--- wofi.c 2024-06-05 22:09:37.677488083 -0800 +++ wofi_mod.c 2024-06-05 22:08:50.919585606 -0800 @@ -2013,7 +2013,7 @@ outer_box = gtk_box_new(outer_orientation, 0); gtk_widget_set_name(outer_box, "outer-box"); gtk_container_add(GTK_CONTAINER(window), outer_box); - entry = gtk_search_entry_new(); + entry = gtk_entry_new(); g_signal_connect(entry, "size-allocate", G_CALLBACK(widget_allocate), NULL); gtk_widget_set_name(entry, "input");
Hmmmmm, that might be worth adding as an option. I don't LOVE the idea of changing it for everyone but I do like the idea of having an option for it.
Added the config option
use_search_box
which defaults to true in 96bb7a18c2b0. If you set it to false in your config or with-Duse_search_box=false
it will use a regular entry.