fmeditor-slint/ui/tool_bar.slint

58 lines
1.0 KiB
Plaintext
Raw Normal View History

import { Metrics } from "theme.slint";
2024-04-09 19:47:10 +00:00
import { Button } from "std-widgets.slint";
2024-04-09 19:52:34 +00:00
import { HorizontalSeparator } from "widgets/separator.slint";
2024-04-09 19:47:10 +00:00
component ToolBarItem inherits Rectangle {
width: Metrics.size-lg;
height: Metrics.size-lg;
2024-04-09 19:47:10 +00:00
border-color: black;
border-width: 1px;
border-radius: Metrics.radius-md;
2024-04-09 19:47:10 +00:00
}
export component ToolBar inherits Rectangle {
width: Metrics.size-xl;
2024-04-09 19:47:10 +00:00
border-color: black;
border-width: 1px;
VerticalLayout {
alignment: start;
padding: Metrics.padding-md;
spacing: Metrics.padding-md;
2024-04-09 19:47:10 +00:00
Button {
checkable: true;
}
ToolBarItem { }
ToolBarItem { }
ToolBarItem { }
ToolBarItem { }
2024-04-09 19:52:34 +00:00
HorizontalSeparator { }
2024-04-09 19:47:10 +00:00
ToolBarItem { }
ToolBarItem { }
ToolBarItem { }
ToolBarItem { }
ToolBarItem { }
ToolBarItem { }
2024-04-09 19:52:34 +00:00
HorizontalSeparator { }
2024-04-09 19:47:10 +00:00
ToolBarItem { }
ToolBarItem { }
ToolBarItem { }
}
}