diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2021-12-26 19:58:08 +0100 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2022-10-01 10:59:17 +0200 |
commit | f5d5bea8408daf39aaa09b18c6ed4bd2f7c52a3f (patch) | |
tree | ff96af92204120fa866edfa6bd050a645cb2cf5e /resources | |
parent | Load components on demand (diff) | |
download | nheko-f5d5bea8408daf39aaa09b18c6ed4bd2f7c52a3f.tar.xz |
Add green theme color, make "error" configurable
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/Avatar.qml | 4 | ||||
-rw-r--r-- | resources/qml/EncryptionIndicator.qml | 2 | ||||
-rw-r--r-- | resources/qml/dialogs/UserProfile.qml | 16 |
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; } } } |