mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 22:00:38 -04:00
21 lines
510 B
JavaScript
21 lines
510 B
JavaScript
import PanelButton from "../PanelButton.js"
|
|
import options from "../../../options.js"
|
|
|
|
const { icon, label, action } = options.bar.launcher
|
|
|
|
export default () => PanelButton({
|
|
window: "launcher",
|
|
on_clicked: action,
|
|
child: Widget.Box([
|
|
Widget.Icon({
|
|
class_name: icon.colored ? "colored" : "",
|
|
visible: !!icon.icon,
|
|
icon: icon.icon,
|
|
}),
|
|
Widget.Label({
|
|
class_name: label.colored ? "colored" : "",
|
|
visible: !!label.label,
|
|
label: label.label,
|
|
}),
|
|
]),
|
|
})
|