App

Application class.

Modulerequire("yue.gui")
TypeClass

This class represents current app and provides app wide APIs.

This class can not be created by user, you can only receive its global instance from the app property of the module:

local gui = require('yue.gui')
gui.app:getcolor('text')

Methods

setapplicationmenu(menu) macOS

Set the application menu bar.

Parameters

getapplicationmenu() macOS

Return the application menu bar.

Return

MenuBar

getcolor(name)

Return color of a theme component.

Parameters

Return

Color

getdefaultfont()

Return the default font for displaying text.

Return

Font