mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
feat: change xmrig-proxy tab name to proxy
This commit is contained in:
parent
f98ede91b9
commit
29fd5e234a
1 changed files with 3 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
use egui::TextStyle::{self, Name};
|
use egui::TextStyle::Name;
|
||||||
use egui::{RichText, SelectableLabel, TopBottomPanel};
|
use egui::{SelectableLabel, TopBottomPanel};
|
||||||
use log::debug;
|
use log::debug;
|
||||||
|
|
||||||
use crate::{app::Tab, utils::constants::SPACE};
|
use crate::{app::Tab, utils::constants::SPACE};
|
||||||
|
@ -63,14 +63,10 @@ impl crate::app::App {
|
||||||
self.tab = Tab::Xmrig;
|
self.tab = Tab::Xmrig;
|
||||||
}
|
}
|
||||||
ui.separator();
|
ui.separator();
|
||||||
let font_size = ui.text_style_height(&TextStyle::Name("Tab".into())) / 2.5;
|
|
||||||
if ui
|
if ui
|
||||||
.add_sized(
|
.add_sized(
|
||||||
[width, height],
|
[width, height],
|
||||||
SelectableLabel::new(
|
SelectableLabel::new(self.tab == Tab::XmrigProxy, "Proxy"),
|
||||||
self.tab == Tab::XmrigProxy,
|
|
||||||
RichText::new("XMRig-Proxy").size(font_size),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue