MenuDsl

trait MenuDsl extends Plugin
class Plugin
class Object
trait Matchable
class Any

Type members

Classlikes

case object DefaultValue
enum Iconize
object topLevel

Types

type AlternateDsl = Boolean | DefaultValue
type ColorDsl = String | DefaultValue
type FontDsl = String | DefaultValue
type LengthDsl = Int | DefaultValue
type ShortcutDsl = String | None
type ToolTipDsl = String | None

Value members

Concrete methods

def ---: () => MenuBuilder
def action(text: String, action: String, metadata: Option[String], showTerminal: Boolean, refresh: Boolean, color: ColorDsl, textSize: TextSizeDsl, font: FontDsl, length: LengthDsl, image: Image, templateImage: Image, iconize: Iconize, tooltip: ToolTipDsl, alternate: AlternateDsl, shortcut: ShortcutDsl): () => MenuBuilder
def appMenu: Menu | Publisher[Menu]
def build(items: Seq[AllowedType]): Menu
def fromResource(fileName: String): Nothing
def fromUrl(fileName: String): Nothing
def shellCommand(text: String, executable: String, showTerminal: Boolean, refresh: Boolean, color: ColorDsl, textSize: TextSizeDsl, font: FontDsl, length: LengthDsl, image: Image, templateImage: Image, iconize: Iconize, tooltip: ToolTipDsl, alternate: AlternateDsl, shortcut: ShortcutDsl, params: String*): () => MenuBuilder
def text(text: String, color: ColorDsl, textSize: TextSizeDsl, font: FontDsl, length: LengthDsl, image: Image, templateImage: Image, iconize: Iconize, tooltip: ToolTipDsl, shortcut: ShortcutDsl): () => MenuBuilder

Inherited methods

Inherited from
Plugin
def main(args: Array[String]): Unit
Inherited from
Plugin
def notify(title: String, subtitle: Option[String], body: Option[String]): Unit
Inherited from
Notifications

Inherited fields

Inherited from
Plugin
final lazy val runtime: Option[SwiftBarRuntime]
Inherited from
Environment

Extensions

Extensions

extension (value: T)
def ifDark[T](value2: A)(using Option[SwiftBarRuntime]): T