feat: change xmrig-proxy tab name to proxy

This commit is contained in:
Cyrix126 2024-06-30 06:57:48 +02:00
parent f98ede91b9
commit 29fd5e234a

View file

@ -1,5 +1,5 @@
use egui::TextStyle::{self, Name};
use egui::{RichText, SelectableLabel, TopBottomPanel};
use egui::TextStyle::Name;
use egui::{SelectableLabel, TopBottomPanel};
use log::debug;
use crate::{app::Tab, utils::constants::SPACE};
@ -63,14 +63,10 @@ impl crate::app::App {
self.tab = Tab::Xmrig;
}
ui.separator();
let font_size = ui.text_style_height(&TextStyle::Name("Tab".into())) / 2.5;
if ui
.add_sized(
[width, height],
SelectableLabel::new(
self.tab == Tab::XmrigProxy,
RichText::new("XMRig-Proxy").size(font_size),
),
SelectableLabel::new(self.tab == Tab::XmrigProxy, "Proxy"),
)
.clicked()
{