Update notification

pull/18/head
reionwong 5 years ago
parent addb721cf8
commit f426ed7164

@ -0,0 +1,4 @@
<svg version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path d="m8 1a1 1 0 0 0-0.994 1.1 4.988 4.988 0 0 0-4.006 4.9v4.5l-2 2v0.5h14v-0.5l-2-2v-3.63a4 4 0 0 1-1 0.126v3.926l1 1.078h-10l1-1.078v-4.922a4 4 0 0 1 4-4c0.044 1e-3 0.087 3e-3 0.13 6e-3a4 4 0 0 1 0.741-1.492 1 1 0 0 0-0.871-0.514zm-1.73 14a2 2 0 0 0 1.73 1 2 2 0 0 0 1.728-1z" fill="#ffffff" stroke-linecap="round" stroke-width="3"/>
<path d="m15 4a3 3 0 0 1-6 0 3 3 0 1 1 6 0z" color="#bebebe" fill="#009dff" overflow="visible" stroke-width="1.2" style="isolation:auto;mix-blend-mode:normal"/>
</svg>

After

Width:  |  Height:  |  Size: 584 B

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<path d="m8 2a0.8 0.8 0 0 0-0.7952 0.88 3.9904 3.9904 0 0 0-3.2048 3.92v3.6l-1.6 1.6v0.4h11.2v-0.4l-1.6-1.6v-3.6a3.9896 3.9896 0 0 0-3.2048-3.92 0.8 0.8 0 0 0-0.7952-0.88zm0 1.6a3.2 3.2 0 0 1 3.2 3.2v3.9376l0.8 0.8624h-8l0.8-0.8624v-3.9376a3.2 3.2 0 0 1 3.2-3.2zm-1.384 9.6a1.6 1.6 0 0 0 1.384 0.8 1.6 1.6 0 0 0 1.3832-0.8z" fill="#fff" stroke-linecap="round" stroke-width="2.4"/>
</svg>

After

Width:  |  Height:  |  Size: 864 B

@ -0,0 +1,4 @@
<svg version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path d="m8 1a1 1 0 0 0-0.994 1.1 4.988 4.988 0 0 0-4.006 4.9v4.5l-2 2v0.5h14v-0.5l-2-2v-3.63a4 4 0 0 1-1 0.126v3.926l1 1.078h-10l1-1.078v-4.922a4 4 0 0 1 4-4c0.044 1e-3 0.087 3e-3 0.13 6e-3a4 4 0 0 1 0.741-1.492 1 1 0 0 0-0.871-0.514zm-1.73 14a2 2 0 0 0 1.73 1 2 2 0 0 0 1.728-1z" fill="#363636" stroke-linecap="round" stroke-width="3"/>
<path d="m15 4a3 3 0 0 1-6 0 3 3 0 1 1 6 0z" color="#bebebe" fill="#009dff" overflow="visible" stroke-width="1.2" style="isolation:auto;mix-blend-mode:normal"/>
</svg>

After

Width:  |  Height:  |  Size: 584 B

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<path d="m8 1.0357a0.92857 0.92857 0 0 0-0.923 1.0214 4.6317 4.6317 0 0 0-3.7199 4.55v4.1786l-1.8571 1.8571v0.46428h13v-0.46428l-1.8571-1.8571v-4.1786a4.6308 4.6308 0 0 0-3.7199-4.55 0.92857 0.92857 0 0 0-0.923-1.0214zm0 1.8571a3.7143 3.7143 0 0 1 3.7143 3.7143v4.5704l0.92857 1.001h-9.2857l0.92857-1.001v-4.5704a3.7143 3.7143 0 0 1 3.7143-3.7143zm-1.6064 11.143a1.8571 1.8571 0 0 0 1.6064 0.92857 1.8571 1.8571 0 0 0 1.6055-0.92857z" fill="#363636" stroke-linecap="round" stroke-width="2.5714"/>
</svg>

After

Width:  |  Height:  |  Size: 980 B

@ -106,5 +106,9 @@
<file>qml/SystemTray.qml</file>
<file>qml/MprisItem.qml</file>
<file>images/media-cover.svg</file>
<file>images/light/notification-new-symbolic.svg</file>
<file>images/light/notification-symbolic.svg</file>
<file>images/dark/notification-new-symbolic.svg</file>
<file>images/dark/notification-symbolic.svg</file>
</qresource>
</RCC>

@ -369,10 +369,25 @@ Item {
Layout.fillHeight: true
Layout.preferredWidth: _dateTimeLayout.implicitWidth + FishUI.Units.smallSpacing
onClicked: {
process.startDetached("cutefish-notificationd", ["-s"])
}
RowLayout {
id: _dateTimeLayout
anchors.fill: parent
// Image {
// width: rootItem.iconSize
// height: width
// sourceSize: Qt.size(width, height)
// source: "qrc:/images/" + (rootItem.darkMode ? "dark/" : "light/") + "notification-symbolic.svg"
// asynchronous: true
// Layout.alignment: Qt.AlignCenter
// antialiasing: true
// smooth: false
// }
Label {
id: timeLabel
Layout.alignment: Qt.AlignCenter

Loading…
Cancel
Save