pub enum PanelStyle {
Show 26 variants
Title,
Label,
Hint,
Error,
Row {
selected: bool,
},
Button {
primary: bool,
},
Field {
focused: bool,
valid: bool,
},
Swatch(u32),
Tile {
selected: bool,
},
Popup,
Dim(u8),
FloatLabel,
FolderIcon,
Badge(u8),
Progress {
done: u16,
hover: u16,
},
Scrollbar {
start: u16,
len: u16,
},
Option {
selected: bool,
highlight: u64,
},
FontOption {
selected: bool,
highlight: u64,
},
ThemePreview {
fg: u32,
bg: u32,
cursor: u32,
accent: u32,
},
Md {
flags: u8,
heading: u8,
},
MdCode {
top: bool,
bottom: bool,
},
MdToken(u8),
MdQuote,
MdRule,
Frame {
focused: bool,
},
Bubble {
mine: bool,
},
}Expand description
How the host draws one panel item.
Variants§
Title
Label
Hint
Error
Row
Selectable list row.
Button
Field
Text input; valid false draws it in the error colour.
Swatch(u32)
Colour sample.
Tile
Framed tile (commander grid / carousel item).
Popup
Background of a dropdown drawn over the panel.
Dim(u8)
A veil over the rect (0 clear … 255 opaque black) for motion such as
the fullscreen viewer backdrop.
FloatLabel
Name tag drawn on top of everything, previews included (commander carousel): a slightly transparent rounded box with a soft shadow.
FolderIcon
Folder icon filling the rect (commander carousel).
Badge(u8)
Type badge (mouser_core::commander::Badge index) on a grid tile or
carousel item, drawn on top like PanelStyle::FloatLabel.
Progress
Seek / volume bar: done and the hover mark (u16::MAX: none) in 1/1000.
Scrollbar
Scroll position: a slim track with a thumb from start for len
(1/1000 of the content). Vertical when taller than wide.
Option
Dropdown row; bit i of highlight marks char i as matched.
FontOption
Font picker row: text is the family name and is drawn in that face.
ThemePreview
Mini terminal sample for live theme edits (side preview).
Md
A markdown text run (mouser_core::markdown span flags; heading
level, 0 for body text).
MdCode
Markdown code block background, rounded at the block’s top and bottom.
MdToken(u8)
A highlighted run in a Markdown code block: its token class
(mouser_core::highlight), coloured from the theme’s palette.
MdQuote
Markdown block quote bar.
MdRule
Markdown thematic break.
Frame
A rounded outline box (the chat’s frames, like grokbot-tui’s): the
item’s text is a title set into the top edge; focused draws it in the
accent. Nothing is filled, so items drawn after it show inside.
Bubble
A rounded message bubble behind the rows drawn after it; mine
tints it with the accent (your messages).