| 1 |
/* |
| 2 |
* Audacity: A Digital Audio Editor |
| 3 |
*/ |
| 4 |
import QtQuick 2.15 |
| 5 |
import QtQuick.Layouts 1.12 |
| 6 |
|
| 7 |
import Muse.Ui 1.0 |
| 8 |
import Muse.UiComponents 1.0 |
| 9 |
|
| 10 |
Item { |
| 11 |
id: root |
| 12 |
|
| 13 |
height: parent ? parent.height : implicitHeight |
| 14 |
width: parent ? parent.width : implicitWidth |
| 15 |
|
| 16 |
property var item |
| 17 |
|
| 18 |
property var navigationPanel: null |
| 19 |
property int navigationRow: 0 |
| 20 |
|
| 21 |
RowLayout { |
| 22 |
anchors.fill: parent |
| 23 |
anchors.leftMargin: 6 |
| 24 |
anchors.rightMargin: 6 |
| 25 |
|
| 26 |
spacing: 16 |
| 27 |
|
| 28 |
StyledIconLabel { |
| 29 |
Layout.alignment: Qt.AlignLeft |
| 30 |
|
| 31 |
width: 36 |
| 32 |
height: width |
| 33 |
|
| 34 |
iconCode: Boolean(root.item) && Boolean(root.item.checked) ? IconCode.EYE_OPEN : IconCode.EYE_CLOSED |
| 35 |
} |
| 36 |
|
| 37 |
StyledIconLabel { |
| 38 |
Layout.alignment: Qt.AlignLeft |
| 39 |
|
| 40 |
width: 36 |
| 41 |
height: width |
| 42 |
|
| 43 |
iconCode: Boolean(root.item) ? root.item.icon : IconCode.NONE |
| 44 |
color: Boolean(root.item) ? root.item.iconColor : ui.theme.fontPrimaryColor |
| 45 |
} |
| 46 |
|
| 47 |
StyledTextLabel { |
| 48 |
id: titleLabel |
| 49 |
|
| 50 |
Layout.fillWidth: true |
| 51 |
|
| 52 |
horizontalAlignment: Qt.AlignLeft |
| 53 |
text: Boolean(root.item) ? root.item.title : "" |
| 54 |
} |
| 55 |
} |
| 56 |
} |