diff options
-rw-r--r-- | examples/websocket/Cargo.toml | 2 | ||||
-rw-r--r-- | native/src/overlay/menu.rs | 4 | ||||
-rw-r--r-- | style/src/menu.rs | 1 | ||||
-rw-r--r-- | style/src/theme.rs | 1 |
4 files changed, 5 insertions, 3 deletions
diff --git a/examples/websocket/Cargo.toml b/examples/websocket/Cargo.toml index c582733f..3981f699 100644 --- a/examples/websocket/Cargo.toml +++ b/examples/websocket/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "websocket" -version = "0.1.0" +version = "1.0.0" authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"] edition = "2021" publish = false diff --git a/native/src/overlay/menu.rs b/native/src/overlay/menu.rs index e1c79a5e..08135872 100644 --- a/native/src/overlay/menu.rs +++ b/native/src/overlay/menu.rs @@ -299,7 +299,7 @@ where }, border_color: appearance.border_color, border_width: appearance.border_width, - border_radius: 0.0, + border_radius: appearance.border_radius, }, appearance.background, ); @@ -491,7 +491,7 @@ where bounds, border_color: Color::TRANSPARENT, border_width: 0.0, - border_radius: 0.0, + border_radius: appearance.border_radius, }, appearance.selected_background, ); diff --git a/style/src/menu.rs b/style/src/menu.rs index b1dd5ea0..6ef3e2a2 100644 --- a/style/src/menu.rs +++ b/style/src/menu.rs @@ -6,6 +6,7 @@ pub struct Appearance { pub text_color: Color, pub background: Background, pub border_width: f32, + pub border_radius: f32, pub border_color: Color, pub selected_text_color: Color, pub selected_background: Background, diff --git a/style/src/theme.rs b/style/src/theme.rs index 5697b240..9e9abfa0 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -366,6 +366,7 @@ impl menu::StyleSheet for Theme { text_color: palette.background.weak.text, background: palette.background.weak.color.into(), border_width: 1.0, + border_radius: 0.0, border_color: palette.background.strong.color, selected_text_color: palette.primary.strong.text, selected_background: palette.primary.strong.color.into(), |