Skip to content

Commit

Permalink
Remove now-useless trigger overview border
Browse files Browse the repository at this point in the history
Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name>
  • Loading branch information
valeriansaliou committed Nov 8, 2020
1 parent 6ce8b81 commit d2b155b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/display/identifiers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ widget_ids!(pub struct Ids {
tidal_unit,

trigger_overview_container,
trigger_overview_border,
trigger_overview_title,
trigger_overview_status_label,
trigger_overview_status_value,
Expand Down
1 change: 0 additions & 1 deletion src/display/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ impl<'a> Screen<'a> {
trigger_overview::Config {
parent: self.ids.ratio_parent,
container: self.ids.trigger_overview_container,
border: self.ids.trigger_overview_border,
title_widget: self.ids.trigger_overview_title,
status_label_widget: self.ids.trigger_overview_status_label,
status_value_widget: self.ids.trigger_overview_status_value,
Expand Down
6 changes: 0 additions & 6 deletions src/widget/trigger_overview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use crate::APP_I18N;
pub struct Config<'a> {
pub parent: WidgetId,
pub container: WidgetId,
pub border: WidgetId,
pub title_widget: WidgetId,
pub status_label_widget: WidgetId,
pub status_value_widget: WidgetId,
Expand Down Expand Up @@ -48,11 +47,6 @@ pub fn render<'a>(master: &mut ControlWidget<'a>, config: Config) -> f64 {
.bottom_left_with_margins_on(config.parent, config.y_position, config.x_position)
.set(config.container, &mut master.ui);

// Append left border
widget::rectangle::Rectangle::fill_with([1.0, config.height], color::BLACK.with_alpha(0.25))
.top_left_with_margins_on(config.container, 0.0, -1.0)
.set(config.border, &mut master.ui);

// Append contents
title(master, &config);
status(master, &config);
Expand Down

0 comments on commit d2b155b

Please sign in to comment.