From 084b25779b4adc4abe5085d80eb7b8f1dcee77e4 Mon Sep 17 00:00:00 2001 From: Huy Pham <42948410+hpham@users.noreply.github.com> Date: Wed, 15 Jan 2020 15:23:49 -0800 Subject: [PATCH] differentiate sessions dialog's between start gui vs open from menu, add delete button to sessions dialog, remove fix width in TMenubutton for dark theme --- daemon/core/gui/coreclient.py | 3 +- daemon/core/gui/data/icons/cancel.png | Bin 0 -> 1322 bytes daemon/core/gui/data/icons/delete.png | Bin 0 -> 387 bytes daemon/core/gui/data/icons/shutdown.png | Bin 0 -> 1546 bytes daemon/core/gui/dialogs/sessions.py | 45 +++++++++++++++++++++--- daemon/core/gui/images.py | 3 ++ daemon/core/gui/themes.py | 4 +-- 7 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 daemon/core/gui/data/icons/cancel.png create mode 100644 daemon/core/gui/data/icons/delete.png create mode 100644 daemon/core/gui/data/icons/shutdown.png diff --git a/daemon/core/gui/coreclient.py b/daemon/core/gui/coreclient.py index 23f7adc0..e367608a 100644 --- a/daemon/core/gui/coreclient.py +++ b/daemon/core/gui/coreclient.py @@ -415,9 +415,8 @@ class CoreClient: if len(sessions) == 0: self.create_new_session() else: - dialog = SessionsDialog(self.app, self.app) + dialog = SessionsDialog(self.app, self.app, True) dialog.show() - response = self.client.get_service_defaults(self.session_id) self.default_services = { x.node_type: set(x.services) for x in response.defaults diff --git a/daemon/core/gui/data/icons/cancel.png b/daemon/core/gui/data/icons/cancel.png new file mode 100644 index 0000000000000000000000000000000000000000..1d95ba0ce40155f397a587da9463123509c9fac7 GIT binary patch literal 1322 zcmV+_1=aeAP)U*#STqfkhaVU`Am#aP!|dqJ4`b$?;aOS z`Z4cK=f0T%7xce8_uO;-|93ymz4yU1rg3jWY7s=cy4=xgzqTo?KqaA~3lQd@G!(LA zQ2r2=i-@L0BvrR`a7el_)#k2BKz7yQdB(^_lox@fh~2NCa?mmK#`_1aRLY?u0VAs) ze~6o2k037tGb>GAz)clC*Sx>uzW(&zQ9DN#km+oD0p(+0cGSLQa8;2_jeUcMqja(s zpozqc%q(}m!20Oi?4fX=;U9mqq|>)-{H+A&Gl}?(toH@z>gwoOLinb>&hL_A>1;Vy zr<{W(5;N{9c>rb2jjZ>TcD0mUUu6YkX1V+CD)}*JXXbkSN9DYxoI;u8;&mVgYey>5_L2hrO}0JYzy;vJJHpH!*NpGaFSW&%oI--`;r}NOFxz##U8NdB1!UWo z%q&;^EL(VMgQWCTuILIK;MWr|!eg@H)${b#Hl+ zx(^Nz+qxTE*D3`t(>LCRu!evD?Z!b_XBD7!)fI3K2pIjbZ3!^fCZ@Bn1uyy31cO6t%MQHul|l0DE62!>*`Dmcncr;1 zA7~oA`b#3fq1d3X!ZxBgcZS^C+rjt8jjl^<>+VS-;Vn-Rd!y)U8$<5B-I#M{Y|~*J z=_s~&0Vh}#<%E|XNCDf4ZR;5)SeQ-#+`1X~@)$$z-CgASzKxIxL?ti+0j`;3+fP7C zq{!T!4wFOxr~w6>2?Jdr`9i=m4SmCpO|*pVLUSsJOnx90oKE7@kUW3{xP=L5s4)7t z2orKsRIQRc0FA{4`)XnfDYb%hinhuTCLmL3u(5sK2?;CZ>x2bHiVa}`{;VYO#3D5Y z)ydPzqS#Fh4R8yq1DB$P4JB_3xp%tB^=zBGu&WRu$i-q?K!5|MqXaEUzOZ0Jcc%(P zs0O(O1c*q=HlWko8YJ)gQX&MI@>-GA(tN&qWb68u+N^D$r8xZ-e@($ptpZBBPi2?5a?$k9! zLRH^QsIp|w59_9Gh=zN{TBYaEaJ^{bjQ?t-Y~q1vB(9ZxhF%qB$F z0rMhuzYKcNQLi_w!rG!XzgfF+Mh6xxGLCeJNJiR gzged-je8yc0S7nSp}o%sl>h($07*qoM6N<$f=vT~fdBvi literal 0 HcmV?d00001 diff --git a/daemon/core/gui/data/icons/delete.png b/daemon/core/gui/data/icons/delete.png new file mode 100644 index 0000000000000000000000000000000000000000..01b498d4cb54e3e1f71db21b1ef0408faf28dbda GIT binary patch literal 387 zcmeAS@N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