IconButton names itself in a tooltip after a moment of hover, also while it is disabled (mute or deafen when not connected), and can show a neutral count at its top right (for pins and topics later). Tooltips are desktop only: the new Bridge.desktop is false in the Android app. Tooltip showed once (its Timer turned off its own binding) and stayed open after the pointer left. Both now use Slint's Tooltip element with our TooltipBubble: it opens at the pointer, closes when the pointer leaves, and lets clicks and hover through, which a PopupWindow of our own does not while it is open. A press closes it until the pointer leaves. The bubble sets its own preferred width, up to 400px, so long text wraps: the tooltip's popup takes that width, and a max-width would not narrow it. IconButton's look moves onto an inner rectangle: with an opacity and an animation on its root, Slint inlined it at each of its 100-odd uses, and the tooltip and count alone added 3.3 MB of generated code to a crate whose compile already peaks near 14 GB. Now the generated code is 1.1 MB smaller than before (70.7 MB). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
23 lines
1.2 KiB
Plaintext
23 lines
1.2 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, 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, 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";
|