mirror of
https://github.com/corda/corda.git
synced 2025-06-13 20:58:19 +00:00
Minor: add a paperclip icon to the Emoji library
This commit is contained in:
@ -20,6 +20,7 @@ object Emoji {
|
|||||||
const val CODE_RIGHT_ARROW = "\u27a1\ufe0f"
|
const val CODE_RIGHT_ARROW = "\u27a1\ufe0f"
|
||||||
const val CODE_LEFT_ARROW = "\u2b05\ufe0f"
|
const val CODE_LEFT_ARROW = "\u2b05\ufe0f"
|
||||||
const val CODE_GREEN_TICK = "\u2705"
|
const val CODE_GREEN_TICK = "\u2705"
|
||||||
|
const val CODE_PAPERCLIP = "\ud83d\udcce"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When non-null, toString() methods are allowed to use emoji in the output as we're going to render them to a
|
* When non-null, toString() methods are allowed to use emoji in the output as we're going to render them to a
|
||||||
@ -32,6 +33,7 @@ object Emoji {
|
|||||||
val newspaper: String get() = if (emojiMode.get() != null) "$CODE_NEWSPAPER " else ""
|
val newspaper: String get() = if (emojiMode.get() != null) "$CODE_NEWSPAPER " else ""
|
||||||
val rightArrow: String get() = if (emojiMode.get() != null) "$CODE_RIGHT_ARROW " else ""
|
val rightArrow: String get() = if (emojiMode.get() != null) "$CODE_RIGHT_ARROW " else ""
|
||||||
val leftArrow: String get() = if (emojiMode.get() != null) "$CODE_LEFT_ARROW " else ""
|
val leftArrow: String get() = if (emojiMode.get() != null) "$CODE_LEFT_ARROW " else ""
|
||||||
|
val paperclip: String get() = if (emojiMode.get() != null) "$CODE_PAPERCLIP " else ""
|
||||||
|
|
||||||
fun renderIfSupported(obj: Any): String {
|
fun renderIfSupported(obj: Any): String {
|
||||||
if (!hasEmojiTerminal)
|
if (!hasEmojiTerminal)
|
||||||
|
Reference in New Issue
Block a user