summaryrefslogtreecommitdiffstats
path: root/widget/src/pick_list.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-08 00:36:37 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-08 00:37:00 +0100
commit1db823b4c528441627dd075d989fca2fa0a44346 (patch)
tree8f2d892726c2a5f653c47623e703179c0c3c3107 /widget/src/pick_list.rs
parentc99e5996478ee74e5328ef5aaa1d350fcc06933b (diff)
downloadiced-1db823b4c528441627dd075d989fca2fa0a44346.tar.gz
iced-1db823b4c528441627dd075d989fca2fa0a44346.tar.bz2
iced-1db823b4c528441627dd075d989fca2fa0a44346.zip
Make `PickList` padding consistent with `Button`
Diffstat (limited to 'widget/src/pick_list.rs')
-rw-r--r--widget/src/pick_list.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/widget/src/pick_list.rs b/widget/src/pick_list.rs
index cfeabbb7..d98909fa 100644
--- a/widget/src/pick_list.rs
+++ b/widget/src/pick_list.rs
@@ -58,9 +58,6 @@ where
Message: Clone,
Renderer: text::Renderer,
{
- /// The default padding of a [`PickList`].
- pub const DEFAULT_PADDING: Padding = Padding::new(5.0);
-
/// Creates a new [`PickList`] with the given list of options, the current
/// selected value, and the message to produce when an option is selected.
pub fn new(
@@ -79,7 +76,7 @@ where
placeholder: None,
selected,
width: Length::Shrink,
- padding: Self::DEFAULT_PADDING,
+ padding: crate::button::DEFAULT_PADDING,
text_size: None,
text_line_height: text::LineHeight::default(),
text_shaping: text::Shaping::Basic,