Skip to content
Snippets Groups Projects
Commit c53b03d4 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

calloverlay: use svg icon for menu expansion buttons

Change-Id: I8d90b116740c9d671b6b65073ba9cff9c92e7646
Gitlab: #411
parent a46de27b
No related branches found
No related tags found
No related merge requests found
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>
\ No newline at end of file
......@@ -142,5 +142,6 @@
<file>images/icons/spk_black_24dp.svg</file>
<file>images/icons/spk_none_black_24dp.svg</file>
<file>images/icons/more_vert-24dp.svg</file>
<file>images/icons/chevron_left_black_24dp.svg</file>
</qresource>
</RCC>
......@@ -54,10 +54,7 @@ Image {
layer {
enabled: true
effect: ColorOverlay {
id: overlay
color: root.color
}
effect: ColorOverlay { color: root.color }
}
function setSourceSize() {
......
......@@ -156,10 +156,18 @@ ItemDelegate {
indicator: null
visible: menuAction !== undefined && !BadgeCount
anchors.horizontalCenter: parent.horizontalCenter
y: isVertical ? 0 : -4
x: isVertical ? -4 : 0
anchors.horizontalCenter: isVertical ?
undefined :
parent.horizontalCenter
anchors.verticalCenter: isVertical ?
parent.verticalCenter :
undefined
width: 18
height: width
y: -4
Connections {
target: menuAction !== undefined ?
......@@ -171,10 +179,11 @@ ItemDelegate {
}
}
contentItem: Text {
text: "^"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
contentItem: ResponsiveImage {
source: isVertical ?
"qrc:/images/icons/chevron_left_black_24dp.svg" :
"qrc:/images/icons/expand_less-24px.svg"
smooth: true
color: "white"
}
......@@ -231,7 +240,7 @@ ItemDelegate {
-(implicitHeight - wrapper.height) / 2 :
-implicitHeight - 12
x: isVertical ?
-implicitWidth - 24 :
-implicitWidth - 18 :
-(implicitWidth - wrapper.width) / 2 - 18
implicitWidth: contentItem.implicitWidth
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment