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::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()
{ {