mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Display new metadata in the info views
This commit is contained in:
@ -140,7 +140,7 @@ Rectangle {
|
||||
font.pixelSize: mainContainer.compact ? 18 : 21;
|
||||
wrapMode: Text.WordWrap
|
||||
|
||||
text: comic ? comic.getTitleIncludingNumber() ?? "" : ""
|
||||
text: comic ? comic.getInfoTitle() ?? "" : ""
|
||||
}
|
||||
|
||||
RowLayout
|
||||
@ -202,6 +202,33 @@ Rectangle {
|
||||
visible : comicInfo ? comicInfo.number ?? false : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: arc
|
||||
color: infoColor
|
||||
font: mainContainer.infoFont
|
||||
text: comicInfo ? comicInfo.getStoryArcInfoString() : ""
|
||||
rightPadding: 20
|
||||
visible : comicInfo ? comicInfo.getStoryArcInfoString().length : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: alternate
|
||||
color: infoColor
|
||||
font: mainContainer.infoFont
|
||||
text: comicInfo ? comicInfo.getAlternateSeriesString() : ""
|
||||
rightPadding: 20
|
||||
visible : comicInfo ? comicInfo.getAlternateSeriesString().length : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: seriesGroup
|
||||
color: infoColor
|
||||
font: mainContainer.infoFont
|
||||
text: comicInfo ? comicInfo.seriesGroup ?? "" : ""
|
||||
rightPadding: 20
|
||||
visible: comicInfo ? comicInfo.seriesGroup ?? false : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: genre
|
||||
color: infoColor
|
||||
@ -266,6 +293,129 @@ Rectangle {
|
||||
textFormat: Text.RichText
|
||||
}
|
||||
|
||||
Text {
|
||||
Layout.topMargin: 25
|
||||
Layout.bottomMargin: 5
|
||||
|
||||
id: characters_title
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 18
|
||||
font.bold: true
|
||||
|
||||
text: qsTr("Characters")
|
||||
|
||||
visible: comicInfo ? comicInfo.getCharacters().length > 0 : false
|
||||
}
|
||||
|
||||
Flow {
|
||||
Layout.fillWidth: true
|
||||
spacing: 20
|
||||
Repeater {
|
||||
id: characters
|
||||
model: comicInfo ? comicInfo.getCharacters().length : null
|
||||
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.getCharacters()[index] : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
Layout.topMargin: 25
|
||||
Layout.bottomMargin: 5
|
||||
|
||||
id: main_character_or_team_title
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 18
|
||||
font.bold: true
|
||||
|
||||
text: qsTr("Main character or team")
|
||||
|
||||
visible: comicInfo ? comicInfo.mainCharacterOrTeam.length > 0 : false
|
||||
}
|
||||
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.mainCharacterOrTeam : ""
|
||||
|
||||
visible: comicInfo ? comicInfo.mainCharacterOrTeam.length > 0 : false
|
||||
}
|
||||
|
||||
Text {
|
||||
Layout.topMargin: 25
|
||||
Layout.bottomMargin: 5
|
||||
|
||||
id: teams_title
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 18
|
||||
font.bold: true
|
||||
|
||||
text: qsTr("Teams")
|
||||
|
||||
visible: comicInfo ? comicInfo.getTeams().length > 0 : false
|
||||
}
|
||||
|
||||
|
||||
|
||||
Flow {
|
||||
Layout.fillWidth: true
|
||||
spacing: 20
|
||||
Repeater {
|
||||
id: teams
|
||||
model: comicInfo ? comicInfo.getTeams().length : null
|
||||
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.getTeams()[index] : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
Layout.topMargin: 25
|
||||
Layout.bottomMargin: 5
|
||||
|
||||
id: locations_title
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 18
|
||||
font.bold: true
|
||||
|
||||
text: qsTr("Locations")
|
||||
|
||||
visible: comicInfo ? comicInfo.getLocations().length > 0 : false
|
||||
}
|
||||
|
||||
Flow {
|
||||
Layout.fillWidth: true
|
||||
spacing: 20
|
||||
Repeater {
|
||||
id: locations
|
||||
model: comicInfo ? comicInfo.getLocations().length : null
|
||||
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.getLocations()[index] : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
Layout.topMargin: 25
|
||||
Layout.bottomMargin: 5
|
||||
@ -283,7 +433,9 @@ Rectangle {
|
||||
comicInfo.getInkers().length +
|
||||
comicInfo.getColorists().length +
|
||||
comicInfo.getLetterers().length +
|
||||
comicInfo.getCoverArtists().length > 0) : false
|
||||
comicInfo.getCoverArtists().length +
|
||||
comicInfo.getEditors().length +
|
||||
comicInfo.getImprint().length > 0) : false
|
||||
}
|
||||
|
||||
Flow {
|
||||
@ -379,7 +531,7 @@ Rectangle {
|
||||
|
||||
Repeater {
|
||||
id: letterers
|
||||
model: comicInfo ? comicInfo.getLetterers().length : null
|
||||
model: comicInfo ? comicInfo.getLetterers().length : nul
|
||||
Column{
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
@ -401,7 +553,7 @@ Rectangle {
|
||||
|
||||
Repeater {
|
||||
id: cover_artist
|
||||
model: comicInfo ? comicInfo.getCoverArtists().length : ""
|
||||
model: comicInfo ? comicInfo.getCoverArtists().length : null
|
||||
Column{
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
@ -420,6 +572,50 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
id: editors
|
||||
model: comicInfo ? comicInfo.getEditors().length : null
|
||||
Column{
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.getEditors()[index] : ""
|
||||
}
|
||||
|
||||
Text {
|
||||
color: infoTextColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 13
|
||||
font.italic: true
|
||||
text: qsTr("editor")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
id: imprint
|
||||
model: comicInfo ? comicInfo.getImprint().length : null
|
||||
Column{
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.getImprint()[index] : ""
|
||||
}
|
||||
|
||||
Text {
|
||||
color: infoTextColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 13
|
||||
font.italic: true
|
||||
text: qsTr("imprint")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
@ -464,6 +660,18 @@ Rectangle {
|
||||
visible: comicInfo ? comicInfo.format ?? false : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: type
|
||||
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.getTypeString() : ""
|
||||
|
||||
visible: comicInfo ? comicInfo.getTypeString() : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: color
|
||||
|
||||
@ -476,6 +684,18 @@ Rectangle {
|
||||
visible: comicInfo ? comicInfo.color ?? false : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: language
|
||||
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.languageISO : ""
|
||||
|
||||
visible: comicInfo ? comicInfo.languageISO.length > 0 : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: age_rating
|
||||
|
||||
@ -488,38 +708,6 @@ Rectangle {
|
||||
visible: comicInfo ? comicInfo.ageRating ?? false : false
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
Layout.topMargin: 25
|
||||
Layout.bottomMargin: 5
|
||||
|
||||
id: characters_title
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 18
|
||||
font.bold: true
|
||||
|
||||
text: qsTr("Characters")
|
||||
|
||||
visible: comicInfo ? comicInfo.getCharacters().length > 0 : false
|
||||
}
|
||||
|
||||
Flow {
|
||||
Layout.fillWidth: true
|
||||
spacing: 20
|
||||
Repeater {
|
||||
id: characters
|
||||
model: comicInfo ? comicInfo.getCharacters().length : null
|
||||
|
||||
Text {
|
||||
color: infoTitleColor
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 15
|
||||
|
||||
text: comicInfo ? comicInfo.getCharacters()[index] : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
|
@ -523,6 +523,33 @@ SplitView {
|
||||
visible : currentComicInfo.number ? true : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoArc
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
font: currentComicDetailsFlowView.infoFont
|
||||
text: currentComicInfo.getStoryArcInfoString()
|
||||
rightPadding: 20
|
||||
visible : currentComicInfo.getStoryArcInfoString().length > 0
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoAlternate
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
font: currentComicDetailsFlowView.infoFont
|
||||
text: currentComicInfo.getAlternateSeriesString()
|
||||
rightPadding: 20
|
||||
visible : currentComicInfo.getStoryArcInfoString().length > 0
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoSeriesGroup
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
font: currentComicDetailsFlowView.infoFont
|
||||
text: currentComicInfo.seriesGroup ? currentComicInfo.seriesGroup : ""
|
||||
rightPadding: 20
|
||||
visible: currentComicInfo.seriesGroup ? true : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoGenre
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
|
@ -527,6 +527,33 @@ SplitView {
|
||||
visible : currentComicInfo.number ? true : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoArc
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
font: currentComicDetailsFlowView.infoFont
|
||||
text: currentComicInfo.getStoryArcInfoString()
|
||||
rightPadding: 20
|
||||
visible : currentComicInfo.getStoryArcInfoString().length > 0
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoAlternate
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
font: currentComicDetailsFlowView.infoFont
|
||||
text: currentComicInfo.getAlternateSeriesString()
|
||||
rightPadding: 20
|
||||
visible : currentComicInfo.getStoryArcInfoString().length > 0
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoSeriesGroup
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
font: currentComicDetailsFlowView.infoFont
|
||||
text: currentComicInfo.seriesGroup ? currentComicInfo.seriesGroup : ""
|
||||
rightPadding: 20
|
||||
visible: currentComicInfo.seriesGroup ? true : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: currentComicInfoGenre
|
||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||
|
Reference in New Issue
Block a user