From 6958c2352f37ea7254f2948251f15e1ab7b7cd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 14 Nov 2021 09:13:35 +0100 Subject: [PATCH] Add new icon and change color to orange for status "connecting" --- qweechat/data/icons/README | 4 +- qweechat/data/icons/dialog-warning.png | Bin 0 -> 596 bytes qweechat/network.py | 49 ++++++++++++++++++------- qweechat/qweechat.py | 18 ++++----- 4 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 qweechat/data/icons/dialog-warning.png diff --git a/qweechat/data/icons/README b/qweechat/data/icons/README index 9c9e7c6..614a9d9 100644 --- a/qweechat/data/icons/README +++ b/qweechat/data/icons/README @@ -10,8 +10,8 @@ Files: weechat.png, bullet_green_8x8.png, bullet_yellow_8x8.png Files: application-exit.png, dialog-close.png, dialog-ok-apply.png, - document-save.png, edit-find.png, help-about.png, network-connect.png, - network-disconnect.png, preferences-other.png + dialog-warning.png, document-save.png, edit-find.png, help-about.png, + network-connect.png, network-disconnect.png, preferences-other.png Files come from Debian package "oxygen-icon-theme": diff --git a/qweechat/data/icons/dialog-warning.png b/qweechat/data/icons/dialog-warning.png new file mode 100644 index 0000000000000000000000000000000000000000..43ca31a31871751e291ed4ae0a43e2d98cdf0b74 GIT binary patch literal 596 zcmV-a0;~OrP)=*gEtt=qgkZ2WcrqY7(0?$^FO?a>2XUw9*HDa1NaF z@OuwOwASng#Q>tJeKmRSTwoAd>whL*v@S-Ar+U%SIo(~bF70$q?I;f2hvwL{7^U;b zw*BD0M(BMqro}&V2*W@OP{GO3=%amW&w?cO?-~auS$=Y#<)@EOh2!YhoZXWkUa;=S z@ZZX3l4u!f_gAJi&FE}$2CGXn*ks=8+cm7Eys zU~b|CdHj)4a9W7hL>0$^_B%BP8QDjACRVHHHinKSo>&nW@cmT@orH{EYk+`G9GahX zI~Wi1Oy~%}gp}rxJT?oiC;2*<^i#R|~)W-VQBrF&w4GR~1a&85xL*&7(@?XNdKu7s+>4 ix2BaJzs}xZAN&D5t-?v>AdPzf0000 %s' % (resource_filename(__name__, 'data/icons/%s' % icon), - status.capitalize() + ssl)) + self.network.status_label(status) + ssl)) else: self.network_status.setText(status.capitalize()) - if status == self.network.status_disconnected: + if status == STATUS_DISCONNECTED: self.actions['connect'].setEnabled(True) self.actions['disconnect'].setEnabled(False) else: