diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2023-02-27 13:19:35 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2023-02-27 13:19:35 +0700 |
commit | 9de8dea4432ac55a4b8f717e6c5cc91f3f7fdaf8 (patch) | |
tree | 8bef62618f73692cd60058de1fb04962e48fcbd3 /ListInlineItem.ui.qml | |
parent | 6f7c3736c9aad9f1f8fb00df5b17738e9a19389c (diff) |
add material svg icon and color overlay
Diffstat (limited to 'ListInlineItem.ui.qml')
-rw-r--r-- | ListInlineItem.ui.qml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ListInlineItem.ui.qml b/ListInlineItem.ui.qml index 324327d..6f623e7 100644 --- a/ListInlineItem.ui.qml +++ b/ListInlineItem.ui.qml @@ -1,6 +1,8 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 +import QtGraphicalEffects 1.12 + RowLayout { id:listInline @@ -17,15 +19,21 @@ RowLayout { Layout.minimumWidth: 42 Image { - id: image + id: inlineItemIcon anchors.verticalCenter: parent.verticalCenter - source: "qrc:/qtquickplugin/images/template_image.png" + source: "Material/svg/filled/school.svg" anchors.horizontalCenter: parent.horizontalCenter fillMode: Image.PreserveAspectFit Layout.preferredHeight: 12 Layout.preferredWidth: 12 Layout.minimumHeight: 12 Layout.minimumWidth: 12 + + ColorOverlay{ + anchors.fill: inlineItemIcon + source: inlineItemIcon + color: "#fd7e14" + } } } Label { |