feat(client): redesign native UI, themes, settings and avatars

Separate conversation drafts and voice view state, add native settings and restricted CSS themes, implement validated avatar cropping, and refresh dependencies with documented desktop compatibility backports.
This commit is contained in:
Loki 2026-10-24 14:23:48 +02:00
parent 44d284a568
commit 8e5ab56611
Signed by: boba
GPG key ID: 253067914055423B
276 changed files with 53546 additions and 3399 deletions

View file

@ -0,0 +1,26 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
use crate::clipboard::ClipboardProvider;
use objc2_foundation::NSString;
use objc2_ui_kit::UIPasteboard;
pub(crate) struct UiPasteboardClipboard;
impl ClipboardProvider for UiPasteboardClipboard {
fn get_contents(
&mut self,
) -> Result<String, Box<dyn std::error::Error + Send + Sync + 'static>> {
let pasteboard = UIPasteboard::generalPasteboard();
Ok(unsafe { pasteboard.string() }.map(|s| s.to_string()).unwrap_or_default())
}
fn set_contents(
&mut self,
data: String,
) -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> {
let pasteboard = UIPasteboard::generalPasteboard();
unsafe { pasteboard.setString(Some(&NSString::from_str(&data))) };
Ok(())
}
}