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

* Behave, Qt4.

This commit is contained in:
Christian Muehlhaeuser
2013-05-19 02:38:25 +02:00
committed by Michael Zanetti
parent c53800f0d3
commit 050503e8b5
2 changed files with 8 additions and 9 deletions

View File

@@ -85,12 +85,10 @@ Rectangle {
} }
BorderImage { Image {
source: "../../images/inputfield-border.svg" // source: "../../images/inputfield-border.svg"
anchors.fill: parent anchors.fill: parent
anchors.margins: root.radius * 0.1 anchors.margins: root.radius * 0.1
clip: true clip: true
border.left: defaultFontHeight/4; border.top: defaultFontHeight/4
border.right: defaultFontHeight/4; border.bottom: defaultFontHeight/4
} }
} }

View File

@@ -6,13 +6,14 @@ Rectangle {
height: buttonText.height * 1.4 height: buttonText.height * 1.4
width: buttonText.width + (spacing * 2) width: buttonText.width + (spacing * 2)
radius: defaultFontHeight * 0.25 radius: defaultFontHeight * 0.25
border.width: defaultFontHeight * 0.05 // border.width: defaultFontHeight * 0.05
border.color: "#a7a7a7" // border.color: "#a7a7a7"
gradient: Gradient { color: "white"
/* gradient: Gradient {
GradientStop { position: 0.0; color: mouseArea.pressed ? "#040404" : "#fbfbfb" } GradientStop { position: 0.0; color: mouseArea.pressed ? "#040404" : "#fbfbfb" }
GradientStop { position: 1.0; color: mouseArea.pressed ? "#8e8f8e" : "#787878" } GradientStop { position: 1.0; color: mouseArea.pressed ? "#8e8f8e" : "#787878" }
} }*/
property int spacing: defaultFontHeight * 0.5 property int spacing: defaultFontHeight * 0.5
property alias text: buttonText.text property alias text: buttonText.text
@@ -23,7 +24,7 @@ Rectangle {
id: buttonText id: buttonText
anchors.centerIn: root anchors.centerIn: root
font.pointSize: defaultFontSize font.pointSize: defaultFontSize
color: mouseArea.pressed ? "white" : "black" color: mouseArea.pressed ? "grey" : "black"
} }
MouseArea { MouseArea {