App
This is the main Gtk.Application
instance that is running.
signals
window-toggled
:(windowName: string, visible: boolean)
config-parsed
: emitted on startup
properties
windows
:Gtk.Window[]
configDir
:string
path to the config directoryiconTheme
:string
cursorTheme
:string
gtkTheme
:string
methods
addWindow
:(window: Gtk.Window) => void
removeWindow
:(window: Gtk.Window) => void
getWindow
:(name: string) => Gtk.Window
closeWindow
:(name: string) => void
openWindow
:(name: string) => void
toggleWindow
:(name: string) => void
quit
:() => void
resetCss
:() => void
applyCss
:(path: string) => void
addIcons
:(path: string) => void
Window toggled signal
Applying CSS
If you want to change the style sheet on runtime
specifying a css file
applying a stylesheet
to reset applied stylesheets