forked from 1b-agent/opencadstudio-upstream
Round the Current/New band halves and add a divider
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013rGmDUNr1hUf4zo1X3dak8
This commit is contained in:
1 file changed
+16
-2
@@ -289,15 +289,29 @@ impl ColorPicker {
|
|||||||
.height(Length::Fill)
|
.height(Length::Fill)
|
||||||
.style(move |_theme: &Theme, _status| button::Style {
|
.style(move |_theme: &Theme, _status| button::Style {
|
||||||
background: Some(current_bg.into()),
|
background: Some(current_bg.into()),
|
||||||
|
border: Border {
|
||||||
|
radius: iced::border::radius(7.0).right(0.0),
|
||||||
|
..Border::default()
|
||||||
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
let divider = container(Space::new())
|
||||||
|
.width(1)
|
||||||
|
.height(Length::Fill)
|
||||||
|
.style(|_theme: &Theme| filled(Color::from_rgba(0.0, 0.0, 0.0, 0.35)));
|
||||||
let new = container(half(
|
let new = container(half(
|
||||||
t!("New").into_owned(),
|
t!("New").into_owned(),
|
||||||
math::short_name(self.pending),
|
math::short_name(self.pending),
|
||||||
new_bg,
|
new_bg,
|
||||||
))
|
))
|
||||||
.style(move |_theme: &Theme| filled(new_bg));
|
.style(move |_theme: &Theme| container::Style {
|
||||||
container(row![current, new])
|
border: Border {
|
||||||
|
radius: iced::border::radius(7.0).left(0.0),
|
||||||
|
..Border::default()
|
||||||
|
},
|
||||||
|
..filled(new_bg)
|
||||||
|
});
|
||||||
|
container(row![current, divider, new])
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
.height(60)
|
.height(60)
|
||||||
.padding(1)
|
.padding(1)
|
||||||
|
|||||||
Reference in new issue
Block a user