33// SPDX-License-Identifier: MPL-2.0
44
55import { StandardButton , VerticalBox , Button , HorizontalBox , Spinner , StyleMetrics , Palette , GridBox } from "std-widgets.slint" ;
6- import { Images } from "images.slint" ;
7-
8- export component MainWindow inherits Window {
9- title : "Welcome" ;
10- background : Palette.background;
11- //padding: 20px;
12- //no-frame: true;
13- icon : Images.logo;
14- callback openUrl (string );
15- callback close ();
16- callback startInstaller ();
6+ import { Images } from "../components/images.slint" ;
7+ import { Callbacks } from "../components/callbacks.slint" ;
8+
9+ export component LiveISO {
1710 VerticalBox {
1811 spacing : 30px ;
1912 padding-right : 30px ;
@@ -61,7 +54,7 @@ export component MainWindow inherits Window {
6154 }
6255
6356 clicked => {
64- root .openUrl ("https://getsol.us" );
57+ Callbacks .openUrl ("https://getsol.us" );
6558 }
6659 }
6760
@@ -82,7 +75,7 @@ export component MainWindow inherits Window {
8275 }
8376
8477 clicked => {
85- root .openUrl ("https://dev.getsol.us" );
78+ Callbacks .openUrl ("https://dev.getsol.us" );
8679 }
8780 }
8881
@@ -103,7 +96,7 @@ export component MainWindow inherits Window {
10396 }
10497
10598 clicked => {
106- root .openUrl ("https://floss.social/@getsolus" );
99+ Callbacks .openUrl ("https://floss.social/@getsolus" );
107100 }
108101 }
109102
@@ -124,7 +117,7 @@ export component MainWindow inherits Window {
124117 }
125118
126119 clicked => {
127- root .openUrl ("https://help.getsol.us" );
120+ Callbacks .openUrl ("https://help.getsol.us" );
128121 }
129122 }
130123
@@ -151,7 +144,7 @@ export component MainWindow inherits Window {
151144 icon : Images.install;
152145 colorize-icon : true ;
153146 clicked => {
154- root .startInstaller ();
147+ Callbacks .startInstaller ();
155148 }
156149 }
157150
@@ -160,7 +153,7 @@ export component MainWindow inherits Window {
160153 icon : Images.play;
161154 colorize-icon : true ;
162155 clicked => {
163- root .close ();
156+ Callbacks .close ();
164157 }
165158 }
166159 }
0 commit comments