mirror of https://github.com/status-im/StatusQ.git
fix(StatusSwitchTabBar): Update and unify colors of tabBar
This commit is contained in:
parent
4b1516c990
commit
baf5948c90
|
@ -8,7 +8,7 @@ TabBar {
|
|||
|
||||
background: Rectangle {
|
||||
implicitHeight: 36
|
||||
color: Theme.palette.directColor7
|
||||
color: Theme.palette.statusSwitchTab.barBackgroundColor
|
||||
radius: 8
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,9 @@ TabButton {
|
|||
StatusBaseText {
|
||||
id: label
|
||||
text: statusSwitchTabButton.text
|
||||
color: Theme.palette.primaryColor1
|
||||
color: statusSwitchTabButton.checked ?
|
||||
Theme.palette.statusSwitchTab.selectedTextColor :
|
||||
Theme.palette.statusSwitchTab.textColor
|
||||
font.weight: Font.Medium
|
||||
font.pixelSize: 15
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
|
@ -36,7 +38,7 @@ TabButton {
|
|||
implicitHeight: 36
|
||||
implicitWidth: 148
|
||||
color: statusSwitchTabButton.checked ?
|
||||
Theme.palette.statusSwitchTab.backgroundColor :
|
||||
Theme.palette.statusSwitchTab.buttonBackgroundColor :
|
||||
"transparent"
|
||||
radius: 8
|
||||
layer.enabled: true
|
||||
|
|
|
@ -230,7 +230,10 @@ ThemePalette {
|
|||
}
|
||||
|
||||
property QtObject statusSwitchTab: QtObject {
|
||||
property color backgroundColor: baseColor3
|
||||
property color buttonBackgroundColor: primaryColor1
|
||||
property color barBackgroundColor: primaryColor3
|
||||
property color selectedTextColor: white
|
||||
property color textColor: primaryColor1
|
||||
}
|
||||
|
||||
property QtObject statusSelect: QtObject {
|
||||
|
|
|
@ -228,7 +228,10 @@ ThemePalette {
|
|||
}
|
||||
|
||||
property QtObject statusSwitchTab: QtObject {
|
||||
property color backgroundColor: white
|
||||
property color buttonBackgroundColor: primaryColor1
|
||||
property color barBackgroundColor: primaryColor3
|
||||
property color selectedTextColor: white
|
||||
property color textColor: primaryColor1
|
||||
}
|
||||
|
||||
property QtObject statusSelect: QtObject {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick 2.13
|
||||
|
||||
QtObject {
|
||||
|
||||
|
||||
id: theme
|
||||
|
||||
property string name
|
||||
|
@ -156,7 +156,10 @@ QtObject {
|
|||
}
|
||||
|
||||
property QtObject statusSwitchTab: QtObject {
|
||||
property color backgroundColor
|
||||
property color buttonBackgroundColor
|
||||
property color barBackgroundColor
|
||||
property color selectedTextColor
|
||||
property color textColor
|
||||
}
|
||||
|
||||
property QtObject statusSelect: QtObject {
|
||||
|
|
Loading…
Reference in New Issue