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 (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
- func (*Manager) GetInterfaceName() string
- func (m *Manager) GetScaleFactor() (scaleFactor float64, busErr *dbus.Error)
- func (m *Manager) GetScreenScaleFactors() (scaleFactors map[string]float64, busErr *dbus.Error)
- func (m *Manager) GetWallpaperSlideShow(monitorName string) (slideShow string, busErr *dbus.Error)
- func (m *Manager) List(ty string) (list string, busErr *dbus.Error)
- func (m *Manager) Reset() *dbus.Error
- func (m *Manager) Set(ty, value string) *dbus.Error
- func (m *Manager) SetMonitorBackground(monitorName string, imageFile string) *dbus.Error
- func (m *Manager) SetScaleFactor(scale float64) *dbus.Error
- func (m *Manager) SetScreenScaleFactors(v map[string]float64) *dbus.Error
- func (m *Manager) SetWallpaperSlideShow(monitorName string, wallpaperSlideShow string) *dbus.Error
- func (m *Manager) Show(ty string, names []string) (detail string, busErr *dbus.Error)
- func (m *Manager) Thumbnail(ty, name string) (file string, busErr *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 ¶
func HandlePrepareForSleep ¶
func HandlePrepareForSleep(sleep bool)
Types ¶
type DefaultFontConfig ¶
type DefaultFontConfig map[string]FontConfigItem
key is locale code
func (DefaultFontConfig) Get ¶
func (cfg DefaultFontConfig) Get() (standard, monospace string)
type FontConfigItem ¶
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"` FontSize gsprop.Double `prop:"access:rw"` WallpaperSlideShow gsprop.String `prop:"access:rw"` WallpaperURIs gsprop.String QtActiveColor string `prop:"access:rw"` // 社区版定制需求,保存窗口圆角值,默认 18 WindowRadius gsprop.Int `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) GetExportedMethods ¶
func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
func (*Manager) GetInterfaceName ¶
func (*Manager) GetScaleFactor ¶
func (*Manager) GetScreenScaleFactors ¶
func (*Manager) GetWallpaperSlideShow ¶
func (*Manager) SetMonitorBackground ¶
func (*Manager) SetScreenScaleFactors ¶
func (*Manager) SetWallpaperSlideShow ¶
type Module ¶
type Module struct { *loader.ModuleBase // contains filtered or unexported fields }
func (*Module) GetDependencies ¶
func (*Module) WaitEnable ¶
func (m *Module) WaitEnable()
type WSLoop ¶
type WSLoop struct {
// contains filtered or unexported fields
}
wallpaper slideshow loop
func (*WSLoop) AddToShowed ¶
func (*WSLoop) NotifyFsChanged ¶
func (wrl *WSLoop) NotifyFsChanged()
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.