mirror of
https://github.com/YACReader/yacreader
synced 2025-10-21 19:34:53 -04:00
Added the basic structure of ComicInfo view.
This commit is contained in:
21
YACReaderLibrary/qml/InfoRating.qml
Normal file
21
YACReaderLibrary/qml/InfoRating.qml
Normal file
@ -0,0 +1,21 @@
|
||||
import QtQuick 2.6
|
||||
|
||||
import QtGraphicalEffects 1.0
|
||||
|
||||
Row {
|
||||
spacing: 6
|
||||
|
||||
Repeater {
|
||||
id: rating_compact
|
||||
model: 5
|
||||
Image {
|
||||
source: "info-rating.png"
|
||||
|
||||
ColorOverlay {
|
||||
anchors.fill: rating_compact.itemAt(index)
|
||||
source: rating_compact.itemAt(index)
|
||||
color: index <= 3 ? "#ffffff" : "#1c1c1c"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user