feat: add tab XvB option to Gupax Tab selector

This commit is contained in:
Louis-Marie Baer 2024-03-15 00:20:59 +01:00
parent 0a9375130f
commit 066fd5bda5
2 changed files with 9 additions and 1 deletions

View file

@ -230,7 +230,7 @@ impl Gupax {
// Saved [Tab]
debug!("Gupax Tab | Rendering [Tab] selector");
ui.group(|ui| {
let width = (size.x / 5.0) - (SPACE * 1.93);
let width = (size.x / 6.0) - (SPACE * 1.93);
let size = vec2(width, height);
ui.add_sized(
[ui.available_width(), height / 2.0],
@ -284,6 +284,13 @@ impl Gupax {
{
self.tab = Tab::Xmrig;
}
if ui
.add_sized(size, SelectableLabel::new(self.tab == Tab::Xvb, "XvB"))
.on_hover_text(GUPAX_TAB_XVB)
.clicked()
{
self.tab = Tab::Xvb;
}
})
});

View file

@ -292,6 +292,7 @@ pub const GUPAX_TAB_STATUS: &str = "Set the tab Gupax starts on to: Status";
pub const GUPAX_TAB_GUPAX: &str = "Set the tab Gupax starts on to: Gupax";
pub const GUPAX_TAB_P2POOL: &str = "Set the tab Gupax starts on to: P2Pool";
pub const GUPAX_TAB_XMRIG: &str = "Set the tab Gupax starts on to: XMRig";
pub const GUPAX_TAB_XVB: &str = "Set the tab Gupax starts on to: XvB";
pub const GUPAX_SIMPLE: &str = r#"Use simple Gupax settings:
- Update button