RustDesk/src/ui
RustDesk ab64a32f30
avatar (#14440)
* avatar

* refactor avatar display: unify rendering and resolve at use time

  - Extract buildAvatarWidget() in common.dart to share avatar rendering
    logic across desktop settings, desktop CM and mobile CM
  - Add resolve_avatar_url() in Rust, exposed via FFI (SyncReturn),
    to resolve relative avatar paths (e.g. "/avatar/xxx") to absolute URLs
  - Store avatar as-is in local config, only resolve when displaying
    (settings page) or sending (LoginRequest)
  - Resolve avatar in LoginRequest before sending to remote peer
  - Add error handling for network image load failures
  - Guard against empty client.name[0] crash
  - Show avatar in mobile settings page account tile

Signed-off-by: 21pages <sunboeasy@gmail.com>

* web: implement mainResolveAvatarUrl via js getByName

Signed-off-by: 21pages <sunboeasy@gmail.com>

* increase ipc Data enum size limit to 120 bytes

Signed-off-by: 21pages <sunboeasy@gmail.com>

---------

Signed-off-by: 21pages <sunboeasy@gmail.com>
Co-authored-by: 21pages <sunboeasy@gmail.com>
2026-03-04 21:43:19 +08:00
..
ab.tis fix: sciter, advanced options, UI (#13429) 2025-11-06 17:13:11 +08:00
chatbox.html fix https://github.com/rustdesk/rustdesk/issues/609#issuecomment-3931613118 (#14364) 2026-02-25 17:09:51 +08:00
cm.css avatar (#14440) 2026-03-04 21:43:19 +08:00
cm.html patch: update UI, clear previous FUSE 2023-10-07 17:26:20 +08:00
cm.rs avatar (#14440) 2026-03-04 21:43:19 +08:00
cm.tis avatar (#14440) 2026-03-04 21:43:19 +08:00
common.css fix: sciter, advanced options, UI (#13429) 2025-11-06 17:13:11 +08:00
common.tis fix: wayland controlled side, cursor misalignment (#13537) 2025-11-18 00:37:15 +08:00
file_transfer.css Cleanup 2022-12-25 19:23:03 +03:00
file_transfer.tis fix: file transfer, auto start on reconnect (#13329) 2025-10-29 15:15:05 +08:00
grid.tis
header.css Cleanup 2022-12-25 19:23:03 +03:00
header.tis show TCP/UDP/IPv6 in tooltip (#12613) 2025-08-11 16:13:31 +08:00
index.css fix: sciter, advanced options, UI (#13429) 2025-11-06 17:13:11 +08:00
index.html
index.tis avatar (#14440) 2026-03-04 21:43:19 +08:00
install.html
install.tis Fix/exe upgrade options (#9001) 2024-08-08 22:07:06 +08:00
msgbox.tis feat: take screenshot (#11591) 2025-04-30 17:23:35 +08:00
port_forward.tis
printer.tis feat: remote printer (#11231) 2025-03-27 15:34:27 +08:00
remote.css adjust quality monitor ui 2023-01-31 09:28:33 +08:00
remote.html feat: remote printer (#11231) 2025-03-27 15:34:27 +08:00
remote.rs fix: wayland controlled side, cursor misalignment (#13537) 2025-11-18 00:37:15 +08:00
remote.tis ui: scale wheel lines on Windows/Linux to Mac (#14395) 2026-02-28 10:56:25 +08:00