feat: lower the opacity of colors used in the segmented button when disabled

This is needed for the new tiling applet. Transparent text only seems to be working with the wgpu feature at the moment
This commit is contained in:
Ashley Wulber 2024-02-09 12:43:05 -05:00 committed by Michael Murphy
parent 5738ac2055
commit 072a3d5ca0
3 changed files with 78 additions and 38 deletions

View file

@ -330,15 +330,25 @@ impl State {
.spacing(8)
.on_activate(Message::Selection)
.into(),
text("Disabled Horizontal With Spacing").into(),
segmented_selection::horizontal(&self.selection)
.spacing(8)
.into(),
text("Horizontal Multi-Select").into(),
segmented_selection::horizontal(&self.multi_selection)
.spacing(8)
.on_activate(Message::MultiSelection)
.into(),
text("Disabled Horizontal Multi-Select").into(),
segmented_selection::horizontal(&self.multi_selection)
.spacing(8)
.into(),
text("Vertical").into(),
segmented_selection::vertical(&self.selection)
.on_activate(Message::Selection)
.into(),
text("Disabled Vertical").into(),
segmented_selection::vertical(&self.selection).into(),
text("Vertical Multi-Select Shrunk").into(),
segmented_selection::vertical(&self.multi_selection)
.width(Length::Shrink)