mirror of
https://codeberg.org/waydeer/layer-shika.git
synced 2025-12-12 14:25:54 +00:00
36 lines
800 B
Text
36 lines
800 B
Text
import { VerticalBox, HorizontalBox } from "std-widgets.slint";
|
|
|
|
export component Bar inherits Window {
|
|
default-font-size: 16px;
|
|
|
|
HorizontalBox {
|
|
// Left section
|
|
Text {
|
|
text: "Simple Bar Example";
|
|
vertical-alignment: center;
|
|
}
|
|
|
|
// Center section (spacer)
|
|
Rectangle {
|
|
horizontal-stretch: 1;
|
|
}
|
|
|
|
// Right section
|
|
HorizontalLayout {
|
|
alignment: end;
|
|
spacing: 12px;
|
|
|
|
Text {
|
|
text: "🕐 12:34";
|
|
color: #88c0d0;
|
|
vertical-alignment: center;
|
|
}
|
|
|
|
Text {
|
|
text: "🔋 75%";
|
|
color: #a3be8c;
|
|
vertical-alignment: center;
|
|
}
|
|
}
|
|
}
|
|
}
|