Skip to content
Snippets Groups Projects
Commit f1aa4173 authored by Mathéo Joseph's avatar Mathéo Joseph Committed by Sébastien Blin
Browse files

searchbar: Changed underline color in tab message result

Changed the color with the color of the current conversation

GitLab: #1083
Change-Id: I8cb8ef343a99a0929ab65c8593515d306e468333
parent 91047b34
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,8 @@ TabButton { ...@@ -33,6 +33,8 @@ TabButton {
property var hoverColor: JamiTheme.backgroundColor property var hoverColor: JamiTheme.backgroundColor
property var textColor: JamiTheme.textColor property var textColor: JamiTheme.textColor
property var textColorHovered: JamiTheme.textColorHovered property var textColorHovered: JamiTheme.textColorHovered
property var underlineColor: textColor
property var underlineColorHovered: textColorHovered
property var borderWidth: 2 property var borderWidth: 2
property var bottomMargin: 1 property var bottomMargin: 1
property var underlineContentOnly: false property var underlineContentOnly: false
...@@ -85,10 +87,10 @@ TabButton { ...@@ -85,10 +87,10 @@ TabButton {
height: borderWidth height: borderWidth
color: { color: {
if (!root.down && root.hovered) if (!root.down && root.hovered)
return root.textColorHovered; return underlineColorHovered;
if (!root.down) if (!root.down)
return "transparent"; return "transparent";
return root.textColor; return root.underlineColor;
} }
} }
......
...@@ -59,6 +59,8 @@ Rectangle { ...@@ -59,6 +59,8 @@ Rectangle {
bottomMargin: JamiTheme.settingsMarginSize bottomMargin: JamiTheme.settingsMarginSize
fontSize: JamiTheme.menuFontSize fontSize: JamiTheme.menuFontSize
underlineContentOnly: true underlineContentOnly: true
underlineColor: CurrentConversation.color
underlineColorHovered: CurrentConversation.color
down: researchTabBar.currentIndex === 0 down: researchTabBar.currentIndex === 0
labelText: JamiStrings.messages labelText: JamiStrings.messages
...@@ -73,6 +75,9 @@ Rectangle { ...@@ -73,6 +75,9 @@ Rectangle {
bottomMargin: JamiTheme.settingsMarginSize bottomMargin: JamiTheme.settingsMarginSize
fontSize: JamiTheme.menuFontSize fontSize: JamiTheme.menuFontSize
underlineContentOnly: true underlineContentOnly: true
underlineColor: CurrentConversation.color
underlineColorHovered: CurrentConversation.color
down: researchTabBar.currentIndex === 1 down: researchTabBar.currentIndex === 1
labelText: JamiStrings.files labelText: JamiStrings.files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment