generated from GarandPLG/rust-flake-template
Display structure owner and adjust UI layouts
Add owner line to structure text, using gray label and owner span. Switch side panel layout to Fill/Length and remove left border from side panel widget. Import Stylize for colored text rendering.
This commit is contained in:
@@ -53,7 +53,7 @@ impl<'a> SidePanelWidget<'a> {
|
||||
|
||||
fn get_inner_block<'b>(&self, title: String, color: Color) -> Block<'b> {
|
||||
Block::default()
|
||||
.borders(Borders::LEFT | Borders::TOP)
|
||||
.borders(Borders::TOP)
|
||||
.title(block_single_title_helper(title, color))
|
||||
.title_alignment(Alignment::Center)
|
||||
.padding(Padding::symmetric(1, 1))
|
||||
|
||||
Reference in New Issue
Block a user