mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
fix inputbubble
This commit is contained in:
@@ -148,6 +148,7 @@ Rectangle {
|
|||||||
anchors.topMargin: -defaultFontHeight / 2
|
anchors.topMargin: -defaultFontHeight / 2
|
||||||
z: 2
|
z: 2
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
arrowPosition: 0.95
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
mainView.title = inputBubble.inputText
|
mainView.title = inputBubble.inputText
|
||||||
|
@@ -31,30 +31,35 @@ FocusScope {
|
|||||||
id: backgroundItem
|
id: backgroundItem
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
Rectangle {
|
|
||||||
id: arrowRect
|
|
||||||
height: defaultFontHeight / 1.8
|
|
||||||
width: height
|
|
||||||
rotation: 45
|
|
||||||
color: "black"
|
|
||||||
anchors.top: backgroundItem.top
|
|
||||||
x: defaultFontHeight - arrowRect.width/2 + (root.width - defaultFontHeight*2) * arrowPosition
|
|
||||||
}
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: background
|
id: background
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "white"
|
color: "white"
|
||||||
border.color: "black"
|
border.color: "black"
|
||||||
border.width: defaultFontHeight / 8
|
border.width: defaultFontHeight / 10
|
||||||
radius: defaultFontHeight / 2
|
radius: defaultFontHeight / 2
|
||||||
anchors.topMargin: defaultFontHeight / 4
|
anchors.topMargin: defaultFontHeight / 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
clip: true
|
||||||
|
anchors.bottom: backgroundItem.top
|
||||||
|
anchors.bottomMargin: -background.border.width*3
|
||||||
|
height: defaultFontHeight
|
||||||
|
width: height
|
||||||
|
x: defaultFontHeight - arrowRect.width/2 + (root.width - defaultFontHeight*2) * arrowPosition
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: defaultFontHeight / 2
|
id: arrowRect
|
||||||
|
height: defaultFontHeight / 1.8
|
||||||
width: height
|
width: height
|
||||||
rotation: 45
|
rotation: 45
|
||||||
color: "white"
|
color: "white"
|
||||||
anchors.centerIn: arrowRect
|
anchors.centerIn: parent
|
||||||
|
anchors.verticalCenterOffset: parent.height/2
|
||||||
|
border.color: "black"
|
||||||
|
border.width: defaultFontHeight / 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user