From 0b9c01f0a1399dba2b32770d6d1b6afaec58ba9f Mon Sep 17 00:00:00 2001 From: liyp Date: Tue, 29 Mar 2022 20:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=87=86=E5=A4=87=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- images/SwiftUI.png | Bin 0 -> 2057 bytes images/lol.png | Bin 0 -> 1753 bytes images/todo.svg | 361 +++++++++++++++++++++++++++++++++++++++++++ main/__init__.py | 0 main/main.py | 3 + resource/current.qss | 64 ++++++++ tools/QSSLoader.py | 9 ++ tools/__init__.py | 0 tools/nextcloud.py | 0 9 files changed, 437 insertions(+) create mode 100644 images/SwiftUI.png create mode 100644 images/lol.png create mode 100644 images/todo.svg create mode 100644 main/__init__.py create mode 100644 main/main.py create mode 100644 resource/current.qss create mode 100644 tools/QSSLoader.py create mode 100644 tools/__init__.py create mode 100644 tools/nextcloud.py diff --git a/images/SwiftUI.png b/images/SwiftUI.png new file mode 100644 index 0000000000000000000000000000000000000000..9687d4d40558b497da777b11d46be8acd1943f95 GIT binary patch literal 2057 zcmV+k2=@1hP)Wm!ChZqc3n&SuRtQIq z3d)g2f+Q6JApsQ>5KuuR1XNIoR;YzaJ%FSLLQzYjBtn!nm*^MNrfHj`DIsYSC$@v_ z*lX`G=lk$sW-oikyLM9e;=eT7cV^z>|9hWjj&~O3G^aVu>HjI!XvM`M>lADUJ_IZQ zlBG_xW4(&r~i zoynNOd)*+h$wMU?u>trXo`5glfw;2I7GwK`Wo@I=HJf&hLi7KqXFlkuJQr%dpid?3=hzq!ac%f+*#0`E!xXmkG z8tR=f0I;JG^8lu!r$QwI!zv~yAMy{{c!Q&eBc%;TLi53I*?bW$IHq0MK4Sm{Ya0eA zcvBC?%ONqAYV=#J41WH5*vDQ2M-V448-Nf%*-|=J38Y-rEl{m$Q?cs7`4kAc6DS*laCAUxFh zM~smYK+)8_6|rpwzP1&KW z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0mjf_?+!( literal 0 HcmV?d00001 diff --git a/images/lol.png b/images/lol.png new file mode 100644 index 0000000000000000000000000000000000000000..8e081f52206fccb5a0079f73ffa251f85dccb00d GIT binary patch literal 1753 zcmV;~1}6E5P)_Z~-2zAL18Zi@$(e7R_5J^At-bczJ8(s=$YqK6Jv7ID)rDbMkdxNGJqf_N z-TwZ*2~oaJlVdl7nZy`;^*a<_0@CnoKk4)~(D>_jC;k}#r0&2=2!H;6%|PgyHJv~A zMB4g~rvVsC^54P&sukqV^ev#%FsYzhgukqPn8z*^^bEh@#B|>8L*O6)!%0XKf_Qkf zla={27&_71aZ3}Qhs7~d0!!$^+qJja&IBUL`c!I$+RrY07g5xi2;D7v`J}mt;!7bA z4R7jS>q_8!q=KH(Rdg4u;#B@}2IKPpD4RM>Rq`myCO%}*_+b*MGZ$p4T(5+o zw!Qpv?QRathCuidI{Fh&2JJ8Y6(z8L^~W4Pmk#t*lseDm!6#@Kehp<(7y~-f4@C3) z+CAJC7FYNZ!g#7(GW9i;#G(qVwXcq-5}v#2VRkQmi(^HNNLHB{#kQ8cyq!}5uk7Rn zzcwn$Duq}y!s;8U(b|O4q|W0{<-h0eb9RDK4iOPHw(RA(oDgVf;sM|;zm3e!0Kn3P zbEvPGADD$~?I_sH;}!c!t2iQ7CPcWe?RRXyECS6<6ibAsMDQIY?3da_wW^_-hU+T9 zXiP}$iPi9j@;@S?oQ$H_AJmw*3B!auU$YSBB9EuJ@0n9;wv1V z0`=|tSUPJ0sU$Dk;I)eRW>vvU}ZuZ zUh=}}xsgQ_Kd^xfU2_jG>17Hw(M&&glUO`PU2PS0wN;FaPH^(eLHf@QF>r2#uZG4j zSwB24WgO05&y5q!hyf#9H!A{dkMNK&h$s*xoLRF6#(v|6-zp&=0@+ejR6y;r0&164 z0+33j8Te|1fwRM$K0Cz8-m@Gkc#xIJX3M!j-f8038=80`6al08ncWGdzPFI+{HtKh z2U%u64@+RCs7Qpl{#^l5h=gKtz&YWl6U5Meu9Ou%&wXkm$sYjnYS3si_< z&L(iVsv;3;uf3Y7#kV=Lj`BF#x)M;3Z;!-7RU0!=^&TbcIWJcPY#p!O2xRsIA>R$F zdkNV^Auv2|4LS`bE7C6ZR@Wi72eje&jrJMG$$-DqHQ*(a zg;jwzf#(6|*c&1Pxh4?Cmsbg0Fc|Mcn={!E+PYVqm!vg76&8uvB|NqaFS`rZ!gLe7aQlYv}mqW2vuj@E0EZdhGQNI^HS z+yJGg-bL4W2EZb0tjBibawUnrcbx=i;WIZIR|0yPXH<;GjDh^Ilc@1?zWvc?Fbdk* z4wIA^;}c1=HpF64$`U0kUUD_n)eBHw_bo0GPxg~P-b>mzXJyyJzNg35eP|_!QqWnk zjr$w=JYV+S>#Zn(yT_hH6_&W#R94Pq)26k=^WvchtZ4ly^FMvoDkp=vWtZos>mi0t zyFJc3@lW6LfL*iJRf)Uy_MWD#?W0h&uck(s*L}#@9D)CM!Sp1cg)KVcK$&TLM+q`} zfHuB!eplCV2F?uzcAp zwTV%I2b@tNAOlvt``Wcsj^e=*Fx&R(fs( zZEt=Y)=hXZ99g%A`XIBM-A?CHic5=3SxNaiyw|QHp)z1P8V(pF@R~0tB23Aou9fwl z91mk2d>&}I;ZCj1c9Cx-14d$Ok=5bAL(u<;|6N~UM$H!pd6$nZ1Q=n5tU2=NY<}aL v0X>>-7bNf7D1U+HrSa&jz+aIok^}i4p!{S}_H*Rx00000NkvXXu0mjfOzu(f literal 0 HcmV?d00001 diff --git a/images/todo.svg b/images/todo.svg new file mode 100644 index 0000000..00804b5 --- /dev/null +++ b/images/todo.svg @@ -0,0 +1,361 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/main/__init__.py b/main/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main/main.py b/main/main.py new file mode 100644 index 0000000..e8c9f7a --- /dev/null +++ b/main/main.py @@ -0,0 +1,3 @@ +from PyQt5.QtWidgets import * +from PyQt5.QtCore import * +import os,sys \ No newline at end of file diff --git a/resource/current.qss b/resource/current.qss new file mode 100644 index 0000000..f842b8d --- /dev/null +++ b/resource/current.qss @@ -0,0 +1,64 @@ +/*去掉item虚线边框*/ +QListWidget, QListView, QTreeWidget, QTreeView { + outline: 0px; +} +/*设置左侧选项的最小最大宽度,文字颜色和背景颜色*/ +QListWidget { + min-width: 120px; + max-width: 120px; + color: white; + background: black; + +} + +QPushButton { + max-width: 120px; + color: white; + border-top-left-radius:10px; + border-top-right-radius:10px; + border-bottom-left-radius:10px; + border-bottom-right-radius:10px; + background: pink; +} +QPushButton:pressed, +QPushButton:pressed:focus { + /* 改变背景色 */ + background-color: #f50057; + /* 改变边框风格 */ + border-style:inset; + /* 改变边框风格 */ + border-style:inset; +} + +QPushButton#upload_btn { + padding: 3px 20px; + text-align:center; +} + + +/*被选中时的背景颜色和左边框颜色*/ +QListWidget::item:selected { + background: rgb(52, 52, 52); + border-right: 4px solid rgb(9, 187, 7); +} +/*鼠标悬停颜色*/ +HistoryPanel::item:hover { + background: rgb(52, 52, 52); +} + +/*右侧的层叠窗口的背景颜色*/ +QStackedWidget { + background: rgb(30, 30, 30); +} +/*模拟的页面*/ +QLabel { + color: white; +} +QLineEdit { + border: 2px solid rgb(52,52,52); + border-top-left-radius:10px; + border-top-right-radius:10px; + border-bottom-left-radius:10px; + border-bottom-right-radius:10px; + +} \ No newline at end of file diff --git a/tools/QSSLoader.py b/tools/QSSLoader.py new file mode 100644 index 0000000..6faa814 --- /dev/null +++ b/tools/QSSLoader.py @@ -0,0 +1,9 @@ +class QSSLoader: + def __init__(self): + pass + + @staticmethod + def read_qss_file(qss_file_name): + # print(qss_file_name) + with open(qss_file_name, 'r', encoding='UTF-8') as file: + return file.read() diff --git a/tools/__init__.py b/tools/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/nextcloud.py b/tools/nextcloud.py new file mode 100644 index 0000000..e69de29