Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ struct BannerMultiMessageCustomInitExample: View {

var customizeNoticeMsg: AttributedString {
var msgText = AttributedString("Customized AI Notice. ")
msgText.font = .footnote.italic()
msgText.font = .fiori(forTextStyle: .footnote, weight: .semibold)
msgText.foregroundColor = .purple
return msgText
}

var customizeNoticeActionLabel: AttributedString {
var msgText = AttributedString(" View Details ")
msgText.font = .footnote.bold()
msgText.font = .fiori(forTextStyle: .footnote, weight: .semibold)
msgText.foregroundColor = .purple
return msgText
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct CardFixedWidthButtonsExample: View {
print("see all")
} label: {
Text("See all (\(self._dataSource.count))")
.font(.fiori(forTextStyle: .body))
.font(.fiori(forTextStyle: .subheadline, weight: .semibold))
.foregroundStyle(Color.preferredColor(.tintColor))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct CardFullWidthSingleButtonExample: View {
print("see all")
} label: {
Text("See all (\(self._dataSource.count))")
.font(.fiori(forTextStyle: .body))
.font(.fiori(forTextStyle: .subheadline, weight: .semibold))
.foregroundStyle(Color.preferredColor(.tintColor))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct CardTwoButtonsChangeToOneExample: View {
print("see all")
} label: {
Text("See all (\(self._dataSource.count))")
.font(.fiori(forTextStyle: .body))
.font(.fiori(forTextStyle: .subheadline, weight: .semibold))
.foregroundStyle(Color.preferredColor(.tintColor))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct TextFieldFormViewExample: View {

var customizeNoticeActionLabel: AttributedString {
var msgText = AttributedString(" View Details ")
msgText.font = .footnote.bold()
msgText.font = .fiori(forTextStyle: .footnote, weight: .semibold)
msgText.foregroundColor = .purple
return msgText
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct ValuePickerExample: View {

var customizeNoticeActionLabel: AttributedString {
var result = AttributedString(" View Details ")
result.font = .footnote.bold()
result.font = .fiori(forTextStyle: .footnote, weight: .semibold)
result.foregroundColor = .purple
return result
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ struct MyLabelStyle: LabelStyle {
HStack(alignment: .center) {
configuration.title
.foregroundColor(.purple)
.font(.subheadline.weight(.semibold))
configuration.icon
.foregroundColor(.green)
.font(.subheadline.weight(.semibold))
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ struct BannerMessageModifier: ViewModifier {
var viewDetail = AttributedString(NSLocalizedString("View Details", tableName: "FioriSwiftUICore", bundle: Bundle.accessor, comment: ""))
viewDetail.foregroundColor = .preferredColor(.tintColor)
viewDetail.link = URL(string: "ViewDetails")
viewDetail.font = .fiori(forTextStyle: .footnote, weight: .semibold)
attributedString.append(viewDetail)
return attributedString
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extension KeyValueItemFioriStyle {

func makeBody(_ configuration: ValueConfiguration) -> some View {
Value(configuration)
.font(.fiori(forTextStyle: .body))
.font(.fiori(forTextStyle: .body, weight: .semibold))
.foregroundColor(.preferredColor(self.isLoading ? .separator : .primaryLabel))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ struct SeeAllActionLabelStyle: LabelStyle {
func makeBody(configuration: Configuration) -> some View {
HStack(alignment: .center) {
configuration.title
.font(.fiori(forTextStyle: .subheadline))
.font(.fiori(forTextStyle: .subheadline, weight: .semibold))
.foregroundColor(Color.preferredColor(.tintColor))
configuration.icon
.font(.fiori(forTextStyle: .subheadline))
.font(.fiori(forTextStyle: .subheadline, weight: .semibold))
.foregroundColor(Color.preferredColor(.secondaryLabel))
}
}
Expand Down
Loading
Loading