Export all core widgets from a single file
This commit is contained in:
parent
4ccbd7b28b
commit
2dc8decc20
|
@ -1,9 +1,10 @@
|
||||||
import { Metrics, DarkPalette } from "theme.slint";
|
import { Metrics, DarkPalette } from "theme.slint";
|
||||||
|
import { VerticalBox, HorizontalBox } from "widgets/components.slint";
|
||||||
|
|
||||||
import { EditorBar } from "editor_bar.slint";
|
import { EditorBar } from "editor_bar.slint";
|
||||||
import { StatusBar } from "status_bar.slint";
|
import { StatusBar } from "status_bar.slint";
|
||||||
import { ToolBar } from "tool_bar.slint";
|
import { ToolBar } from "tool_bar.slint";
|
||||||
import { ObjectToolPanel } from "object_tool_panel.slint";
|
import { ObjectToolPanel } from "object_tool_panel.slint";
|
||||||
import { VerticalBox, HorizontalBox } from "widgets/layout.slint";
|
|
||||||
|
|
||||||
export component AppWindow inherits Window {
|
export component AppWindow inherits Window {
|
||||||
title: @tr("FM Editor");
|
title: @tr("FM Editor");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Metrics, DarkPalette } from "theme.slint";
|
import { Metrics, DarkPalette } from "theme.slint";
|
||||||
import { HorizontalBox } from "widgets/layout.slint";
|
import { HorizontalBox } from "widgets/components.slint";
|
||||||
|
|
||||||
export component EditorBar inherits HorizontalBox {
|
export component EditorBar inherits HorizontalBox {
|
||||||
height: Metrics.size-xl;
|
height: Metrics.size-xl;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import { Metrics, DarkPalette } from "theme.slint";
|
import { Metrics, DarkPalette } from "theme.slint";
|
||||||
import { Panel } from "widgets/panel.slint";
|
import { Box, HorizontalBox, VerticalBox, Panel } from "widgets/components.slint";
|
||||||
import { Box, HorizontalBox, VerticalBox } from "widgets/layout.slint";
|
|
||||||
|
|
||||||
|
|
||||||
export component ObjectToolPanel inherits VerticalBox {
|
export component ObjectToolPanel inherits VerticalBox {
|
||||||
width: 280px;
|
width: 280px;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { Metrics, DarkPalette } from "theme.slint";
|
import { Metrics, DarkPalette } from "theme.slint";
|
||||||
import { VerticalSeparator } from "widgets/separator.slint";
|
import { HorizontalBox, VerticalSeparator } from "widgets/components.slint";
|
||||||
import { HorizontalBox } from "widgets/layout.slint";
|
|
||||||
|
|
||||||
export component StatusBar inherits HorizontalBox {
|
export component StatusBar inherits HorizontalBox {
|
||||||
height: Metrics.size-lg;
|
height: Metrics.size-lg;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import { Metrics, DarkPalette } from "theme.slint";
|
import { Metrics, DarkPalette } from "theme.slint";
|
||||||
import { HorizontalSeparator } from "widgets/separator.slint";
|
import { Box, Button, HorizontalSeparator, VerticalBox } from "widgets/components.slint";
|
||||||
import { Box, VerticalBox } from "widgets/layout.slint";
|
|
||||||
import { Button } from "widgets/button.slint";
|
|
||||||
|
|
||||||
component ToolBarItem inherits Button {
|
component ToolBarItem inherits Button {
|
||||||
width: Metrics.size-lg;
|
width: Metrics.size-lg;
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
import { Button } from "button.slint";
|
||||||
|
import { VerticalBox, HorizontalBox, Box } from "layout.slint";
|
||||||
|
import { Panel } from "panel.slint";
|
||||||
|
import { VerticalSeparator, HorizontalSeparator } from "separator.slint";
|
||||||
|
|
||||||
|
export { Button, VerticalBox, HorizontalBox, Box, Panel, VerticalSeparator, HorizontalSeparator }
|
Loading…
Reference in New Issue