From 621a846f9517fbd171a557a44f5dd2a228bcd9e9 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 3 Nov 2020 17:05:40 -0800 Subject: [PATCH] PortraitRow supports color overlay for portrait --- PortraitRow.qml | 3 +++ theme/CwtchDark.qml | 5 ++++- theme/CwtchLight.qml | 3 +++ theme/Theme.qml | 2 ++ theme/ThemeType.qml | 3 +++ 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/PortraitRow.qml b/PortraitRow.qml index 65bc5e2..bf012ed 100644 --- a/PortraitRow.qml +++ b/PortraitRow.qml @@ -43,6 +43,9 @@ Item { property alias content: extraMeta.children + property alias portraitOverlayColor: portrait.overlayColor + property alias portraitPerformTransform: portrait.performTransform + signal clicked(string handle) Rectangle { // CONTACT ENTRY BACKGROUND COLOR diff --git a/theme/CwtchDark.qml b/theme/CwtchDark.qml index ba6b87d..870ef8d 100644 --- a/theme/CwtchDark.qml +++ b/theme/CwtchDark.qml @@ -43,7 +43,7 @@ ThemeType { portraitOnlineTextColor: whitePurple portraitConnectingBorderColor: purple //mauvePurple portraitConnectingBackgroundColor: purple //darkGreyPurple - portraitConnectingTextColor: whitePurple + portraitConnectingTextColor: purple portraitOfflineBorderColor: purple portraitOfflineBackgroundColor: purple portraitOfflineTextColor: purple @@ -58,6 +58,9 @@ ThemeType { portraitContactBadgeTextColor: whitePurple portraitProfileBadgeColor: mauvePurple portraitProfileBadgeTextColor: darkGreyPurple + + portraitOverlayOfflineColor: mauvePurple + dropShadowColor: mauvePurple dropShadowPaneColor: darkGreyPurple diff --git a/theme/CwtchLight.qml b/theme/CwtchLight.qml index b340bf6..2d2fddd 100644 --- a/theme/CwtchLight.qml +++ b/theme/CwtchLight.qml @@ -59,6 +59,9 @@ ThemeType { portraitContactBadgeTextColor: whitePurple portraitProfileBadgeColor: brightPurple portraitProfileBadgeTextColor: whitePurple + + portraitOverlayOfflineColor: whitePurple + dropShadowColor: purple dropShadowPaneColor: purple diff --git a/theme/Theme.qml b/theme/Theme.qml index e4bff87..f1a27b5 100644 --- a/theme/Theme.qml +++ b/theme/Theme.qml @@ -55,6 +55,8 @@ Item { readonly property color portraitProfileBadgeColor: theme.portraitProfileBadgeColor readonly property color portraitProfileBadgeTextColor: theme.portraitProfileBadgeTextColor + readonly property color portraitOverlayOfflineColor: theme.portraitOverlayOfflineColor + readonly property color toggleColor: theme.toggleColor readonly property color toggleOffColor: theme.toggleOffColor readonly property color toggleOnColor: theme.toggleOnColor diff --git a/theme/ThemeType.qml b/theme/ThemeType.qml index bdbb318..212b360 100644 --- a/theme/ThemeType.qml +++ b/theme/ThemeType.qml @@ -49,6 +49,9 @@ QtObject { property color portraitContactBadgeTextColor: "red" property color portraitProfileBadgeColor: "red" property color portraitProfileBadgeTextColor: "red" + + property color portraitOverlayOfflineColor: "red" + property color dropShadowColor: "black" property color dropShadowPaneColor: "black" property color toggleColor: "black"