1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

searchbar: Changed underline color in tab message result

Changed the color with the color of the current conversation

GitLab: #1083
Change-Id: I8cb8ef343a99a0929ab65c8593515d306e468333
This commit is contained in:
mjoseph 2023-05-23 09:51:13 -04:00 committed by Sébastien Blin
parent 91047b34c2
commit f1aa4173df
2 changed files with 9 additions and 2 deletions

View file

@ -33,6 +33,8 @@ TabButton {
property var hoverColor: JamiTheme.backgroundColor
property var textColor: JamiTheme.textColor
property var textColorHovered: JamiTheme.textColorHovered
property var underlineColor: textColor
property var underlineColorHovered: textColorHovered
property var borderWidth: 2
property var bottomMargin: 1
property var underlineContentOnly: false
@ -85,10 +87,10 @@ TabButton {
height: borderWidth
color: {
if (!root.down && root.hovered)
return root.textColorHovered;
return underlineColorHovered;
if (!root.down)
return "transparent";
return root.textColor;
return root.underlineColor;
}
}

View file

@ -59,6 +59,8 @@ Rectangle {
bottomMargin: JamiTheme.settingsMarginSize
fontSize: JamiTheme.menuFontSize
underlineContentOnly: true
underlineColor: CurrentConversation.color
underlineColorHovered: CurrentConversation.color
down: researchTabBar.currentIndex === 0
labelText: JamiStrings.messages
@ -73,6 +75,9 @@ Rectangle {
bottomMargin: JamiTheme.settingsMarginSize
fontSize: JamiTheme.menuFontSize
underlineContentOnly: true
underlineColor: CurrentConversation.color
underlineColorHovered: CurrentConversation.color
down: researchTabBar.currentIndex === 1
labelText: JamiStrings.files