Fix text colors on TabButton and ToolButton
When the widgets use the button background frame, use buttonTextColor. When they do not use any background frame, use textColor. Avoids unreadable text with Oxygen REVIEW: 105163
This commit is contained in:
parent
0aaf3f4760
commit
fc0f700c9d
@ -213,7 +213,7 @@ Item {
|
||||
font.underline: theme.defaultFont.underline
|
||||
font.weight: theme.defaultFont.weight
|
||||
font.wordSpacing: theme.defaultFont.wordSpacing
|
||||
color: theme.buttonTextColor
|
||||
color: surface.opacity == 1 ? theme.buttonTextColor : theme.textColor
|
||||
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
@ -140,6 +140,8 @@ Item {
|
||||
elide: Text.ElideRight
|
||||
horizontalAlignment: !internal.portrait && iconSource != null ? Text.AlignLeft : Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
color: root.checked ? theme.buttonTextColor : theme.textColor
|
||||
}
|
||||
|
||||
Private.IconLoader {
|
||||
|
@ -215,7 +215,7 @@ Item {
|
||||
font.underline: theme.defaultFont.underline
|
||||
font.weight: theme.defaultFont.weight
|
||||
font.wordSpacing: theme.defaultFont.wordSpacing
|
||||
color: theme.buttonTextColor
|
||||
color: surface.opacity == 1 ? theme.buttonTextColor : theme.textColor
|
||||
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user