1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-02 18:33:16 +02:00

workaround weird graphics problem in OSX

SVG images must not have a size of 0 or it will smash the painting engine
This commit is contained in:
Michael Zanetti
2012-12-29 23:17:08 +01:00
parent ea3417f2be
commit 11ac159112
2 changed files with 4 additions and 149 deletions

View File

@@ -25,7 +25,8 @@ Rectangle {
verticalCenter: parent.verticalCenter
}
height: parent.height * 0.6
width: root.showSearchIcon ? height : 0
width: root.showSearchIcon ? height : 1
opacity: root.showSearchIcon ? 1 : 0
smooth: true
source: "../../images/search-icon.svg"
}
@@ -66,7 +67,8 @@ Rectangle {
verticalCenter: parent.verticalCenter
}
height: parent.height * 0.8
width: (root.showSearchIcon && root.text.length > 0) ? height : 0
width: (root.showSearchIcon && root.text.length > 0) ? height : 1
opacity: (root.showSearchIcon && root.text.length > 0) ? 1 : 0
smooth: true
source: "../../images/search-box-dismiss-x.svg"