QtMvvm  1.1.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
TintIcon.qml
1 import QtQuick 2.10
2 import QtQuick.Controls 2.3
3 import QtGraphicalEffects 1.0
4 import de.skycoder42.QtMvvm.Quick 1.1
5 
15 Item {
16  id: _tintIcon
17 
29  property alias icon: _imgBtn.icon
30 
31  implicitWidth: _imgBtn.icon.width
32  implicitHeight: _imgBtn.icon.height
33 
34  Displace {
35  source: _imgBtn
36  z: 10
37  anchors.fill: parent
38  }
39 
40  ActionButton {
41  id: _imgBtn
42  visible: false
43  z: -10
44  padding: 0
45  anchors.fill: parent
46 
47  ColorHelper {
48  id: helper
49  }
50  icon.color: helper.text
51 
52  background: Item {}
53  }
54 }
color text
The color to use for text.
Definition: ColorHelper.qml:52
A helper class to get style-dependant colors.
Definition: ColorHelper.qml:17
The QML import for the QtMvvmQuick QML module.
Definition: ActionButton.qml:4
An extension of the ToolButton for better appearance.