@@ -16,80 +16,12 @@ import { YesNoPrompt } from "components/yes-no-prompt.slint";
1616import { QuickActionsPage } from "pages/quick-actions-page.slint" ;
1717export * from "state.slint" ;
1818
19- component ExtruderPage inherits Page {
20- header : "Extruder" ;
21-
22- HorizontalLayout {
23- spacing : StyleMetrics.layout-padding;
24- visible : !t.is_keyboard_open;
25-
26-
27- VerticalLayout {
28- InteractableTemperatureElement { heater : TemperatureSensors.extruder; on_manual_entry (internal-name, friendly-name) => { t.open_keyboard (internal-name, friendly-name); } }
29- Rectangle {}
30- HorizontalLayout {
31- height : 30px ;
32- spacing : StyleMetrics.layout-padding / 2 ;
33- SmallButton {
34- text : "Load Filament" ;
35- }
36- SmallButton {
37- text : "Unload Filament" ;
38- }
39- }
40- }
41-
42- VerticalLayout {
43- width : 50px ;
44- spacing : 10px ;
45- padding-bottom : StyleMetrics.layout-padding / 2 ;
46-
47- // Unload
48-
49- GridLayout {
50- padding-left : StyleMetrics.layout-padding / 2 ;
51- padding-right : StyleMetrics.layout-padding / 2 ;
52- IconButton {
53- icon : @image-url ("assets/eject.svg" ) ;
54- checked : true ;
55- border-radius : StyleMetrics.layout-padding;
56- }
57- }
58-
59- Text {
60- text : "Extrude" ;
61- horizontal-alignment : center;
62- vertical-alignment : center;
63- rotation-angle : 90deg ;
64- }
65-
66- GridLayout {
67- padding-left : StyleMetrics.layout-padding / 2 ;
68- padding-right : StyleMetrics.layout-padding / 2 ;
69- IconButton {
70- icon : @image-url ("assets/arrow-down.svg" ) ;
71- checked : true ;
72- border-radius : StyleMetrics.layout-padding;
73- }
74- }
75- }
76-
77-
78- }
79-
80- t := TemperatureEntry {
81-
82- }
83- }
84-
8519component MainView inherits Rectangle
8620{
8721 in-out property <int> current-page: 0 ;
8822 property <bool> is_emergency_prompt_open: false ;
8923 background: Palette.alternate-background;
9024
91-
92-
9325 VerticalLayout {
9426 TopBar {
9527
@@ -128,7 +60,6 @@ component MainView inherits Rectangle
12860
12961 if root .current-page == 1 : TemperaturePage {}
13062 if root .current-page == 0 : FileListPage {}
131- if root .current-page == 6 : ExtruderPage {}
13263 if root .current-page == 5 : QuickActionsPage {}
13364 }
13465
0 commit comments