diff --git a/images/SwiftUI.png b/images/SwiftUI.png new file mode 100644 index 0000000..9687d4d Binary files /dev/null and b/images/SwiftUI.png differ diff --git a/images/lol.png b/images/lol.png new file mode 100644 index 0000000..8e081f5 Binary files /dev/null and b/images/lol.png differ 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