diff --git a/Sources/ComponentsKit/Components/Modal/Models/ModalVM.swift b/Sources/ComponentsKit/Components/Modal/Models/ModalVM.swift index 4279759..55af7ea 100644 --- a/Sources/ComponentsKit/Components/Modal/Models/ModalVM.swift +++ b/Sources/ComponentsKit/Components/Modal/Models/ModalVM.swift @@ -37,6 +37,9 @@ public protocol ModalVM: ComponentVM { extension ModalVM { var preferredBackgroundColor: UniversalColor { - return self.backgroundColor ?? .secondaryBackground + return self.backgroundColor ?? .themed( + light: UniversalColor.background.light, + dark: UniversalColor.secondaryBackground.dark + ) } } diff --git a/Sources/ComponentsKit/Components/SegmentedControl/Models/SegmentedControlVM.swift b/Sources/ComponentsKit/Components/SegmentedControl/Models/SegmentedControlVM.swift index 1e4c4c6..e95308a 100644 --- a/Sources/ComponentsKit/Components/SegmentedControl/Models/SegmentedControlVM.swift +++ b/Sources/ComponentsKit/Components/SegmentedControl/Models/SegmentedControlVM.swift @@ -55,7 +55,10 @@ extension SegmentedControlVM { return .content1 } var selectedSegmentColor: UniversalColor { - let color = self.color?.main ?? .background + let color = self.color?.main ?? .themed( + light: UniversalColor.white.light, + dark: UniversalColor.content2.dark + ) return color.enabled(self.isEnabled) } func item(for id: ID) -> SegmentedControlItemVM? {