After creating a CSS provider using gtk_css_provider_new and loading it with gtk_css_provider_load_from_data, the style data "textview { color: red; font: 30px serif; }" is applied to a gtk_text_view using gtk_style_context_add_provider. However, the result shows that while the font size changes to 30, the text color remains black. How can I change the text color?
The fact that the font size changes indicates that the CSS is working partially. But the unchanged text color suggests that there may be a different method required to modify the color compared to adjusting the font size. What specific steps are needed to change the text color effectively?
When using gdk_rgba_to_string to display the RGBA value, it appears as "rgb(255,0,0)", indicating that the style context does indeed have the color set to red. Therefore, the only issue seems to be why the specified red color is not being used for the text when applying the 30px serif font.