Tweak dark mode and font size to appear closer to Adwaita-dark in GNOME
The colors are now closer to the Adwaita-dark mode which I'm using as my primary theme. The header has been redesigned slightly to appear more consistent with other default apps too.
This commit is contained in:
parent
cb649951ae
commit
ea85197874
4 changed files with 27 additions and 24 deletions
|
@ -25,14 +25,12 @@ html, body {
|
||||||
body {
|
body {
|
||||||
background: #eee;
|
background: #eee;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
padding: 2em;
|
|
||||||
font-weight: lighter;
|
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nightmode {
|
.nightmode {
|
||||||
background: #111;
|
background: #353535;
|
||||||
color: #aaa;
|
color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nightmode::-webkit-scrollbar {
|
.nightmode::-webkit-scrollbar {
|
||||||
|
@ -51,32 +49,28 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-weight: lighter;
|
|
||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#date {
|
|
||||||
border-bottom: 1px solid #aaa;
|
|
||||||
margin-bottom: 1em;
|
|
||||||
padding-bottom: 1em;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nightmode #date {
|
|
||||||
border-bottom-color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.starred:after {
|
.starred:after {
|
||||||
content: "*";
|
content: "*";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
padding: 2em;
|
||||||
|
border-bottom: 1px solid #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nightmode header {
|
||||||
|
border-bottom-color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
header p {
|
header p {
|
||||||
color: #aaa;
|
color: #666;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 0.8em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nightmode header p {
|
.nightmode header p {
|
||||||
|
@ -90,6 +84,7 @@ a {
|
||||||
|
|
||||||
article {
|
article {
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
margin: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
article a {
|
article a {
|
||||||
|
|
|
@ -33,7 +33,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
id: item
|
id: item
|
||||||
height: d.height + t.height + e.height + 20
|
height: d.height + t.height + e.height + 2
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -81,7 +81,7 @@ Item {
|
||||||
Label {
|
Label {
|
||||||
id: t
|
id: t
|
||||||
text: title
|
text: title
|
||||||
color: nightmode ? (read ? "#555" : "#aaa") : (read ? "gray" : "black")
|
color: nightmode ? (read ? "#888" : "#ddd") : (read ? "gray" : "black")
|
||||||
font.pointSize: textFontSize
|
font.pointSize: textFontSize
|
||||||
textFormat: Text.PlainText
|
textFormat: Text.PlainText
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
|
|
|
@ -55,6 +55,14 @@ ScrollView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
width: 1
|
||||||
|
color: app.nightmode ? "#111" : "lightgray"
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: parent.top
|
||||||
|
height: parent.height
|
||||||
|
}
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: listView
|
id: listView
|
||||||
|
|
||||||
|
@ -74,12 +82,12 @@ ScrollView {
|
||||||
highlightFollowsCurrentItem: false
|
highlightFollowsCurrentItem: false
|
||||||
highlight: Component {
|
highlight: Component {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: listView.currentItem.width
|
width: listView.currentItem.width -1
|
||||||
height: listView.currentItem.height
|
height: listView.currentItem.height
|
||||||
color: nightmode ? "#444" : "lightblue"
|
color: nightmode ? "#15539e" : "lightblue"
|
||||||
opacity: 0.5
|
|
||||||
y: listView.currentItem.y
|
y: listView.currentItem.y
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onCurrentItemChanged: {
|
onCurrentItemChanged: {
|
||||||
|
|
|
@ -29,7 +29,7 @@ ApplicationWindow {
|
||||||
id: app
|
id: app
|
||||||
title: "FeedTheMonkey"
|
title: "FeedTheMonkey"
|
||||||
visible: true
|
visible: true
|
||||||
color: nightmode ? "#111" : "#eee"
|
color: nightmode ? "#2d2d2d" : "#eee"
|
||||||
|
|
||||||
minimumWidth: 480
|
minimumWidth: 480
|
||||||
minimumHeight: 320
|
minimumHeight: 320
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue