From 96b09fd02574abe03a03828c9e0a2e7d54f3549e Mon Sep 17 00:00:00 2001 From: staked-smart-ace Date: Thu, 14 Jan 2021 03:04:20 +0400 Subject: [PATCH] Fixes #1611 --- ui/imports/Themes/DarkTheme.qml | 1 + ui/imports/Themes/LightTheme.qml | 1 + ui/imports/Themes/Theme.qml | 1 + ui/shared/StyledTextField.qml | 2 +- ui/shared/status/StatusChatInput.qml | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/imports/Themes/DarkTheme.qml b/ui/imports/Themes/DarkTheme.qml index 7f12082151..1fa0276569 100644 --- a/ui/imports/Themes/DarkTheme.qml +++ b/ui/imports/Themes/DarkTheme.qml @@ -50,6 +50,7 @@ Theme { property color chatReplyCurrentUser: lightGrey property color topBarChatInfoColor: evenDarkerGrey property color codeBackground: "#2E386B" + property color primarySelectionColor: "#b4c8ff" property color buttonForegroundColor: blue property color buttonBackgroundColor: secondaryBackground diff --git a/ui/imports/Themes/LightTheme.qml b/ui/imports/Themes/LightTheme.qml index 1a01aedade..75056a38e8 100644 --- a/ui/imports/Themes/LightTheme.qml +++ b/ui/imports/Themes/LightTheme.qml @@ -49,6 +49,7 @@ Theme { property color chatReplyCurrentUser: darkGrey property color topBarChatInfoColor: grey property color codeBackground: "#2E386B" + property color primarySelectionColor: "#b4c8ff" property color buttonForegroundColor: blue property color buttonBackgroundColor: secondaryBackground diff --git a/ui/imports/Themes/Theme.qml b/ui/imports/Themes/Theme.qml index 19f75be7da..9c8e26a799 100644 --- a/ui/imports/Themes/Theme.qml +++ b/ui/imports/Themes/Theme.qml @@ -37,6 +37,7 @@ QtObject { property color secondaryBackground property color modalBackground property color codeBackground + property color primarySelectioncolor property color buttonForegroundColor property color buttonBackgroundColor diff --git a/ui/shared/StyledTextField.qml b/ui/shared/StyledTextField.qml index 7c88e5774b..00597426fa 100644 --- a/ui/shared/StyledTextField.qml +++ b/ui/shared/StyledTextField.qml @@ -7,5 +7,5 @@ TextField { color: readOnly ? Style.current.secondaryText : Style.current.textColor selectByMouse: !readOnly selectedTextColor: Style.current.textColor - selectionColor: Style.current.secondaryHover + selectionColor: Style.current.primarySelectionColor } diff --git a/ui/shared/status/StatusChatInput.qml b/ui/shared/status/StatusChatInput.qml index a15d7dbaad..b779cd0d52 100644 --- a/ui/shared/status/StatusChatInput.qml +++ b/ui/shared/status/StatusChatInput.qml @@ -654,6 +654,7 @@ Rectangle { background: Rectangle { color: "transparent" } + selectionColor: Style.current.primarySelectionColor } Action { shortcut: StandardKey.Bold