From c6c46cea1a868553f7d2decca5ccd572b1d9961a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 10 Feb 2023 07:38:38 -0700 Subject: [PATCH] Update default MenuList padding --- src/main.rs | 3 --- src/menu_list.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7f7b7f1..6e13716 100644 --- a/src/main.rs +++ b/src/main.rs @@ -248,13 +248,10 @@ impl Application for Window { .padding(8) .placeholder("File"), MenuList::new(vec!["Todo"], None, |_| Message::Todo) - .padding(8) .placeholder("Edit"), MenuList::new(vec!["Todo"], None, |_| Message::Todo) - .padding(8) .placeholder("View"), MenuList::new(vec!["Todo"], None, |_| Message::Todo) - .padding(8) .placeholder("Help"), ] .align_items(Alignment::Start) diff --git a/src/menu_list.rs b/src/menu_list.rs index 3ed0905..5d27e7a 100644 --- a/src/menu_list.rs +++ b/src/menu_list.rs @@ -101,7 +101,7 @@ where ::Style: From<::Style>, { /// The default padding of a [`MenuList`]. - pub const DEFAULT_PADDING: Padding = Padding::new(5); + pub const DEFAULT_PADDING: Padding = Padding::new(8); /// Creates a new [`MenuList`] with the given list of options, the current /// selected value, and the message to produce when an option is selected.