Skip to content
Discussion options

You must be logged in to vote

This may be achieved only with an transparent image or an svg.

CSS renders background behind the text, not alongside it. That's why they are the background and foreground.
When you make the text transparent, it will just disappear, leaving the background visible.

There may be some ways to achieve this in pure CSS, but the in GTK+ CSS that we have here, I don't really see a solution.

Newer version of pure Browser CSS have some nifty features, but we are here with GTK3 CSS, which is quite old. So do not expect much, if anything.

You may read up stuff here
https://docs.gtk.org/gtk3/css-properties.html
and here
https://docs.gtk.org/gtk3/css-overview.html
but that's kinda all we have.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by frozen-infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants