mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-10-30 04:57:37 +00:00
fix: modification on visual for status colomn xvb
This commit is contained in:
parent
6a40683de7
commit
9e0ef7a6c3
3 changed files with 13 additions and 21 deletions
|
@ -365,7 +365,7 @@ fn xvb(ui: &mut Ui, min_height: f32, width: f32, height: f32, xvb_api: &Arc<Mute
|
|||
ui.add_sized(
|
||||
[width, height],
|
||||
Label::new(
|
||||
RichText::new("[XvB]")
|
||||
RichText::new("[XvB Raffle]")
|
||||
.color(LIGHT_GRAY)
|
||||
.text_style(TextStyle::Name("MonospaceLarge".into())),
|
||||
),
|
||||
|
@ -383,7 +383,7 @@ fn xvb(ui: &mut Ui, min_height: f32, width: f32, height: f32, xvb_api: &Arc<Mute
|
|||
ui.add_sized(
|
||||
[width, height],
|
||||
Label::new(
|
||||
RichText::new("Raffle Round Time Remaining")
|
||||
RichText::new("Round Time Remaining")
|
||||
.underline()
|
||||
.color(BONE),
|
||||
),
|
||||
|
@ -402,7 +402,7 @@ fn xvb(ui: &mut Ui, min_height: f32, width: f32, height: f32, xvb_api: &Arc<Mute
|
|||
ui.add_sized(
|
||||
[width, height],
|
||||
Label::new(format!(
|
||||
"Bonus HR\n{}kH/s\n+\n{}kH/s\ndonated by\n{} donors\n with\n{} miners",
|
||||
"{}kH/s\n+\n{}kH/s\ndonated by\n{} donors\n with\n{} miners",
|
||||
api.bonus_hr, api.donate_hr, api.donate_miners, api.donate_workers
|
||||
)),
|
||||
);
|
||||
|
@ -440,24 +440,14 @@ fn xvb(ui: &mut Ui, min_height: f32, width: f32, height: f32, xvb_api: &Arc<Mute
|
|||
)
|
||||
.on_hover_text(STATUS_XVB_BLOCK_REWARD);
|
||||
ui.add_sized([width, height], Label::new(format!("{}", api.block_reward)));
|
||||
//block height
|
||||
ui.add_sized(
|
||||
[width, height],
|
||||
Label::new(RichText::new("Block Height").underline().color(BONE)),
|
||||
)
|
||||
.on_hover_text(STATUS_XVB_BLOCK_HEIGHT);
|
||||
ui.add_sized([width, height], Label::new(format!("{}", api.block_height)));
|
||||
// block hash
|
||||
ui.add_sized(
|
||||
[width, height],
|
||||
Label::new(RichText::new("Block Hash").underline().color(BONE)),
|
||||
)
|
||||
.on_hover_text(STATUS_XVB_BLOCK_HASH);
|
||||
ui.add_sized([width, height], Label::new(format!("{}", api.block_hash)));
|
||||
// reward yearly
|
||||
ui.add_sized(
|
||||
[width, height],
|
||||
Label::new(RichText::new("Reward Yearly").underline().color(BONE)),
|
||||
Label::new(
|
||||
RichText::new("Est. Reward (Yearly)")
|
||||
.underline()
|
||||
.color(BONE),
|
||||
),
|
||||
)
|
||||
.on_hover_text(STATUS_XVB_YEARLY);
|
||||
if api.reward_yearly.is_empty() {
|
||||
|
|
|
@ -94,14 +94,18 @@ pub struct PubXvbApi {
|
|||
#[derive(Debug, Clone, Default, Display, Deserialize)]
|
||||
pub enum XvbRound {
|
||||
#[default]
|
||||
#[display(fmt = "VIP")]
|
||||
#[serde(alias = "vip")]
|
||||
Vip,
|
||||
#[serde(alias = "donor")]
|
||||
Donor,
|
||||
#[display(fmt = "VIP Donor")]
|
||||
#[serde(alias = "donor_vip")]
|
||||
DonorVip,
|
||||
#[display(fmt = "Whale Donor")]
|
||||
#[serde(alias = "donor_whale")]
|
||||
DonorWhale,
|
||||
#[display(fmt = "Mega Donor")]
|
||||
#[serde(alias = "donor_mega")]
|
||||
DonorMega,
|
||||
}
|
||||
|
|
|
@ -190,9 +190,7 @@ pub const STATUS_XVB_DONATED_HR: &str = "Hashrate donated to the raffle";
|
|||
pub const STATUS_XVB_WINNER: &str = "Current Raffle Winner";
|
||||
pub const STATUS_XVB_SHARE: &str = "Share effort";
|
||||
pub const STATUS_XVB_BLOCK_REWARD: &str = "Block reward";
|
||||
pub const STATUS_XVB_BLOCK_HEIGHT: &str = "height of the current block";
|
||||
pub const STATUS_XVB_BLOCK_HASH: &str = "hash of the block that is being worked on";
|
||||
pub const STATUS_XVB_YEARLY: &str = "Average yearly reward per round type";
|
||||
pub const STATUS_XVB_YEARLY: &str = "Estimated Reward (Yearly)";
|
||||
// Status Submenus
|
||||
pub const STATUS_SUBMENU_PROCESSES: &str =
|
||||
"View the status of process related data for [Gupax|P2Pool|XMRig]";
|
||||
|
|
Loading…
Reference in a new issue