-
Notifications
You must be signed in to change notification settings - Fork 3
Style
Linus Mußmächer edited this page Jun 29, 2024
·
2 revisions
Rucola comes with two style files by default, default_light
and default_dark
.
For creating your own file, it is suggested to simply modify one of these.
Internally, rucola uses 6 different ratatui-styles for 6 different categories of text. The categories are
- title_style: For block and screen titles.
- subtitle_style: For table headers and other subtitles within a block.
- hotkey_style: Used for the single character within another text that indicates the hotkey to trigger the action indicated by the text.
- text_style: For all basic text: Table content, descriptions, actions.
- selected_style: For the selected row within a table.
- input_style: For the input text within a text box.
For all of these, you can specify
- foreground color
- background color
- modifiers, in particular
BOLD
,ITALIC
andUNDERLINED
, which can be combined with|
likeBOLD | UNDERLINED
where colors can either be the colors specified by your terminal (such asBlue
,LightCyan
,White
) or hex codes (such as#e2e5ab
).
The files are serializations of ratatui::style::Style into the TOML format. This format may change as we update the ratatui version in later releases.