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 @@ ...@@ -142,5 +142,6 @@
<file>images/icons/spk_black_24dp.svg</file> <file>images/icons/spk_black_24dp.svg</file>
<file>images/icons/spk_none_black_24dp.svg</file> <file>images/icons/spk_none_black_24dp.svg</file>
<file>images/icons/more_vert-24dp.svg</file> <file>images/icons/more_vert-24dp.svg</file>
<file>images/icons/chevron_left_black_24dp.svg</file>
</qresource> </qresource>
</RCC> </RCC>
...@@ -54,10 +54,7 @@ Image { ...@@ -54,10 +54,7 @@ Image {
layer { layer {
enabled: true enabled: true
effect: ColorOverlay { effect: ColorOverlay { color: root.color }
id: overlay
color: root.color
}
} }
function setSourceSize() { function setSourceSize() {
......
...@@ -156,10 +156,18 @@ ItemDelegate { ...@@ -156,10 +156,18 @@ ItemDelegate {
indicator: null indicator: null
visible: menuAction !== undefined && !BadgeCount 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 width: 18
height: width height: width
y: -4
Connections { Connections {
target: menuAction !== undefined ? target: menuAction !== undefined ?
...@@ -171,10 +179,11 @@ ItemDelegate { ...@@ -171,10 +179,11 @@ ItemDelegate {
} }
} }
contentItem: Text { contentItem: ResponsiveImage {
text: "^" source: isVertical ?
horizontalAlignment: Text.AlignHCenter "qrc:/images/icons/chevron_left_black_24dp.svg" :
verticalAlignment: Text.AlignVCenter "qrc:/images/icons/expand_less-24px.svg"
smooth: true
color: "white" color: "white"
} }
...@@ -231,7 +240,7 @@ ItemDelegate { ...@@ -231,7 +240,7 @@ ItemDelegate {
-(implicitHeight - wrapper.height) / 2 : -(implicitHeight - wrapper.height) / 2 :
-implicitHeight - 12 -implicitHeight - 12
x: isVertical ? x: isVertical ?
-implicitWidth - 24 : -implicitWidth - 18 :
-(implicitWidth - wrapper.width) / 2 - 18 -(implicitWidth - wrapper.width) / 2 - 18
implicitWidth: contentItem.implicitWidth 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