Esempio n. 1
0
func setThemeViaXSettings(theme string) error {
	proxy, err := xsettings.NewXSProxy()
	if err != nil {
		return err
	}
	defer proxy.Free()
	return proxy.SetString(xsettings.NetIconTheme, theme)
}
Esempio n. 2
0
func NewFontManager() *FontManager {
	font := &FontManager{}

	font.xsProxy, _ = xsettings.NewXSProxy()
	font.standardList, font.monospaceList = getStyleInfoList()

	return font
}