GTK3/C/Arch - Cannot modify color; other style properties possibly work in some cases

33 Views Asked by At

[crossposted from Reddit]

I have gtk3 installed with pacman on Arch.

I have been trying all kinds of methods to set the colors of widgets, including gtk_widget_override_background_color, gtk_widget_override_color, and gtk_widget_modify_fg.

I have tried using CSS providers - I have copy-pasted the code provided in the top answers here: How to define the color of a GtkButton using Gtk+3 (in C) and here: Problems with GtkCssProvider and CSS styles and tried running both on my system.

Everything compiles and runs, but none of the methods listed above have worked to change the default color of anything in the window.

The code in the second link works to create a large text box at font-size 30px, but the text is still black, not green.

What might I be missing?

0

There are 0 best solutions below