1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 23:57:34 +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 {
source: "../../images/inputfield-border.svg"
Image {
// source: "../../images/inputfield-border.svg"
anchors.fill: parent
anchors.margins: root.radius * 0.1
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
width: buttonText.width + (spacing * 2)
radius: defaultFontHeight * 0.25
border.width: defaultFontHeight * 0.05
border.color: "#a7a7a7"
// border.width: defaultFontHeight * 0.05
// border.color: "#a7a7a7"
gradient: Gradient {
color: "white"
/* gradient: Gradient {
GradientStop { position: 0.0; color: mouseArea.pressed ? "#040404" : "#fbfbfb" }
GradientStop { position: 1.0; color: mouseArea.pressed ? "#8e8f8e" : "#787878" }
}
}*/
property int spacing: defaultFontHeight * 0.5
property alias text: buttonText.text
@@ -23,7 +24,7 @@ Rectangle {
id: buttonText
anchors.centerIn: root
font.pointSize: defaultFontSize
color: mouseArea.pressed ? "white" : "black"
color: mouseArea.pressed ? "grey" : "black"
}
MouseArea {