bigger clear button
This commit is contained in:
parent
a1eda09446
commit
ed36b6aab4
@ -175,7 +175,7 @@ Item {
|
||||
parent: mouseEventListener // reparent to the MouseFilter for MouseArea to work
|
||||
id: clearButton
|
||||
source: "edit-clear-locationbar-rtl"
|
||||
height: Math.max(textInput.height, theme.smallIconSize)
|
||||
height: Math.max(textInput.height, theme.mediumIconSize)
|
||||
width: height
|
||||
opacity: (textInput.text != "" && clearButtonShown) ? 1 : 0
|
||||
Behavior on opacity {
|
||||
|
@ -25,25 +25,6 @@ Item {
|
||||
id: main
|
||||
state: parent.state
|
||||
|
||||
PlasmaCore.Svg {
|
||||
id: lineEditSvg
|
||||
imagePath: "widgets/lineedit"
|
||||
onRepaintNeeded: {
|
||||
if (lineEditSvg.hasElement("hint-focus-over-base")) {
|
||||
main.z = 800
|
||||
} else {
|
||||
main.z = 0
|
||||
}
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (lineEditSvg.hasElement("hint-focus-over-base")) {
|
||||
main.z = 800
|
||||
} else {
|
||||
main.z = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaCore.FrameSvgItem {
|
||||
id: hover
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user