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
|
@ -38,26 +38,27 @@ impl TUIStatusListener for TUIStatusView {
|
||||||
LinearLayout::new(Orientation::Vertical)
|
LinearLayout::new(Orientation::Vertical)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
.child(TextView::new("Current Status: "))
|
.child(TextView::new("Current Status: "))
|
||||||
.child(TextView::new("Starting").with_id("basic_current_status")),
|
.child(TextView::new("Starting").with_id("basic_current_status")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
.child(TextView::new("Connected Peers: "))
|
.child(TextView::new("Connected Peers: "))
|
||||||
.child(TextView::new("0").with_id("connected_peers")),
|
.child(TextView::new("0").with_id("connected_peers")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal).child(TextView::new(
|
||||||
.child(TextView::new("------------------------")),
|
"------------------------------------------------",
|
||||||
|
)),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
.child(TextView::new("Header Tip Hash: "))
|
.child(TextView::new("Header Tip Hash: "))
|
||||||
.child(TextView::new(" ").with_id("basic_header_tip_hash")),
|
.child(TextView::new(" ").with_id("basic_header_tip_hash")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
.child(TextView::new("Header Chain Height: "))
|
.child(TextView::new("Header Chain Height: "))
|
||||||
.child(TextView::new(" ").with_id("basic_header_chain_height")),
|
.child(TextView::new(" ").with_id("basic_header_chain_height")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
|
@ -66,27 +67,29 @@ impl TUIStatusListener for TUIStatusView {
|
||||||
.child(TextView::new(" ").with_id("basic_header_total_difficulty")),
|
.child(TextView::new(" ").with_id("basic_header_total_difficulty")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal).child(TextView::new(
|
||||||
.child(TextView::new("------------------------")),
|
"------------------------------------------------",
|
||||||
|
)),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
.child(TextView::new("Tip Hash: "))
|
.child(TextView::new("Chain Tip Hash: "))
|
||||||
.child(TextView::new(" ").with_id("tip_hash")),
|
.child(TextView::new(" ").with_id("tip_hash")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
.child(TextView::new("Chain Height: "))
|
.child(TextView::new("Chain Height: "))
|
||||||
.child(TextView::new(" ").with_id("chain_height")),
|
.child(TextView::new(" ").with_id("chain_height")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
.child(TextView::new("Cumulative Difficulty: "))
|
.child(TextView::new("Chain Cumulative Difficulty: "))
|
||||||
.child(TextView::new(" ").with_id("basic_total_difficulty")),
|
.child(TextView::new(" ").with_id("basic_total_difficulty")),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal).child(TextView::new(
|
||||||
.child(TextView::new("------------------------")),
|
"------------------------------------------------",
|
||||||
|
)),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
LinearLayout::new(Orientation::Horizontal)
|
LinearLayout::new(Orientation::Horizontal)
|
||||||
|
|
Loading…
Reference in a new issue