Fix color in TextField and TextArea
viewTextColor is wrong here, we have to use buttonTextColor. This follows Plasma 1, and makes texts in fields and areas in white-on-black themes work. BUG:333837
This commit is contained in:
parent
00923cf4a2
commit
670135db50
@ -365,7 +365,7 @@ Item {
|
||||
font.underline: theme.defaultFont.underline
|
||||
font.weight: theme.defaultFont.weight
|
||||
font.wordSpacing: theme.defaultFont.wordSpacing
|
||||
color: theme.viewTextColor
|
||||
color: theme.buttonTextColor
|
||||
selectByMouse: verticalScroll.interactive
|
||||
renderType: Text.NativeRendering
|
||||
|
||||
|
@ -319,7 +319,7 @@ FocusScope {
|
||||
text: placeholderText
|
||||
visible: textInput.text == "" && !textField.activeFocus
|
||||
// XXX: using textColor and low opacity for theming placeholderText
|
||||
color: theme.viewTextColor
|
||||
color: theme.buttonTextColor
|
||||
opacity: 0.5
|
||||
elide: Text.ElideRight
|
||||
clip: true
|
||||
@ -349,7 +349,7 @@ FocusScope {
|
||||
renderType: Text.NativeRendering
|
||||
passwordCharacter: "•"
|
||||
selectByMouse: true
|
||||
color: theme.viewTextColor
|
||||
color: theme.buttonTextColor
|
||||
enabled: textField.enabled
|
||||
clip: true
|
||||
focus: true
|
||||
|
Loading…
Reference in New Issue
Block a user