class OnTrackWorkspace : Workspace() { init { wrapper { borderpane { root.header.items.add(0, Label("OnTrack").addClass(Styles.appTitle)) center = root left { listmenu { paddingTop = 50 theme = "blue" orientation = Orientation.VERTICAL useMaxHeight = true item(graphic = Styles.taskIcon(), tag = "Tasks") {activeItem = this } item(graphic = Styles.kanbanIcon(), tag = "Kanban") item(graphic = Styles.calendarIcon(), tag = "Calendar") item(graphic = Styles.statsIcon(), tag = "Stats") item(graphic = Styles.integrationsIcon(), tag = "Integrations") item(graphic = Styles.settingsIcon(), tag = "Settings") activeItemProperty.onChange { when(it?.tag) { "Tasks" -> dock() "Kanban" -> dock() "Calendar" -> dock() "Stats" -> dock() "Integrations" -> dock() "Settings" -> dock() } } } } } } } }