From c30c3ae537831c0e76f8cd47a9ce19ddba7b5c18 Mon Sep 17 00:00:00 2001 From: selikhov Date: Sun, 4 Oct 2026 04:49:40 +0300 Subject: [PATCH] Every settings section on the phone's list; file cards in colour On the phone the settings are reached from the You tab's list, which showed five of the eleven sections: My Account, Profiles, Devices, Notifications, Integrations and Advanced could only be found through the picker inside the settings. The list now has all of them, in the order of the phone's settings design (account, profiles, appearance, voice and video, streaming, notifications, privacy, devices, then keybinds, integrations and advanced), each with its chevron. A file in a chat message showed a grey round icon while the design's file card, and the conversation panel's shared files, show a document on a red square (a picture on a blue one); the chat's file card now does the same. Co-Authored-By: Claude Opus 5.5 --- crates/voelin-ui/ui/screens/chat.slint | 8 +++-- crates/voelin-ui/ui/screens/mobile.slint | 45 +++++++++--------------- 2 files changed, 22 insertions(+), 31 deletions(-) diff --git a/crates/voelin-ui/ui/screens/chat.slint b/crates/voelin-ui/ui/screens/chat.slint index 14b42cc..f5cb672 100644 --- a/crates/voelin-ui/ui/screens/chat.slint +++ b/crates/voelin-ui/ui/screens/chat.slint @@ -147,16 +147,18 @@ component FileCard inherits Rectangle { padding: Theme.space-3; padding-left: Theme.space-4; spacing: Theme.space-4; + // A document in red, a picture in blue (as in the profile panel's + // shared files and the design's file cards). Rectangle { width: 40px; height: 40px; y: (parent.height - self.height) / 2; - border-radius: 20px; - background: Theme.surface-4; + border-radius: Theme.radius-md; + background: file.picture ? Theme.accent-soft : Theme.danger-soft; Icon { source: file.picture ? Icons.image : Icons.file-text; size: Theme.icon-md; - tint: Theme.accent-text; + tint: file.picture ? Theme.accent-text : Theme.danger; } } VerticalLayout { diff --git a/crates/voelin-ui/ui/screens/mobile.slint b/crates/voelin-ui/ui/screens/mobile.slint index 1975c29..50f9c23 100644 --- a/crates/voelin-ui/ui/screens/mobile.slint +++ b/crates/voelin-ui/ui/screens/mobile.slint @@ -195,35 +195,24 @@ export component YouPage inherits ScrollView { text: @tr("Settings"); small: true; } - NavItem { - icon: Icons.mic; - text: @tr("Voice & Video"); + // Every section, in the order of the phone's settings design. + for item in [ + { icon: Icons.user-round, text: @tr("My Account"), section: SettingsSection.account }, + { icon: Icons.users, text: @tr("Profiles"), section: SettingsSection.profiles }, + { icon: Icons.palette, text: @tr("Appearance"), section: SettingsSection.appearance }, + { icon: Icons.mic, text: @tr("Voice & Video"), section: SettingsSection.voice }, + { icon: Icons.radio, text: @tr("Streaming"), section: SettingsSection.streaming }, + { icon: Icons.bell, text: @tr("Notifications"), section: SettingsSection.notifications }, + { icon: Icons.shield, text: @tr("Privacy & Safety"), section: SettingsSection.privacy }, + { icon: Icons.smartphone, text: @tr("Devices"), section: SettingsSection.devices }, + { icon: Icons.keyboard, text: @tr("Keybinds"), section: SettingsSection.keybinds }, + { icon: Icons.puzzle, text: @tr("Integrations"), section: SettingsSection.integrations }, + { icon: Icons.settings, text: @tr("Advanced"), section: SettingsSection.advanced }, + ]: NavItem { + icon: item.icon; + text: item.text; chevron: true; - clicked => { Nav.open-settings(SettingsSection.voice); } - } - NavItem { - icon: Icons.keyboard; - text: @tr("Keybinds"); - chevron: true; - clicked => { Nav.open-settings(SettingsSection.keybinds); } - } - NavItem { - icon: Icons.radio; - text: @tr("Streaming"); - chevron: true; - clicked => { Nav.open-settings(SettingsSection.streaming); } - } - NavItem { - icon: Icons.shield; - text: @tr("Privacy & Safety"); - chevron: true; - clicked => { Nav.open-settings(SettingsSection.privacy); } - } - NavItem { - icon: Icons.palette; - text: @tr("Appearance"); - chevron: true; - clicked => { Nav.open-settings(SettingsSection.appearance); } + clicked => { Nav.open-settings(item.section); } } NavItem { icon: Icons.info;