feat: Use different icons for status views
All checks were successful
ci/woodpecker/push/<no value> Pipeline was successful

And add description text to state with chat present but without messages
This commit is contained in:
David Lapshin 2023-07-24 01:15:11 +03:00
parent cd5221e06c
commit 79cd0c1475
Signed by untrusted user: daudix
GPG key ID: 93ECF15D3053D81C
4 changed files with 10 additions and 4 deletions

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 3 0 c -1.644531 0 -3 1.355469 -3 3 v 6 c 0 1.644531 1.355469 3 3 3 h 1 v 4 l 4 -4 h 5 c 1.644531 0 3 -1.355469 3 -3 v -6 c 0 -1.644531 -1.355469 -3 -3 -3 z m 0 2 h 10 c 0.570312 0 1 0.429688 1 1 v 6 c 0 0.570312 -0.429688 1 -1 1 h -10 c -0.570312 0 -1 -0.429688 -1 -1 v -6 c 0 -0.570312 0.429688 -1 1 -1 z m 0 0"/></svg>

After

Width:  |  Height:  |  Size: 458 B

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 14 3.175781 v 3.824219 c 0 2.179688 -1.820312 4 -4 4 h -3.585938 l -2 2 h 5.585938 l 3 3 v -3 c 1.644531 0 3 -1.355469 3 -3 v -4 c 0 -1.292969 -0.839844 -2.40625 -2 -2.824219 z m 0 0" fill-opacity="0.34902"/><path d="m 3 0 c -1.644531 0 -3 1.355469 -3 3 v 4 c 0 1.644531 1.355469 3 3 3 v 3 l 3 -3 h 4 c 1.644531 0 3 -1.355469 3 -3 v -4 c 0 -1.644531 -1.355469 -3 -3 -3 z m 0 2 h 7 c 0.570312 0 1 0.429688 1 1 v 4 c 0 0.570312 -0.429688 1 -1 1 h -7 c -0.570312 0 -1 -0.429688 -1 -1 v -4 c 0 -0.570312 0.429688 -1 1 -1 z m 0 0"/></svg>

After

Width:  |  Height:  |  Size: 671 B

View file

@ -16,6 +16,7 @@
<gresource prefix="/io/github/Bavarder/Bavarder/icons/scalable/actions/">
<file preprocess="xml-stripblanks" alias="bot-symbolic.svg">../data/icons/hicolor/scalable/actions/bot-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="chat-bubbles-emtpy-symbolic.svg">../data/icons/hicolor/scalable/actions/chat-bubbles-emtpy-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="chat-message-new-symbolic.svg">../data/icons/hicolor/scalable/actions/chat-message-new-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="check-round-outline-symbolic.svg">../data/icons/hicolor/scalable/actions/check-round-outline-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="cloud-disabled-symbolic.svg">../data/icons/hicolor/scalable/actions/cloud-disabled-symbolic.svg</file>

View file

@ -52,8 +52,8 @@ template $BavarderWindow : Adw.ApplicationWindow {
}
Adw.StatusPage status_no_chat_thread {
title: _("No Chat");
icon-name: "chat-message-new-symbolic";
title: _("No Chats");
icon-name: "chat-bubbles-emtpy-symbolic";
}
Adw.StatusPage status_no_thread {
@ -150,8 +150,9 @@ template $BavarderWindow : Adw.ApplicationWindow {
Stack stack {
Adw.StatusPage status_no_chat {
title: _("No Chat");
icon-name: "chat-message-new-symbolic";
title: _("No Messages");
description: _("Send first message to get started");
icon-name: "chat-bubbles-emtpy-symbolic";
}
Adw.StatusPage status_no_internet {