Add a dark mode, fixes #7

This commit is contained in:
Jeena 2016-07-20 17:32:33 +02:00
parent cca7f55760
commit 9a0e2e523a
7 changed files with 54 additions and 10 deletions

View file

@ -11,6 +11,7 @@ ScrollView {
property Content content
property Post previousPost
property int textFontSize: 14
property bool nightmode
style: ScrollViewStyle {
transientScrollBars: true
@ -39,6 +40,7 @@ ScrollView {
delegate: Component {
PostListItem {
textFontSize: item.textFontSize
nightmode: app.nightmode
}
}
@ -47,7 +49,7 @@ ScrollView {
Rectangle {
width: listView.currentItem.width
height: listView.currentItem.height
color: "lightblue"
color: nightmode ? "#222" : "lightblue"
opacity: 0.5
y: listView.currentItem.y
}