api deserialization, sidebars

This commit is contained in:
Margret Riegert
2026-03-20 02:43:24 -04:00
parent 505cc110aa
commit bdeda666c1
7 changed files with 265 additions and 21 deletions

27
ui/sidebar.slint Normal file
View File

@@ -0,0 +1,27 @@
export component ChannelSidebar inherits Rectangle {
in property <bool> open;
in property <[{title: string}]> channel_list;
width: open ? 200px : 0px;
clip: true;
VerticalLayout {
width: 200px;
for channel in channel_list: Text {
text: channel.title;
}
}
}
export component ServerSidebar inherits Rectangle {
in property <bool> open;
in property <[{icon: string}]> server_list;
width: open ? 48px : 0px;
VerticalLayout {
width: 48px;
for server in server_list: Text {
text: server.icon;
}
}
}