fmeditor-slint/ui/tool_bar.slint

72 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-04-10 12:28:43 +00:00
import { Metrics, DarkPalette } from "theme.slint";
2024-04-09 19:52:34 +00:00
import { HorizontalSeparator } from "widgets/separator.slint";
2024-04-10 12:43:50 +00:00
import { Box, VerticalBox } from "widgets/layout.slint";
2024-04-10 15:44:23 +00:00
import { Button } from "widgets/button.slint";
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
component ToolBarItem inherits Button {
width: Metrics.size-lg;
height: Metrics.size-lg;
2024-04-10 15:44:23 +00:00
p-elevation: 0;
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 15:44:23 +00:00
ToolBarItem {
p-text: "s";
2024-04-10 12:28:43 +00:00
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "m";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "r";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "s";
}
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 15:44:23 +00:00
ToolBarItem {
p-text: "b";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "o";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "f";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "r";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "l";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "a";
}
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 15:44:23 +00:00
ToolBarItem {
p-text: "t";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "t";
}
2024-04-09 19:47:10 +00:00
2024-04-10 15:44:23 +00:00
ToolBarItem {
p-text: "m";
}
2024-04-09 19:47:10 +00:00
}