diff --git a/images/icons/chevron_left_black_24dp.svg b/images/icons/chevron_left_black_24dp.svg new file mode 100644 index 00000000..fad9a055 --- /dev/null +++ b/images/icons/chevron_left_black_24dp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources.qrc b/resources.qrc index 4b8aac1b..9b40183a 100644 --- a/resources.qrc +++ b/resources.qrc @@ -142,5 +142,6 @@ images/icons/spk_black_24dp.svg images/icons/spk_none_black_24dp.svg images/icons/more_vert-24dp.svg + images/icons/chevron_left_black_24dp.svg diff --git a/src/commoncomponents/ResponsiveImage.qml b/src/commoncomponents/ResponsiveImage.qml index a703d23a..63950582 100644 --- a/src/commoncomponents/ResponsiveImage.qml +++ b/src/commoncomponents/ResponsiveImage.qml @@ -54,10 +54,7 @@ Image { layer { enabled: true - effect: ColorOverlay { - id: overlay - color: root.color - } + effect: ColorOverlay { color: root.color } } function setSourceSize() { diff --git a/src/mainview/components/CallButtonDelegate.qml b/src/mainview/components/CallButtonDelegate.qml index fe2383be..892f635f 100644 --- a/src/mainview/components/CallButtonDelegate.qml +++ b/src/mainview/components/CallButtonDelegate.qml @@ -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