Other clients format chat with BBCode, and it showed as raw tags; only file links were taken out. One parser, vm/bbcode.rs, now reads every message into a Doc of blocks (lines, quotes, code, list items, rules) of styled spans, which the chat draws with one MessageText (also in the pins drawer and the studio's chat), and which previews, notifications and the home's news show on one line. Only known tags are read, so relay prefixes such as [Nova] stay. Emoji are split per span, so a message with emoji keeps its line breaks. [img] pictures on the web come through the engine's picture cache (Command::FetchPicture), within ui.image_preview_kb and only with cache.fetch_images; otherwise they stay links. Built lines are kept per message and revision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
// All components, for screens: import { Button, Card, ... } from "../components/index.slint";
|
|
// The catalogue is in docs/ui.md.
|
|
|
|
export { Icon, Spinner } from "icon.slint";
|
|
export { ButtonKind, FocusRing, Button, IconButton, ActionButton } from "button.slint";
|
|
export { TextField, Kbd, SearchBox, Field } from "text-field.slint";
|
|
export { Select } from "select.slint";
|
|
export { Toggle, ToggleRow, RadioRow } from "toggle.slint";
|
|
export { Slider } from "slider.slint";
|
|
export { SegmentedTabs, TabItem } from "tabs.slint";
|
|
export { Status, Avatar } from "avatar.slint";
|
|
export { BannerPicture } from "banner-picture.slint";
|
|
export { CountBadge, LiveBadge, Chip, BadgeIcons, Dot } from "badge.slint";
|
|
export { SectionHeader, Card, Divider, Banner } from "card.slint";
|
|
export { Meter, SpeakingBars } from "meter.slint";
|
|
export { NavItem, ListItem } from "list-item.slint";
|
|
export { MenuEntry, PopupMenu, Tooltip, Modal, Toast, ResizeHandle } from "overlay.slint";
|
|
export { TooltipBubble, HoverTooltip } from "tooltip.slint";
|
|
export { RichText, MessageText, EmojiPicker } from "emoji.slint";
|
|
// Virtualised lists and scrolling come from the standard widgets (styled by
|
|
// the fluent-dark style); ListView builds only the visible rows.
|
|
export { ListView, ScrollView } from "std-widgets.slint";
|