Updated profile settings icon color. Fixes #1731

This commit is contained in:
staked-smart-ace 2021-01-22 12:28:04 +04:00 committed by Iuri Matias
parent 0a77bedb15
commit 492fcc2dcd
1 changed files with 17 additions and 5 deletions

View File

@ -1,4 +1,5 @@
import QtQuick 2.13 import QtQuick 2.13
import QtGraphicalEffects 1.13
import "../../../../../imports" import "../../../../../imports"
import "../../../../../shared" import "../../../../../shared"
import "../constants.js" as ProfileConstants import "../constants.js" as ProfileConstants
@ -19,17 +20,28 @@ Rectangle {
width: parent.width width: parent.width
radius: Style.current.radius radius: Style.current.radius
Image { Item {
id: iconImage id: iconImage
source: menuButton.source
height: 24 height: 24
width: 24 width: 24
sourceSize.width: width
sourceSize.height: height
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: Style.current.padding anchors.leftMargin: Style.current.padding
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit
Image {
id: iconSrc
source: menuButton.source
sourceSize: Qt.size(parent.width, parent.height)
fillMode: Image.PreserveAspectFit
smooth: true
visible: false
}
ColorOverlay {
anchors.fill: iconSrc
source: iconSrc
color: Style.current.blue
}
} }
StyledText { StyledText {