textual 1.0.0-dev

A reactive TUI framework inspired by the Python Textual library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Tooltip widget defaults
// DC-26: aligned with Python Textual _tooltip.py DEFAULT_CSS

pub(super) const DEFAULT_CSS: &str = r#"
Tooltip {
    layer: _tooltips;
    margin: 1 0;
    padding: 1 2;
    bg: $panel;
    width: auto;
    height: auto;
    constrain: inside inflect;
    max-width: 40;
    display: none;
    offset-x: -50%;
}
"#;