Better naming in some of the theme properties used in qml

This commit is contained in:
luisangelsm
2026-03-07 22:21:18 +01:00
parent 7103d0de3c
commit 27b59ad8a9
11 changed files with 156 additions and 156 deletions

View File

@ -13,7 +13,7 @@ Rectangle {
height: info.height + 2 * topMargin
property string infoColor: infoTextColor
property string infoColor: infoMetadataTextColor
property font infoFont: Qt.font({
family: "Arial",
@ -135,7 +135,7 @@ Rectangle {
id: title
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.bold: true
font.pixelSize: mainContainer.compact ? 18 : 21;
@ -279,7 +279,7 @@ Rectangle {
Layout.fillWidth: true
id: sinopsis
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
wrapMode: Text.WordWrap
@ -294,7 +294,7 @@ Rectangle {
Layout.bottomMargin: 5
id: characters_title
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 18
font.bold: true
@ -312,7 +312,7 @@ Rectangle {
model: comicInfo ? comicInfo.getCharacters().length : null
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -326,7 +326,7 @@ Rectangle {
Layout.bottomMargin: 5
id: main_character_or_team_title
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 18
font.bold: true
@ -337,7 +337,7 @@ Rectangle {
}
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -351,7 +351,7 @@ Rectangle {
Layout.bottomMargin: 5
id: teams_title
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 18
font.bold: true
@ -371,7 +371,7 @@ Rectangle {
model: comicInfo ? comicInfo.getTeams().length : null
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -385,7 +385,7 @@ Rectangle {
Layout.bottomMargin: 5
id: locations_title
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 18
font.bold: true
@ -403,7 +403,7 @@ Rectangle {
model: comicInfo ? comicInfo.getLocations().length : null
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -417,7 +417,7 @@ Rectangle {
Layout.bottomMargin: 5
id: authors_title
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 18
font.bold: true
@ -442,7 +442,7 @@ Rectangle {
model: comicInfo ? comicInfo.getWriters().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -450,7 +450,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -464,7 +464,7 @@ Rectangle {
model: comicInfo ? comicInfo.getPencillers().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -472,7 +472,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -486,7 +486,7 @@ Rectangle {
model: comicInfo ? comicInfo.getInkers().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -494,7 +494,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -508,7 +508,7 @@ Rectangle {
model: comicInfo ? comicInfo.getColorists().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -516,7 +516,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -530,7 +530,7 @@ Rectangle {
model: comicInfo ? comicInfo.getLetterers().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -538,7 +538,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -552,7 +552,7 @@ Rectangle {
model: comicInfo ? comicInfo.getCoverArtists().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -560,7 +560,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -574,7 +574,7 @@ Rectangle {
model: comicInfo ? comicInfo.getEditors().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -582,7 +582,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -596,7 +596,7 @@ Rectangle {
model: comicInfo ? comicInfo.getImprint().length : null
Column{
Text {
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -604,7 +604,7 @@ Rectangle {
}
Text {
color: infoTextColor
color: infoMetadataTextColor
font.family: "Arial"
font.pixelSize: 13
font.italic: true
@ -618,7 +618,7 @@ Rectangle {
Layout.topMargin: 25
id: publisher_title
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 18
font.bold: true
@ -635,7 +635,7 @@ Rectangle {
Text {
id: publisher
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -647,7 +647,7 @@ Rectangle {
Text {
id: format
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -659,7 +659,7 @@ Rectangle {
Text {
id: type
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -671,7 +671,7 @@ Rectangle {
Text {
id: color
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -683,7 +683,7 @@ Rectangle {
Text {
id: language
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15
@ -695,7 +695,7 @@ Rectangle {
Text {
id: age_rating
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 15

View File

@ -178,7 +178,7 @@ Rectangle {
wrapMode: Text.WordWrap
text: name
elide: Text.ElideRight
color: titleColor
color: itemTitleColor
font.letterSpacing: fontSpacing
font.pointSize: fontSize
font.family: fontFamily
@ -221,7 +221,7 @@ Rectangle {
Text {
id: continueReadingText
text: qsTr("Continue Reading...")
color: continueReadingColor
color: continueReadingTextColor
anchors.left: parent.left
anchors.top: parent.top
anchors.topMargin: 15
@ -297,7 +297,7 @@ Rectangle {
wrapMode: Text.WordWrap
text: readable_title
elide: Text.ElideRight
color: titleColor
color: itemTitleColor
font.letterSpacing: fontSpacing
font.pointSize: fontSize
font.family: fontFamily

View File

@ -108,8 +108,8 @@ SplitView {
width: itemWidth
height: itemHeight
color: ((dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index))?selectedColor:cellColor;
//border.color: ((dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index))?selectedBorderColor:borderColor;
color: ((dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index))?cellSelectedColor:cellColor;
//border.color: ((dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index))?cellSelectedBorderColor:borderColor;
//border.width: ?1:0;
anchors.horizontalCenter: parent.horizontalCenter
@ -143,7 +143,7 @@ SplitView {
rightMargin : commonBorder ? -commonBorderWidth : -rBorderwidth
}
border.color: selectedBorderColor
border.color: cellSelectedBorderColor
border.width: 3
opacity: (dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index) ? 1 : 0
@ -330,7 +330,7 @@ SplitView {
wrapMode: Text.WordWrap
text: title
elide: Text.ElideRight
color: titleColor
color: itemTitleColor
clip: true
font.letterSpacing: fontSpacing
font.pointSize: fontSize
@ -341,7 +341,7 @@ SplitView {
Text {
anchors {bottom: realCell.bottom; left: realCell.left; margins: 4}
text: number?"<b>#</b>"+number:""
color: textColor
color: itemDetailsColor
font.letterSpacing: fontSpacing
font.pointSize: fontSize
font.family: fontFamily
@ -352,7 +352,7 @@ SplitView {
id: pageImage
anchors {bottom: realCell.bottom; right: realCell.right; bottomMargin: 6; rightMargin: 4; leftMargin: 4}
source: "page.svg"
color: textColor
color: itemDetailsColor
width: 8
height: 10
}
@ -362,7 +362,7 @@ SplitView {
id: pages
anchors {bottom: realCell.bottom; right: pageImage.left; margins: 4}
text: has_been_opened?current_page+"/"+num_pages:num_pages
color: textColor
color: itemDetailsColor
font.letterSpacing: fontSpacing
font.pointSize: fontSize
font.family: fontFamily
@ -373,7 +373,7 @@ SplitView {
id: ratingImage
anchors {bottom: realCell.bottom; right: pageImage.left; bottomMargin: 6.5; rightMargin: Math.floor(pages.width)+12}
source: "star.svg"
color: textColor
color: itemDetailsColor
width: 11
height: 11
@ -423,7 +423,7 @@ SplitView {
id: comicRating
anchors {bottom: realCell.bottom; right: ratingImage.left; margins: 4}
text: rating>0?rating:"-"
color: textColor
color: itemDetailsColor
}
}
}
@ -511,7 +511,7 @@ SplitView {
id: currentComicInfoTitleView
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.bold: true
font.pixelSize: 21
@ -531,7 +531,7 @@ SplitView {
family: "Arial",
pixelSize: 14
});
property string infoFlowTextColor: infoTextColor
property string infoFlowTextColor: infoMetadataTextColor
Text {
id: currentComicInfoVolume
@ -643,7 +643,7 @@ SplitView {
width: synopsisScroller.width
id: currentComicInfoSinopsis
color: infoTitleColor
color: infoTextColor
font.family: "Arial"
font.pixelSize: 14
wrapMode: Text.WordWrap