fmeditor-slint/ui/tool_bar.slint

51 lines
874 B
Plaintext
Raw Normal View History

2024-04-10 12:28:43 +00:00
import { Metrics, DarkPalette } 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-10 12:28:43 +00:00
import { VerticalBox } from "widgets/layout.slint";
2024-04-09 19:47:10 +00:00
component ToolBarItem inherits Rectangle {
width: Metrics.size-lg;
height: Metrics.size-lg;
border-radius: Metrics.radius-md;
2024-04-10 12:28:43 +00:00
background: DarkPalette.background[2];
2024-04-09 19:47:10 +00:00
}
2024-04-10 12:28:43 +00:00
export component ToolBar inherits VerticalBox {
width: Metrics.size-xl;
2024-04-10 12:40:35 +00:00
j-alignment: start;
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
Button {
checkable: true;
}
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
HorizontalSeparator { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
HorizontalSeparator { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
2024-04-10 12:28:43 +00:00
ToolBarItem { }
2024-04-09 19:47:10 +00:00
}