Skip to content

Commit

Permalink
feat: [HCPSDKFIORIUIKIT-2504]Color updates for Dimension Selectors (#654
Browse files Browse the repository at this point in the history
)

Co-authored-by: Ze-Chao Zhang <ze-chao.zhang@sap.com>
Co-authored-by: dyongxu <61523257+dyongxu@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 9, 2024
1 parent 09ad197 commit 1da6a93
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -154,9 +154,9 @@ public struct DimensionSelector: View {
self.selectedIndex = selectedIndex

self.model.segmentAttributes = [
.normal: SegmentAttributes(textColor: Color.preferredColor(.tertiaryLabel), font: Font.fiori(forTextStyle: .subheadline), borderWidth: 0.33, borderColor: Color.preferredColor(.separator), backgroundColor: Color.preferredColor(.secondaryFill)),
.selected: SegmentAttributes(textColor: Color.preferredColor(.tintColor), font: Font.fiori(forTextStyle: .subheadline), borderWidth: 1.0, borderColor: Color.preferredColor(.tintColor), backgroundColor: Color.preferredColor(.primaryFill)),
.disabled: SegmentAttributes(textColor: Color.preferredColor(.tertiaryLabel), font: Font.fiori(forTextStyle: .subheadline), borderWidth: 0.33, borderColor: Color.preferredColor(.secondaryFill), backgroundColor: Color.preferredColor(.secondaryFill))
.normal: SegmentAttributes(textColor: Color.preferredColor(.secondaryLabel), font: Font.fiori(forTextStyle: .subheadline), borderWidth: 0.33, borderColor: Color.preferredColor(.separator), backgroundColor: Color.preferredColor(.tertiaryFill)),
.selected: SegmentAttributes(textColor: Color.preferredColor(.tintColor), font: Font.fiori(forTextStyle: .subheadline), borderWidth: 1.0, borderColor: Color.preferredColor(.tintColor), backgroundColor: Color.preferredColor(.secondaryGroupedBackground)),
.disabled: SegmentAttributes(textColor: Color.preferredColor(.secondaryLabel), font: Font.fiori(forTextStyle: .subheadline), borderWidth: 0.33, borderColor: Color.preferredColor(.secondaryFill), backgroundColor: Color.preferredColor(.tertiaryFill))
]

if let _contentInset = contentInset {
Expand Down

0 comments on commit 1da6a93

Please sign in to comment.