Draft Instruction DSL in iced_test

This commit is contained in:
Héctor Ramón Jiménez 2025-05-29 16:34:44 +02:00
parent 327522eb99
commit 921467b5be
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
12 changed files with 1246 additions and 631 deletions

View file

@ -698,6 +698,7 @@ pub fn rounded_box(theme: &Theme) -> Style {
Style {
background: Some(palette.background.weak.color.into()),
text_color: Some(palette.background.weak.text),
border: border::rounded(2),
..Style::default()
}
@ -709,6 +710,7 @@ pub fn bordered_box(theme: &Theme) -> Style {
Style {
background: Some(palette.background.weakest.color.into()),
text_color: Some(palette.background.weakest.text),
border: Border {
width: 1.0,
radius: 5.0.into(),

View file

@ -206,13 +206,9 @@ where
layout: Layout<'_>,
cursor: mouse::Cursor,
) {
self.content.as_overlay().draw(
renderer,
&self.theme,
style,
layout,
cursor,
);
self.content
.as_overlay()
.draw(renderer, self.theme, style, layout, cursor);
}
fn update(