mirror of
https://github.com/orbien-org/orbien.git
synced 2026-09-23 08:01:34 +00:00
30 lines
580 B
Plaintext
30 lines
580 B
Plaintext
import { Tr } from "i18n.slint";
|
|
|
|
export component OrbienTray inherits SystemTrayIcon {
|
|
icon: @image-url("../assets/logo.png");
|
|
tooltip: Tr.tray-tooltip;
|
|
|
|
callback show-window();
|
|
callback quit();
|
|
|
|
clicked => {
|
|
root.show-window();
|
|
}
|
|
|
|
Menu {
|
|
MenuItem {
|
|
title: Tr.tray-show;
|
|
activated => {
|
|
root.show-window();
|
|
}
|
|
}
|
|
MenuSeparator {}
|
|
MenuItem {
|
|
title: Tr.tray-quit;
|
|
activated => {
|
|
root.quit();
|
|
}
|
|
}
|
|
}
|
|
}
|