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:
1 parent
55a260755c
commit
b1183175be
3 files changed
+15
-4
No files matched your search
@@ -47,7 +47,7 @@ pub fn skirmish_layout(area: Rect) -> [Rect; 3] {
|
||||
|
||||
pub fn skirmish_main_area_layout(area: Rect, side_panel: bool) -> [Rect; 2] {
|
||||
let constraint: [Constraint; 2] = if side_panel {
|
||||
[Constraint::Percentage(80), Constraint::Percentage(20)]
|
||||
[Constraint::Fill(1), Constraint::Length(39)]
|
||||
} else {
|
||||
[Constraint::Percentage(100), Constraint::Percentage(0)]
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user