ui: remove unused rounding setup
This commit is contained in:
parent
94b6b54e79
commit
e6e18f07ba
3 changed files with 0 additions and 12 deletions
|
@ -125,10 +125,6 @@ impl ConnectionsContent {
|
|||
ui.allocate_ui_with_layout(rect.size(), Layout::right_to_left(Align::Center), |ui| {
|
||||
// Setup padding for item buttons.
|
||||
ui.style_mut().spacing.button_padding = egui::vec2(14.0, 0.0);
|
||||
// Setup rounding for item buttons.
|
||||
ui.style_mut().visuals.widgets.inactive.rounding = Rounding::same(8.0);
|
||||
ui.style_mut().visuals.widgets.hovered.rounding = Rounding::same(8.0);
|
||||
ui.style_mut().visuals.widgets.active.rounding = Rounding::same(8.0);
|
||||
|
||||
// Draw button to show integrated node info.
|
||||
View::item_button(ui, View::item_rounding(0, 1, true), CARET_RIGHT, None, || {
|
||||
|
|
|
@ -385,10 +385,6 @@ impl WalletsContent {
|
|||
ui.allocate_ui_with_layout(rect.size(), Layout::right_to_left(Align::Center), |ui| {
|
||||
// Setup padding for item buttons.
|
||||
ui.style_mut().spacing.button_padding = egui::vec2(14.0, 0.0);
|
||||
// Setup rounding for item buttons.
|
||||
ui.style_mut().visuals.widgets.inactive.rounding = Rounding::same(8.0);
|
||||
ui.style_mut().visuals.widgets.hovered.rounding = Rounding::same(8.0);
|
||||
ui.style_mut().visuals.widgets.active.rounding = Rounding::same(8.0);
|
||||
|
||||
if !wallet.is_open() {
|
||||
// Show button to open closed wallet.
|
||||
|
|
|
@ -192,10 +192,6 @@ impl ConnectionSetup {
|
|||
ui.allocate_ui_with_layout(rect.size(), Layout::right_to_left(Align::Center), |ui| {
|
||||
// Setup padding for item buttons.
|
||||
ui.style_mut().spacing.button_padding = egui::vec2(14.0, 0.0);
|
||||
// Setup rounding for item buttons.
|
||||
ui.style_mut().visuals.widgets.inactive.rounding = Rounding::same(8.0);
|
||||
ui.style_mut().visuals.widgets.hovered.rounding = Rounding::same(8.0);
|
||||
ui.style_mut().visuals.widgets.active.rounding = Rounding::same(8.0);
|
||||
|
||||
// Draw button to select integrated node if it was not selected.
|
||||
let is_current_method = self.method == ConnectionMethod::Integrated;
|
||||
|
|
Loading…
Reference in a new issue