Skip to content

Commit

Permalink
revert change of selected segmented color and modal's background color
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailChelbaev committed Feb 19, 2025
1 parent 1cb7d20 commit cd9c1e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Sources/ComponentsKit/Components/Modal/Models/ModalVM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<ID>? {
Expand Down

0 comments on commit cd9c1e7

Please sign in to comment.