Table of Contents

Field GtkCss

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Contains the GTK CSS stylesheet to be injected, if InjectGtkCss is enabled.

public static string? GtkCss

Returns

string
Contains the GTK CSS stylesheet to be injected, if is enabled.

Remarks

The stylesheet should follow GTK's CSS syntax, targeting elements like scrollbar, button, or window. Can be modified at runtime to enable theme switching or fine-grained styling control.

Important: This must be set before the application is created to have any effect.