Documentation
¶
Overview ¶
Package gtksettings reads the user's GTK settings.ini, the file GTK apps on the host take their theme, icons, cursor and font from: gtk-4.0 first, gtk-3.0 for what it leaves unset.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct {
ThemeName string
IconTheme string
CursorTheme string
CursorSize uint32
FontName string
// XftDPI is gtk-xft-dpi: the text DPI in 1024ths.
XftDPI int
}
Settings is what a settings.ini sets; a zero field is unset.
func Load ¶
Load reads configDir/gtk-4.0/settings.ini, then gtk-3.0's for what it leaves unset. A missing or unreadable file sets nothing.