summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/Avatar.qml4
-rw-r--r--resources/qml/EncryptionIndicator.qml2
-rw-r--r--resources/qml/dialogs/UserProfile.qml16
3 files changed, 11 insertions, 11 deletions
diff --git a/resources/qml/Avatar.qml b/resources/qml/Avatar.qml

index 09529fcd..069f639a 100644 --- a/resources/qml/Avatar.qml +++ b/resources/qml/Avatar.qml
@@ -79,9 +79,9 @@ AbstractButton { function updatePresence() { switch (Presence.userPresence(userid)) { case "online": - return "#00cc66"; + return Nheko.theme.green; case "unavailable": - return "#ff9933"; + return Nheko.theme.red; case "offline": default: // return "#a82353" don't show anything if offline, since it is confusing, if presence is disabled diff --git a/resources/qml/EncryptionIndicator.qml b/resources/qml/EncryptionIndicator.qml
index 7455149d..0bbdffc6 100644 --- a/resources/qml/EncryptionIndicator.qml +++ b/resources/qml/EncryptionIndicator.qml
@@ -40,7 +40,7 @@ Image { if (encrypted) { switch (trust) { case Crypto.Verified: - return sourceUrl + "green"; + return sourceUrl + Nheko.theme.green; case Crypto.TOFU: return sourceUrl + Nheko.colors.buttonText; default: diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml
index d218e8fe..e57d4de5 100644 --- a/resources/qml/dialogs/UserProfile.qml +++ b/resources/qml/dialogs/UserProfile.qml
@@ -313,13 +313,13 @@ ApplicationWindow { source: { switch (verificationStatus) { case VerificationStatus.VERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?green"; + return "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?" + Nheko.theme.green; case VerificationStatus.UNVERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?#d6c020"; + return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?" + Nheko.theme.orange; case VerificationStatus.SELF: - return "image://colorimage/:/icons/icons/ui/checkmark.svg?green"; + return "image://colorimage/:/icons/icons/ui/checkmark.svg?" + Nheko.theme.green; default: - return "image://colorimage/:/icons/icons/ui/shield-filled-cross.svg?#d6c020"; + return "image://colorimage/:/icons/icons/ui/shield-filled-cross.svg?" + Nheko.theme.orange; } } } @@ -394,13 +394,13 @@ ApplicationWindow { source: { switch (verificationStatus) { case VerificationStatus.VERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?green"; + return "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?" + Nheko.theme.green; case VerificationStatus.UNVERIFIED: - return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?#d6c020"; + return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?" + Nheko.theme.orange; case VerificationStatus.SELF: - return "image://colorimage/:/icons/icons/ui/checkmark.svg?green"; + return "image://colorimage/:/icons/icons/ui/checkmark.svg?" + Nheko.theme.green; default: - return "image://colorimage/:/icons/icons/ui/shield-filled.svg?red"; + return "image://colorimage/:/icons/icons/ui/shield-filled.svg?" + Nheko.theme.red; } } }