What is the GtkSearchEntry placeholder text CSS selector? I know it exists and is undocumented. Been reading the GTK3 source for 2 days now but I can't make heads or tails from it.

I'm styling an application called wofi If you are on a Debian based system the following should get you started.

Environment:

  • GTK3 3.24.49

Preparation:

sudo apt install wofi  
mkdir -p ~/.config/wofi  
touch ~/.config/wofi/style.css

Running wofi + GTK inspector:

GTK_DEBUG=interactive wofi --show drun

Edit ~/.config/wofi/style.css to try and change the placeholder text color.

NOTE: This is not a wofi issue, this is a GTK issue.

NOTE: From memory the selector is called something along the lines of -gtk-placeholder-text but I have grepped through the source in every possible way and found nothing.

1 Reply 1

For some reason I'm not able to answer my own question. I spoke to a GTK contributor/maintainer. The CSS bit I need is @define-color placeholder_text_color #abcdef;. Once I'm able to answer the question I will do so.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.