mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
new visual style for grid view, with bigger covers and other visual improvements
This commit is contained in:
parent
328c4d85a5
commit
86fefe6c0d
@ -169,30 +169,44 @@ Rectangle {
|
|||||||
//cover
|
//cover
|
||||||
Image {
|
Image {
|
||||||
id: coverElement
|
id: coverElement
|
||||||
width: 148
|
width: 156
|
||||||
height: 224
|
height: 236
|
||||||
anchors {horizontalCenter: parent.horizontalCenter; top: realCell.top; topMargin: 4}
|
anchors {horizontalCenter: parent.horizontalCenter; top: realCell.top; topMargin: 0}
|
||||||
source: cover_path
|
source: cover_path
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
smooth: true
|
smooth: true
|
||||||
mipmap: true
|
mipmap: true
|
||||||
asynchronous : true
|
asynchronous : true
|
||||||
cache: false //TODO clear cache only when it is neede
|
cache: false //TODO clear cache only when it is needed
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//border
|
||||||
|
Rectangle {
|
||||||
|
width: 156
|
||||||
|
height: 236
|
||||||
|
anchors {horizontalCenter: parent.horizontalCenter; top: realCell.top; topMargin: 0}
|
||||||
|
color: "transparent"
|
||||||
|
border {
|
||||||
|
color: "#20FFFFFF"
|
||||||
|
width: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//mark
|
//mark
|
||||||
Image {
|
Image {
|
||||||
id: mark
|
id: mark
|
||||||
width: 23
|
width: 23
|
||||||
height: 23
|
height: 23
|
||||||
source: read_column&&show_marks?"tick.png":has_been_opened&&show_marks?"reading.png":""
|
source: read_column&&show_marks?"tick.png":has_been_opened&&show_marks?"reading.png":""
|
||||||
anchors {right: coverElement.right; top: coverElement.top; topMargin: 11; rightMargin: 11}
|
anchors {right: coverElement.right; top: coverElement.top; topMargin: 9; rightMargin: 9}
|
||||||
asynchronous : true
|
asynchronous : true
|
||||||
}
|
}
|
||||||
|
|
||||||
//title
|
//title
|
||||||
Text {
|
Text {
|
||||||
id : titleText
|
id : titleText
|
||||||
anchors { top: realCell.top; left: realCell.left; leftMargin: 4; rightMargin: 4; topMargin: 234; }
|
anchors { top: realCell.top; left: realCell.left; leftMargin: 4; rightMargin: 4; topMargin: 238; }
|
||||||
width: 148
|
width: 148
|
||||||
maximumLineCount: 2
|
maximumLineCount: 2
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user