diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml index c50762222e..b0181c0282 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatButtons.qml @@ -14,7 +14,7 @@ Rectangle { width: buttonRow.width + buttonsContainer.containerMargin * 2 height: 36 radius: Style.current.radius - color: Style.current.background + color: Style.current.modalBackground z: 52 layer.enabled: true diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml index 935366054e..c18a517795 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml @@ -65,7 +65,7 @@ Item { + (retry.visible && !chatTime.visible ? Style.current.smallPadding : 0) width: parent.width - color: root.isHovered || isMessageActive ? (hasMention ? Style.current.mentionMessageHoverColor : Style.current.backgroundHover) : + color: root.isHovered || isMessageActive ? (hasMention ? Style.current.mentionMessageHoverColor : Style.current.backgroundHoverLight) : (hasMention ? Style.current.mentionMessageColor : Style.current.transparent) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml index 3d7614d93e..c994964d70 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml @@ -61,7 +61,7 @@ Button { btnBackground.color = "transparent" } onEntered: { - btnBackground.color = Style.current.topBarChatInfoColor + btnBackground.color = Style.current.backgroundHover } } } \ No newline at end of file diff --git a/ui/app/AppLayouts/Chat/components/GroupChatPopup.qml b/ui/app/AppLayouts/Chat/components/GroupChatPopup.qml index c577ba2a40..4cd7fcb75a 100644 --- a/ui/app/AppLayouts/Chat/components/GroupChatPopup.qml +++ b/ui/app/AppLayouts/Chat/components/GroupChatPopup.qml @@ -90,7 +90,7 @@ ModalPopup { anchors.top: lblNewGroup.bottom //% "%1 / 10 members" text: qsTrId("%1-/-10-members").arg(memberCount) - color: Style.current.darkGrey + color: Style.current.secondaryText font.pixelSize: 15 } } diff --git a/ui/imports/Themes/DarkTheme.qml b/ui/imports/Themes/DarkTheme.qml index 716cc893a8..b7e7a66fb6 100644 --- a/ui/imports/Themes/DarkTheme.qml +++ b/ui/imports/Themes/DarkTheme.qml @@ -7,38 +7,39 @@ Theme { property color black: "#000000" property color almostBlack: "#141414" property color grey: "#EEF2F5" - property color lightGrey: "#ccd0d4" + property color lightGrey: "#7A7A7A" + property color darkGrey: "#373737" + property color evenDarkerGrey: "#4b4b4b" property color lightBlue: "#ECEFFC" property color cyan: "#00FFFF" - property color blue: "#758EF0" + property color blue: "#88B0FF" property color darkAccentBlue: "#2946C4" property color transparent: "#00000000" - property color darkGrey: "#838C91" - property color evenDarkerGrey: "#252528" property color lightBlueText: "#8f9fec" property color darkBlue: "#3c55c9" property color darkBlueBtn: "#5a70dd" - property color red: "#FC5F5F" + property color red: "#FF5C7B" property color lightRed: "#FFEAEE" property color green: "#4EBC60" property color turquoise: "#007b7d" property color tenPercentWhite: Qt.rgba(255, 255, 255, 0.1) property color tenPercentBlue: Qt.rgba(67, 96, 223, 0.1) - property color background: almostBlack - property color border: evenDarkerGrey + property color background: "#212121" + property color border: darkGrey property color borderSecondary: tenPercentWhite property color borderTertiary: blue property color textColor: white property color textColorTertiary: blue property color currentUserTextColor: white - property color secondaryBackground: "#23252F" - property color inputBackground: secondaryBackground + property color secondaryBackground: "#353a4d" + property color inputBackground: darkGrey property color inputBorderFocus: blue - property color inputColor: darkGrey - property color modalBackground: background + property color inputColor: textColor + property color modalBackground: darkGrey property color backgroundHover: evenDarkerGrey - property color secondaryText: darkGrey + property color backgroundHoverLight: darkGrey + property color secondaryText: lightGrey property color secondaryHover: tenPercentWhite property color primary: blue property color danger: red @@ -48,13 +49,12 @@ Theme { property color backgroundTertiary: tenPercentBlue property color pillButtonTextColor: almostBlack property color chatReplyCurrentUser: lightGrey - property color topBarChatInfoColor: evenDarkerGrey property color codeBackground: "#2E386B" property color primarySelectionColor: "#b4c8ff" property color emojiReactionBackground: "#2d2823" property color emojiReactionBackgroundHovered: "#3a3632" property color emojiReactionActiveBackgroundHovered: "#cbd5f1" - property color mentionColor: "#47B6D1" + property color mentionColor: "#7BE5FF" property color mentionBgColor: Qt.rgba(71, 182, 209, 0.1) property color mentionMessageColor: "#E5F8FD" property color mentionMessageHoverColor: mentionBgColor @@ -62,8 +62,8 @@ Theme { property color buttonForegroundColor: blue property color buttonBackgroundColor: secondaryBackground property color buttonSecondaryColor: darkGrey - property color buttonDisabledForegroundColor: buttonSecondaryColor - property color buttonDisabledBackgroundColor: evenDarkerGrey + property color buttonDisabledForegroundColor: lightGrey + property color buttonDisabledBackgroundColor: darkGrey property color buttonWarnBackgroundColor: "#FFEAEE" property color buttonHoveredWarnBackgroundColor: red property color buttonHoveredBackgroundColor: blue diff --git a/ui/imports/Themes/LightTheme.qml b/ui/imports/Themes/LightTheme.qml index 13babd9319..2b7a94230e 100644 --- a/ui/imports/Themes/LightTheme.qml +++ b/ui/imports/Themes/LightTheme.qml @@ -37,6 +37,7 @@ Theme { property color inputColor: black property color modalBackground: white2 property color backgroundHover: grey + property color backgroundHoverLight: lightGrey property color secondaryText: darkGrey property color secondaryHover: tenPercentBlack property color primary: blue @@ -47,7 +48,6 @@ Theme { property color backgroundTertiary: tenPercentBlue property color pillButtonTextColor: white property color chatReplyCurrentUser: darkGrey - property color topBarChatInfoColor: grey property color codeBackground: "#2E386B" property color primarySelectionColor: "#b4c8ff" property color emojiReactionBackground: "#e2e6e9" diff --git a/ui/imports/Themes/Theme.qml b/ui/imports/Themes/Theme.qml index 194c147582..a94a08a2bf 100644 --- a/ui/imports/Themes/Theme.qml +++ b/ui/imports/Themes/Theme.qml @@ -31,6 +31,7 @@ QtObject { property color background property color backgroundHover + property color backgroundHoverLight property color border property color textColor property color secondaryText diff --git a/ui/shared/CopyToClipBoardButton.qml b/ui/shared/CopyToClipBoardButton.qml index 551b8b7239..a0945ccab6 100644 --- a/ui/shared/CopyToClipBoardButton.qml +++ b/ui/shared/CopyToClipBoardButton.qml @@ -1,5 +1,6 @@ import QtQuick 2.13 import QtQuick.Controls 2.13 +import QtGraphicalEffects 1.13 import "../imports" import "../shared/status" @@ -20,6 +21,13 @@ Rectangle { source: "./img/copy-to-clipboard-icon.svg" anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter + + ColorOverlay { + anchors.fill: parent + antialiasing: true + source: parent + color: Style.current.primary + } } MouseArea { diff --git a/ui/shared/ModalPopup.qml b/ui/shared/ModalPopup.qml index 72410a300d..971ba4965b 100644 --- a/ui/shared/ModalPopup.qml +++ b/ui/shared/ModalPopup.qml @@ -16,7 +16,7 @@ Popup { property alias footer: footerContent.children Overlay.modal: Rectangle { - color: "#60000000" + color: Qt.rgba(0, 0, 0, 0.4) } closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside parent: Overlay.overlay diff --git a/ui/shared/PopupMenu.qml b/ui/shared/PopupMenu.qml index 16b9954f83..6a60b889c9 100644 --- a/ui/shared/PopupMenu.qml +++ b/ui/shared/PopupMenu.qml @@ -15,7 +15,7 @@ Menu { bottomPadding: paddingSize delegate: MenuItem { - property color textColor: (this.action.icon.color != "#00000000" ? this.action.icon.color : Style.current.textColor) + property color textColor: this.action.icon.color.toString() !== "#00000000" ? this.action.icon.color : Style.current.textColor property int subMenuIndex: { if (!this.subMenu) { return -1 @@ -62,7 +62,7 @@ Menu { ColorOverlay { anchors.fill: parent source: parent - color: popupMenuItem.highlighted ? Style.current.white : popupMenuItem.textColor + color: popupMenuItem.textColor } } @@ -89,9 +89,7 @@ Menu { anchors.fill: menuIcon source: menuIcon smooth: true - color: popupMenuItem.highlighted ? - Style.current.primaryMenuItemTextHover : - (popupMenuItem.action.icon.color != "#00000000" ? popupMenuItem.action.icon.color : Style.current.primaryMenuItemHover) + color: (popupMenuItem.action.icon.color != "#00000000" ? popupMenuItem.action.icon.color : Style.current.primaryMenuItemHover) } } @@ -100,7 +98,7 @@ Menu { anchors.leftMargin: popupMenu.paddingSize text: popupMenuItem.text font: popupMenuItem.font - color: popupMenuItem.highlighted ? Style.current.primaryMenuItemTextHover : popupMenuItem.textColor + color: popupMenuItem.textColor horizontalAlignment: Text.AlignLeft verticalAlignment: Text.AlignVCenter opacity: enabled ? 1.0 : 0.3 @@ -110,7 +108,7 @@ Menu { background: Rectangle { implicitWidth: 220 implicitHeight: 24 - color: popupMenuItem.highlighted ? popupMenuItem.icon.color : "transparent" + color: popupMenuItem.highlighted ? Style.current.backgroundHover : "transparent" } } diff --git a/ui/shared/TextWithLabel.qml b/ui/shared/TextWithLabel.qml index 9871d14dff..8384566f2f 100644 --- a/ui/shared/TextWithLabel.qml +++ b/ui/shared/TextWithLabel.qml @@ -20,7 +20,7 @@ Item { text: infoText.label font.weight: Font.Medium font.pixelSize: 13 - color: Style.current.darkGrey + color: Style.current.secondaryText } StyledTextEdit { diff --git a/ui/shared/status/StatusChatInfo.qml b/ui/shared/status/StatusChatInfo.qml index 7cbe090711..90f13c55d5 100644 --- a/ui/shared/status/StatusChatInfo.qml +++ b/ui/shared/status/StatusChatInfo.qml @@ -107,7 +107,7 @@ Item { StyledText { id: chatInfo - color: Style.current.darkGrey + color: Style.current.secondaryText text: { switch(root.chatType){ //% "Public chat" diff --git a/ui/shared/status/StatusChatInfoButton.qml b/ui/shared/status/StatusChatInfoButton.qml index e39f505982..3340275637 100644 --- a/ui/shared/status/StatusChatInfoButton.qml +++ b/ui/shared/status/StatusChatInfoButton.qml @@ -37,7 +37,7 @@ Button { } background: Rectangle { - color: control.hovered ? Style.current.topBarChatInfoColor : "transparent" + color: control.hovered ? Style.current.backgroundHover : "transparent" radius: Style.current.radius } diff --git a/ui/shared/status/StatusCheckBox.qml b/ui/shared/status/StatusCheckBox.qml index 0a0448c480..446b251f91 100644 --- a/ui/shared/status/StatusCheckBox.qml +++ b/ui/shared/status/StatusCheckBox.qml @@ -13,7 +13,7 @@ CheckBox { x: control.leftPadding y: parent.height / 2 - height / 2 radius: 3 - color: (control.down || control.checked) ? Style.current.blue : Style.current.grey + color: (control.down || control.checked) ? Style.current.primary : Style.current.inputBackground Image { source: "../img/checkmark.svg" diff --git a/ui/shared/status/StatusSettingsLineButton.qml b/ui/shared/status/StatusSettingsLineButton.qml index 77b9859d6d..f9f2e285ca 100644 --- a/ui/shared/status/StatusSettingsLineButton.qml +++ b/ui/shared/status/StatusSettingsLineButton.qml @@ -91,7 +91,7 @@ Rectangle { ColorOverlay { anchors.fill: caret source: caret - color: Style.current.darkGrey + color: Style.current.secondaryText } } diff --git a/ui/shared/status/StatusSwitch.qml b/ui/shared/status/StatusSwitch.qml index 4fb89fed30..047eadc04d 100644 --- a/ui/shared/status/StatusSwitch.qml +++ b/ui/shared/status/StatusSwitch.qml @@ -14,7 +14,7 @@ Switch { x: control.leftPadding y: parent.height / 2 - height / 2 radius: 14 - color: control.checked ? Style.current.blue : Style.current.grey + color: control.checked ? Style.current.primary : Style.current.inputBackground Rectangle { id: circle