mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Add the possibility to show a recently added/updated indicator
This commit is contained in:
@ -131,6 +131,16 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
//is new
|
||||
Rectangle {
|
||||
width: 10
|
||||
height: 10
|
||||
radius: 5
|
||||
anchors { left: coverElement.left; top: coverElement.top; topMargin: 10; leftMargin: 10; }
|
||||
color: "#FFFFCC00"
|
||||
visible: (((new Date() / 1000) - added) < 86400 || ((new Date() / 1000) - updated) < 86400) && show_recent
|
||||
}
|
||||
|
||||
//border
|
||||
Rectangle {
|
||||
width: coverElement.width
|
||||
|
Reference in New Issue
Block a user