diff --git a/src/app/panels/top.rs b/src/app/panels/top.rs index 4ab6581..0c5a50e 100644 --- a/src/app/panels/top.rs +++ b/src/app/panels/top.rs @@ -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() {