feat(segmented-button): Selection style and implementation

This commit is contained in:
Michael Aaron Murphy 2022-12-28 21:13:49 +01:00 committed by Ashley Wulber
parent 3454483345
commit bbac6b9bbf
6 changed files with 68 additions and 16 deletions

View file

@ -1,6 +1,5 @@
/// Copyright 2022 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
mod state;
mod style;
@ -49,7 +48,7 @@ where
pub fn new(state: &'a WidgetState) -> Self {
Self {
state,
height: Length::Units(48),
height: Length::Units(32),
width: Length::Fill,
spacing: 0,
style: <Renderer::Theme as StyleSheet>::Style::default(),

View file

@ -1,6 +1,5 @@
/// Copyright 2022 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
use slotmap::{SecondaryMap, SlotMap};
slotmap::new_key_type! {

View file

@ -1,6 +1,5 @@
/// Copyright 2022 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
use iced_core::{Background, BorderRadius, Color};
/// The appearance of a [`SegmentedButton`].