mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
fix: add spacing
This commit is contained in:
parent
f41e6c9647
commit
9949a4c4fb
1 changed files with 16 additions and 7 deletions
|
@ -152,8 +152,17 @@ impl crate::disk::state::Xvb {
|
||||||
ui.vertical_centered(|ui| {
|
ui.vertical_centered(|ui| {
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
|
|
||||||
|
|
||||||
|
let selected_text = match self.mode {
|
||||||
|
XvbMode::Auto => "Auto".to_string(),
|
||||||
|
XvbMode::Hero => "Hero".to_string(),
|
||||||
|
XvbMode::ManualXvb => "Manual Xvb".to_string(),
|
||||||
|
XvbMode::ManualP2pool => "Manual P2pool".to_string(),
|
||||||
|
XvbMode::ManualDonationLevel => "Manual Donation Level".to_string()
|
||||||
|
};
|
||||||
|
|
||||||
egui::ComboBox::from_label("")
|
egui::ComboBox::from_label("")
|
||||||
.selected_text(format!("{:?}", self.mode))
|
.selected_text(selected_text)
|
||||||
.show_ui(ui, |ui| {
|
.show_ui(ui, |ui| {
|
||||||
ui.selectable_value(&mut self.mode, XvbMode::Auto, "Auto");
|
ui.selectable_value(&mut self.mode, XvbMode::Auto, "Auto");
|
||||||
ui.selectable_value(&mut self.mode, XvbMode::Hero, "Hero");
|
ui.selectable_value(&mut self.mode, XvbMode::Hero, "Hero");
|
||||||
|
|
Loading…
Reference in a new issue