made server address configurable

This commit is contained in:
Ide
2025-12-28 13:59:00 +01:00
parent f413f27bf0
commit a97cd03eb3
7 changed files with 175 additions and 37 deletions
+17
View File
@@ -0,0 +1,17 @@
import { VerticalBox, LineEdit } from "std-widgets.slint";
import { State } from "state.slint";
export component SettingsView inherits VerticalBox {
alignment: start;
Text {
text: "server address:";
font-size: 25px;
}
LineEdit {
edited(text) => {
State.set-server-address(text);
}
text: State.server-address;
}
}