Export all core widgets from a single file

This commit is contained in:
Jarrod Doyle 2024-04-14 12:40:32 +01:00
parent 4ccbd7b28b
commit 2dc8decc20
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
6 changed files with 12 additions and 10 deletions

View File

@ -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");

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 }