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
|
parent: mouseEventListener // reparent to the MouseFilter for MouseArea to work
|
||||||
id: clearButton
|
id: clearButton
|
||||||
source: "edit-clear-locationbar-rtl"
|
source: "edit-clear-locationbar-rtl"
|
||||||
height: Math.max(textInput.height, theme.smallIconSize)
|
height: Math.max(textInput.height, theme.mediumIconSize)
|
||||||
width: height
|
width: height
|
||||||
opacity: (textInput.text != "" && clearButtonShown) ? 1 : 0
|
opacity: (textInput.text != "" && clearButtonShown) ? 1 : 0
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
|
@ -25,25 +25,6 @@ Item {
|
|||||||
id: main
|
id: main
|
||||||
state: parent.state
|
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 {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: hover
|
id: hover
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user