Add support for asymmetrical padding
This commit is contained in:
parent
a9eb591628
commit
fe0a27c56d
27 changed files with 339 additions and 195 deletions
|
|
@ -5,7 +5,7 @@ use crate::defaults::{self, Defaults};
|
|||
use crate::{Backend, Primitive, Renderer};
|
||||
use iced_native::mouse;
|
||||
use iced_native::{
|
||||
Background, Color, Element, Layout, Point, Rectangle, Vector,
|
||||
Background, Color, Element, Layout, Padding, Point, Rectangle, Vector,
|
||||
};
|
||||
|
||||
pub use iced_native::button::State;
|
||||
|
|
@ -21,7 +21,7 @@ impl<B> iced_native::button::Renderer for Renderer<B>
|
|||
where
|
||||
B: Backend,
|
||||
{
|
||||
const DEFAULT_PADDING: u16 = 5;
|
||||
const DEFAULT_PADDING: Padding = Padding::new(5);
|
||||
|
||||
type Style = Box<dyn StyleSheet>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue