2025-12-18 01:11:17 +00:00
|
|
|
# Styling & Custom Appearance
|
|
|
|
|
|
|
|
|
|
Examples of custom borders, themes, and visual styling.
|
|
|
|
|
|
|
|
|
|
## Files
|
|
|
|
|
|
|
|
|
|
- **custom_border_form.toml** - Custom border definitions
|
|
|
|
|
- **fancy_borders_form.toml** - Advanced border styling
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
### CLI Backend
|
|
|
|
|
```bash
|
|
|
|
|
cargo run --example custom_border_form
|
|
|
|
|
cargo run --example fancy_borders_form
|
2026-01-11 22:35:49 +00:00
|
|
|
```text
|
2025-12-18 01:11:17 +00:00
|
|
|
|
|
|
|
|
### Web Backend
|
|
|
|
|
```bash
|
|
|
|
|
cargo run -p typedialog-web -- --config custom_border_form.toml
|
2026-01-11 22:35:49 +00:00
|
|
|
```text
|
2025-12-18 01:11:17 +00:00
|
|
|
|
|
|
|
|
## Features Demonstrated
|
|
|
|
|
|
|
|
|
|
- Custom border styles
|
|
|
|
|
- Section separators
|
|
|
|
|
- Visual hierarchy
|
|
|
|
|
- Theme customization
|
|
|
|
|
- Character-based borders (for CLI)
|
|
|
|
|
|
|
|
|
|
## Border Options
|
|
|
|
|
|
|
|
|
|
Borders can use:
|
|
|
|
|
- `simple` - Basic ASCII borders
|
|
|
|
|
- `double` - Double-line borders
|
|
|
|
|
- `rounded` - Rounded corners
|
|
|
|
|
- `thick` - Thick lines
|
|
|
|
|
- Custom border characters
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
```toml
|
|
|
|
|
[sections.main]
|
|
|
|
|
title = "Main Section"
|
|
|
|
|
border = "double"
|
2026-01-11 22:35:49 +00:00
|
|
|
```text
|