Documentation ¶
Overview ¶
Manage desktop appearance
Index ¶
- Constants
- func HandlePrepareForSleep(sleep bool)
- type DefaultFontConfig
- type FontConfigItem
- type Manager
- func (m *Manager) Delete(ty, name string) *dbus.Error
- func (*Manager) GetInterfaceName() string
- func (m *Manager) GetScaleFactor() (float64, *dbus.Error)
- func (m *Manager) GetScreenScaleFactors() (map[string]float64, *dbus.Error)
- func (m *Manager) List(ty string) (string, *dbus.Error)
- func (m *Manager) Reset() *dbus.Error
- func (m *Manager) Set(ty, value string) *dbus.Error
- func (m *Manager) SetScaleFactor(scale float64) *dbus.Error
- func (m *Manager) SetScreenScaleFactors(v map[string]float64) *dbus.Error
- func (m *Manager) Show(ty string, names []string) (string, *dbus.Error)
- func (m *Manager) Thumbnail(ty, name string) (string, *dbus.Error)
- type Module
- type WSConfig
- type WSLoop
- type WSScheduler
Constants ¶
View Source
const ( TypeGtkTheme = "gtk" TypeIconTheme = "icon" TypeCursorTheme = "cursor" TypeBackground = "background" TypeGreeterBackground = "greeterbackground" TypeStandardFont = "standardfont" TypeMonospaceFont = "monospacefont" TypeFontSize = "fontsize" )
The supported types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultFontConfig ¶
type DefaultFontConfig map[string]FontConfigItem
key is locale code
func (DefaultFontConfig) Get ¶
func (cfg DefaultFontConfig) Get() (standard, monospace string)
type Manager ¶
type Manager struct { GtkTheme gsprop.String IconTheme gsprop.String CursorTheme gsprop.String Background gsprop.String StandardFont gsprop.String MonospaceFont gsprop.String Opacity gsprop.Double `prop:"access:rw"` ThemeAuto gsprop.Bool `prop:"access:rw"` FontSize gsprop.Double `prop:"access:rw"` WallpaperSlideShow gsprop.String `prop:"access:rw"` // contains filtered or unexported fields }
Manager shows current themes and fonts settings, emit 'Changed' signal if modified if themes list changed will emit 'Refreshed' signal
func (*Manager) Delete ¶
Delete delete the special 'name'
func (*Manager) GetScreenScaleFactors ¶
func (*Manager) List ¶
List list all available for the special type, return a json format list
func (*Manager) Reset ¶
func (m *Manager) Reset() *dbus.Error
Reset reset all themes and fonts settings to default values
func (*Manager) Set ¶
Set set to the special 'value'
func (*Manager) SetScreenScaleFactors ¶
func (*Manager) Show ¶
Show show detail infos for the special type ret0: detail info, json format
type Module ¶
type Module struct {
*loader.ModuleBase
}
type WSConfig ¶
wallpaper slideshow config
type WSLoop ¶
type WSLoop struct {
// contains filtered or unexported fields
}
wallpaper slideshow loop
type WSScheduler ¶
type WSScheduler struct {
// contains filtered or unexported fields
}
wallpaper slideshow scheduler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.