Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/theme
diff options
context:
space:
mode:
authorCamila <hello@camila.codes>2021-03-16 22:24:11 +0300
committerCamila <hello@camila.codes>2021-03-24 17:40:05 +0300
commit974e2fb71888d5171d7291f0964859163260f20c (patch)
tree3cb0c1ba10fc38eda522cf4e47494b5f39d284cf /theme
parentf4d8699db85a0e8768a676a6ec556dd31ce22234 (diff)
Do not display notifications when user status is do not disturb.
- This information is retrieved from the notifications endpoint. - Add icons for the different pre defined status. - Make functions available to QML to decide which status icon to display. - Display the user status icon on the avatar and move the online/offline connection status to the folder icon. Signed-off-by: Camila <hello@camila.codes>
Diffstat (limited to 'theme')
-rw-r--r--theme/Style/Style.qml1
-rw-r--r--theme/colored/user-status-away.svg1
-rw-r--r--theme/colored/user-status-dnd.svg1
-rw-r--r--theme/colored/user-status-invisible.svg1
-rw-r--r--theme/colored/user-status-online.svg1
5 files changed, 5 insertions, 0 deletions
diff --git a/theme/Style/Style.qml b/theme/Style/Style.qml
index 332d8133d..520de312d 100644
--- a/theme/Style/Style.qml
+++ b/theme/Style/Style.qml
@@ -33,6 +33,7 @@ QtObject {
property int accountAvatarSize: (trayWindowHeaderHeight - 16)
property int accountAvatarStateIndicatorSize: 16
+ property int folderStateIndicatorSize: 16
property int accountLabelWidth: 128
property int accountDropDownCaretSize: 20
diff --git a/theme/colored/user-status-away.svg b/theme/colored/user-status-away.svg
new file mode 100644
index 000000000..775961d0e
--- /dev/null
+++ b/theme/colored/user-status-away.svg
@@ -0,0 +1 @@
+<svg width="24" height="24" enable-background="new 0 0 24 24" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" fill="none"/><path d="m10.615 2.1094c-4.8491 0.68106-8.6152 4.8615-8.6152 9.8906 0 5.5 4.5 10 10 10 5.0292 0 9.2096-3.7661 9.8906-8.6152-1.4654 1.601-3.5625 2.6152-5.8906 2.6152-4.4 0-8-3.6-8-8 0-2.3281 1.0143-4.4252 2.6152-5.8906z" fill="#f4a331"/></svg> \ No newline at end of file
diff --git a/theme/colored/user-status-dnd.svg b/theme/colored/user-status-dnd.svg
new file mode 100644
index 000000000..3b44ca239
--- /dev/null
+++ b/theme/colored/user-status-dnd.svg
@@ -0,0 +1 @@
+<svg width="24" height="24" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="m12 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10z" fill="#ed484c"/><path d="m8 10h8c1.108 0 2 0.892 2 2s-0.892 2-2 2h-8c-1.108 0-2-0.892-2-2s0.892-2 2-2z" fill="#fdffff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" style="paint-order:stroke markers fill"/></svg> \ No newline at end of file
diff --git a/theme/colored/user-status-invisible.svg b/theme/colored/user-status-invisible.svg
new file mode 100644
index 000000000..d69bd696b
--- /dev/null
+++ b/theme/colored/user-status-invisible.svg
@@ -0,0 +1 @@
+<svg width="24" height="24" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="m12 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10zm0 4a6 6 0 0 1 6 6 6 6 0 0 1-6 6 6 6 0 0 1-6-6 6 6 0 0 1 6-6z" fill="#000"/></svg> \ No newline at end of file
diff --git a/theme/colored/user-status-online.svg b/theme/colored/user-status-online.svg
new file mode 100644
index 000000000..95c807a0f
--- /dev/null
+++ b/theme/colored/user-status-online.svg
@@ -0,0 +1 @@
+<svg width="24" height="24" enable-background="new 0 0 24 24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m8 16h8v-8h-8v8zm4-14c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10z" fill="#49B382"/></svg> \ No newline at end of file