Skip to content

Commit 32ca386

Browse files
committed
bugfix(size): Use full width for window
1 parent 09a8ac2 commit 32ca386

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

oxirun/src/utils.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use iced::{
22
Alignment, Element, Length, Renderer, Theme, widget::container, widget::container::Style,
33
};
4-
use oxiced::widgets::common::darken_color;
54

65
use crate::Message;
76

@@ -40,10 +39,10 @@ impl FocusDirection {
4039
fn box_style(theme: &Theme) -> Style {
4140
let palette = theme.extended_palette();
4241
Style {
43-
background: Some(iced::Background::Color(darken_color(
42+
background: Some(iced::Background::Color(
4443
palette.background.base.color,
45-
))),
46-
border: iced::border::rounded(MEDIUM_SPACING),
44+
)),
45+
border: iced::border::color(palette.primary.strong.color).width(5).rounded(10),
4746
..container::rounded_box(theme)
4847
}
4948
}
@@ -55,7 +54,7 @@ pub fn wrap_in_rounded_box<'a>(
5554
.style(box_style)
5655
.align_x(Alignment::Center)
5756
.padding(50)
58-
.max_width(550)
57+
.max_width(600)
5958
.width(Length::Fill)
6059
.into()
6160
}

0 commit comments

Comments
 (0)