mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
TUI basis status text align (#2150)
* tui basic status text align * rustfmt
This commit is contained in:
parent
e6bc6e060e
commit
32a7c309e7
1 changed files with 16 additions and 13 deletions
|
@ -47,8 +47,9 @@ impl TUIStatusListener for TUIStatusView {
|
|||
.child(TextView::new("0").with_id("connected_peers")),
|
||||
)
|
||||
.child(
|
||||
LinearLayout::new(Orientation::Horizontal)
|
||||
.child(TextView::new("------------------------")),
|
||||
LinearLayout::new(Orientation::Horizontal).child(TextView::new(
|
||||
"------------------------------------------------",
|
||||
)),
|
||||
)
|
||||
.child(
|
||||
LinearLayout::new(Orientation::Horizontal)
|
||||
|
@ -66,12 +67,13 @@ impl TUIStatusListener for TUIStatusView {
|
|||
.child(TextView::new(" ").with_id("basic_header_total_difficulty")),
|
||||
)
|
||||
.child(
|
||||
LinearLayout::new(Orientation::Horizontal)
|
||||
.child(TextView::new("------------------------")),
|
||||
LinearLayout::new(Orientation::Horizontal).child(TextView::new(
|
||||
"------------------------------------------------",
|
||||
)),
|
||||
)
|
||||
.child(
|
||||
LinearLayout::new(Orientation::Horizontal)
|
||||
.child(TextView::new("Tip Hash: "))
|
||||
.child(TextView::new("Chain Tip Hash: "))
|
||||
.child(TextView::new(" ").with_id("tip_hash")),
|
||||
)
|
||||
.child(
|
||||
|
@ -81,12 +83,13 @@ impl TUIStatusListener for TUIStatusView {
|
|||
)
|
||||
.child(
|
||||
LinearLayout::new(Orientation::Horizontal)
|
||||
.child(TextView::new("Cumulative Difficulty: "))
|
||||
.child(TextView::new("Chain Cumulative Difficulty: "))
|
||||
.child(TextView::new(" ").with_id("basic_total_difficulty")),
|
||||
)
|
||||
.child(
|
||||
LinearLayout::new(Orientation::Horizontal)
|
||||
.child(TextView::new("------------------------")),
|
||||
LinearLayout::new(Orientation::Horizontal).child(TextView::new(
|
||||
"------------------------------------------------",
|
||||
)),
|
||||
)
|
||||
.child(
|
||||
LinearLayout::new(Orientation::Horizontal)
|
||||
|
|
Loading…
Reference in a new issue