Add volume control
This commit is contained in:
parent
5d5e3c6888
commit
4a83f971f3
14 changed files with 144 additions and 32 deletions
|
|
@ -1,40 +0,0 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.4
|
||||
|
||||
/**
|
||||
* @brief Round button containing an image
|
||||
*/
|
||||
Button {
|
||||
id: container
|
||||
property alias imageSource: image.source
|
||||
|
||||
background: Rectangle{
|
||||
|
||||
border.width: 2
|
||||
border.color: "grey"
|
||||
|
||||
color: "white"
|
||||
|
||||
implicitWidth: 65
|
||||
implicitHeight: width
|
||||
radius: width/2
|
||||
|
||||
Image{
|
||||
id: image
|
||||
anchors.centerIn: parent
|
||||
width: 30
|
||||
height: width
|
||||
source: "qrc:/icon_back"
|
||||
}
|
||||
Rectangle{
|
||||
id: overlay
|
||||
z: 1
|
||||
visible: !container.enabled
|
||||
anchors.centerIn: parent
|
||||
width: 30
|
||||
height: width
|
||||
color: "#99ffffff"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue