Warning, /maui/vvave/src/widgets/InfoView/InfoView.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.10
0002 import QtQuick.Controls 2.10
0003 import QtQuick.Layouts 1.3
0004 
0005 import org.mauikit.controls 1.3 as Maui
0006 
0007 import org.maui.vvave 1.0 as Vvave
0008 
0009 Maui.Page
0010 {
0011     id: control
0012 
0013     Vvave.TrackInfo
0014     {
0015         id: _trackInfo
0016         track : root.currentTrack
0017     }
0018 
0019     Maui.ScrollColumn
0020     {
0021         anchors.fill: parent
0022         spacing: Maui.Style.space.big
0023         clip: true
0024 
0025         Maui.ListItemTemplate
0026         {
0027             Layout.fillWidth: true
0028             maskRadius: Maui.Style.radiusV
0029 
0030             label1.text: currentTrack.artist
0031             label1.font.pointSize: Maui.Style.fontSizes.huge
0032             label1.font.bold: true
0033             label1.font.weight: Font.Black
0034             label2.text: i18n("Artist Info")
0035 
0036             imageSource: "image://artwork/artist:" + currentTrack.artist
0037             iconSizeHint: Maui.Style.iconSizes.huge
0038         }
0039 
0040         TextArea
0041         {
0042             Layout.fillWidth: true
0043             Layout.fillHeight: true
0044             readOnly: true
0045             text: _trackInfo.artistWiki
0046             wrapMode: Text.WrapAtWordBoundaryOrAnywhere
0047             textFormat: Text.RichText
0048 
0049             background: null
0050         }
0051 
0052 
0053         Maui.ListItemTemplate
0054         {
0055             Layout.fillWidth: true
0056             maskRadius: Maui.Style.radiusV
0057 
0058             label1.text: currentTrack.album
0059             label1.font.pointSize: Maui.Style.fontSizes.huge
0060             label1.font.bold: true
0061             label1.font.weight: Font.Black
0062             label2.text: i18n("Album Info")
0063             imageSource: "image://artwork/album:" + currentTrack.artist+":"+currentTrack.album
0064             iconSizeHint: Maui.Style.iconSizes.huge
0065         }
0066 
0067         TextArea
0068         {
0069             Layout.fillWidth: true
0070             Layout.fillHeight: true
0071             readOnly: true
0072             text: _trackInfo.albumWiki
0073             wrapMode: Text.WrapAtWordBoundaryOrAnywhere
0074             textFormat: Text.RichText
0075 
0076             background: null
0077         }
0078     }
0079 }