fix(StatusButton): user correct text color for primary/dark

This commit is contained in:
Lukáš Tinkl 2023-09-07 13:55:09 +02:00 committed by Lukáš Tinkl
parent e106be9b12
commit 440e61d7a8
4 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ StatusBaseButton {
disabledColor: Theme.palette.baseColor2
textColor: type === StatusBaseButton.Type.Primary ? Theme.palette.white :
textColor: type === StatusBaseButton.Type.Primary ? Theme.palette.indirectColor4 :
type === StatusBaseButton.Type.Normal ? Theme.palette.primaryColor1 :
type === StatusBaseButton.Type.Warning ? Theme.palette.warningColor1
: Theme.palette.dangerColor1

View File

@ -50,6 +50,7 @@ ThemePalette {
indirectColor1: getColor('black')
indirectColor2: getColor('black', 0.7)
indirectColor3: getColor('black', 0.4)
indirectColor4: getColor('graphite3')
miscColor1: getColor('blue5')
miscColor2: getColor('purple')

View File

@ -48,6 +48,7 @@ ThemePalette {
indirectColor1: getColor('white')
indirectColor2: getColor('white', 0.7)
indirectColor3: getColor('white', 0.4)
indirectColor4: getColor('white')
miscColor1: getColor('blue2')
miscColor2: getColor('purple')

View File

@ -159,6 +159,7 @@ QtObject {
property color indirectColor1
property color indirectColor2
property color indirectColor3
property color indirectColor4
property color miscColor1
property color miscColor2