make the thing nicer
This commit is contained in:
+6
-4
@@ -210,7 +210,9 @@ impl App {
|
|||||||
|
|
||||||
fn show_network(&mut self, _ctx: &egui::Context, ui: &mut egui::Ui) {
|
fn show_network(&mut self, _ctx: &egui::Context, ui: &mut egui::Ui) {
|
||||||
header(ui, "Network");
|
header(ui, "Network");
|
||||||
egui::Frame::new().show(ui, |ui| {
|
egui::Frame::new()
|
||||||
|
.outer_margin(egui::vec2(0.0, -2.0))
|
||||||
|
.show(ui, |ui| {
|
||||||
let response = ui.add_enabled_ui(self.flags.elevated, |ui| {
|
let response = ui.add_enabled_ui(self.flags.elevated, |ui| {
|
||||||
let label = ui.label("Game's network access");
|
let label = ui.label("Game's network access");
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
@@ -231,9 +233,9 @@ impl App {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
response
|
response.response.on_disabled_hover_text(
|
||||||
.response
|
"This requires administrator.\nUse the Elevate button.",
|
||||||
.on_disabled_hover_text("This requires administrator.\nUse the Elevate button.");
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user