Skip to content

Commit d942e91

Browse files
dyongxuservice-tip-gitxiaoyu0722
authored
feat: translation delivery and update close action style for writing assistant (#1193)
* feat: 🎸 Translation Delivery * fix: 🐛 [IOSSDKBUG-860] update close action style in W.A --------- Co-authored-by: SAP LX Lab Service Account <[email protected]> Co-authored-by: Xiaoyu Liu <[email protected]>
1 parent e98d355 commit d942e91

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Sources/FioriSwiftUICore/_ComponentProtocols/BaseComponentProtocols.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ protocol _TopDividerComponent {
270270
// sourcery: BaseComponent
271271
protocol _CloseActionComponent {
272272
// sourcery: @ViewBuilder
273-
// sourcery: defaultValue = "FioriButton { _ in Image(systemName: "xmark") }"
274-
// sourcery: resultBuilder.defaultValue = "{ FioriButton { _ in Image(systemName: "xmark") } }"
273+
// sourcery: defaultValue = "FioriButton { _ in Image(fioriName: "fiori.decline") }"
274+
// sourcery: resultBuilder.defaultValue = "{ FioriButton { _ in Image(fioriName: "fiori.decline") } }"
275275
var closeAction: FioriButton? { get }
276276
}
277277

Sources/FioriSwiftUICore/_FioriStyles/WritingAssistantFormStyle.fiori.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ struct AIWACloseButtonStyle: FioriButtonStyle {
115115
let isPressed = configuration.state == .highlighted || configuration.state == .selected
116116
let isDisabled = configuration.state == .disabled
117117
return configuration.label
118-
.font(Font.fiori(forTextStyle: .footnote, weight: .semibold))
118+
.font(.system(size: 8, weight: .bold))
119119
.foregroundColor(.preferredColor(isPressed || isDisabled ? .quaternaryLabel : .primaryLabel))
120+
.padding(8)
121+
.background {
122+
Circle().fill(Color.preferredColor(.tertiaryFill))
123+
}
120124
}
121125
}
122126

Sources/FioriSwiftUICore/_localization/cnr.lproj/FioriSwiftUICore.strings

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,12 +508,21 @@
508508
/* XBUT: Writing assistant redo action title */
509509
"Redo" = "Ponovi";
510510

511+
/* XTIT: Writing assistant cancel alert message */
512+
"Do you want to undo the edits made by the Writing Assistant and revert the text to its original state?" = "Da li želite da poništite uređivanja koja je izvršio Pomoćnik pri pisanju i vratite tekst na originalno stanje?";
513+
514+
/* XTIT: Writing assistant cancel alert title */
515+
"Discard all changes?" = "Odbaciti sve promjene?";
516+
511517
/* XTIT: Writing assistant cancel alert title */
512518
"Close Writing Assistant without saving changes?" = "Zatvoriti pomoćnika pri pisanju bez snimanja promjena?";
513519

514520
/* XBUT: Writing assistant cancel alert action title for keep working */
515521
"Keep Working" = "Nastavi sa radom";
516522

523+
/* XBUT: Writing assistant cancel alert action title for discard */
524+
"Discard" = "Odbaci";
525+
517526
/* XBUT: Writing assistant cancel alert action title for close */
518527
"Close" = "Zatvori";
519528

0 commit comments

Comments
 (0)