From 4e6528d5a88182b06ebdcb9961fe210efa2cd61f Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 6 Oct 2019 13:52:41 +0200 Subject: Font awesome icons in modals. --- .../src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt | 2 +- .../src/main/kotlin/pl/treksoft/kvision/modal/Confirm.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision') diff --git a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt index 5f5a1a80..4c5b222e 100644 --- a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt +++ b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt @@ -76,7 +76,7 @@ open class Alert( init { body.add(contentTag) - val okButton = Button("OK", "ok", ButtonStyle.PRIMARY) + val okButton = Button("OK", "fas fa-check", ButtonStyle.PRIMARY) okButton.setEventListener { click = { hide() diff --git a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Confirm.kt b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Confirm.kt index e16ca87e..058ca7bc 100644 --- a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Confirm.kt +++ b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/modal/Confirm.kt @@ -108,9 +108,9 @@ open class Confirm( } private val contentTag = Tag(TAG.DIV, text, rich, align) - private val cancelButton = Button(cancelTitle, "remove") - private val noButton = Button(noTitle, "ban-circle") - private val yesButton = Button(yesTitle, "ok", ButtonStyle.PRIMARY) + private val cancelButton = Button(cancelTitle, "fas fa-times") + private val noButton = Button(noTitle, "fas fa-ban") + private val yesButton = Button(yesTitle, "fas fa-check", ButtonStyle.PRIMARY) init { body.add(contentTag) -- cgit