Skip to content

Commit 9bc3cd2

Browse files
committed
Add padding to results
1 parent e2c7071 commit 9bc3cd2

File tree

1 file changed

+3
-3
lines changed
  • src/vonal_daemon/plugins

1 file changed

+3
-3
lines changed

src/vonal_daemon/plugins/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ pub trait Plugin {
6363
#[derive(Default)]
6464
pub struct PluginManager {
6565
plugins: Vec<Box<dyn Plugin>>,
66-
config_padding: f32,
6766
config_plugins: Vec<String>,
6867
}
6968

@@ -73,7 +72,6 @@ impl PluginManager {
7372
}
7473

7574
pub fn configure(&mut self, mut builder: ConfigBuilder) -> Result<ConfigBuilder, ConfigError> {
76-
self.config_padding = builder.get_or_create("padding", 15.)?;
7775
let plugins = builder.get_or_create(
7876
"plugins",
7977
vec![
@@ -114,7 +112,7 @@ impl PluginManager {
114112

115113
pub fn search(&mut self, query: &mut String, ui: &mut Ui, gl_window: &GlutinWindowContext) {
116114
ui.horizontal_top(|ui| {
117-
ui.add_space(self.config_padding);
115+
ui.add_space(15.);
118116
ui.vertical(|ui| {
119117
// don't search when there's nothing to search
120118
if query.is_empty() {
@@ -127,6 +125,8 @@ impl PluginManager {
127125
return;
128126
}
129127
}
128+
129+
ui.add_space(10.);
130130
});
131131
});
132132
}

0 commit comments

Comments
 (0)