Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
fd1b7421
P
PyQt Fluent Widgets
项目概览
k54kdk
/
PyQt Fluent Widgets
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PyQt Fluent Widgets
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
fd1b7421
编写于
5月 11, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新添加支持按钮
上级
f2c9fea9
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
215522 addition
and
215477 deletion
+215522
-215477
docs/README_zh.md
docs/README_zh.md
+1
-1
docs/locales/zh_CN/LC_MESSAGES/support.po
docs/locales/zh_CN/LC_MESSAGES/support.po
+1
-1
examples/gallery/app/common/resource.py
examples/gallery/app/common/resource.py
+215406
-215400
examples/gallery/app/common/signal_bus.py
examples/gallery/app/common/signal_bus.py
+1
-0
examples/gallery/app/resource/i18n/gallery.zh_CN.qm
examples/gallery/app/resource/i18n/gallery.zh_CN.qm
+0
-0
examples/gallery/app/resource/i18n/gallery.zh_CN.ts
examples/gallery/app/resource/i18n/gallery.zh_CN.ts
+28
-23
examples/gallery/app/resource/i18n/gallery.zh_HK.qm
examples/gallery/app/resource/i18n/gallery.zh_HK.qm
+0
-0
examples/gallery/app/resource/i18n/gallery.zh_HK.ts
examples/gallery/app/resource/i18n/gallery.zh_HK.ts
+55
-50
examples/gallery/app/view/gallery_interface.py
examples/gallery/app/view/gallery_interface.py
+29
-2
examples/gallery/app/view/main_window.py
examples/gallery/app/view/main_window.py
+1
-0
未找到文件。
docs/README_zh.md
浏览文件 @
fd1b7421
...
...
@@ -67,7 +67,7 @@ python demo.py
> 推荐在虚拟环境中安装 pyqt5-tools 和 PyQt-Fluent-Widgets,并确保 PyQt5-Frameless-Window 的版本号 >= 0.2.7,不然可能出现各种奇怪的问题。
## 支持💖
如果您正在使用这个项目并感觉良好,或者是想支持我继续开发,可以通过
[
爱发电
](
https://afdian.net/a/zhiyiYo
)
或者
[
ko-fi
](
https://ko-fi.com/zhiyiYo
)
请我喝一杯奶茶。非常感谢您的支持与鼓励 🥰
如果您正在使用这个项目并感觉良好,或者是想支持我继续开发,可以通过
[
爱发电
](
https://afdian.net/a/zhiyiYo
)
或者
[
ko-fi
](
https://ko-fi.com/zhiyiYo
)
请我喝一杯奶茶
,还能获得相应的奖励哦😊
。非常感谢您的支持与鼓励 🥰
## 加入我们🚩
可以在
[
Discord
](
https://discord.gg/mYZME3wraK
)
上和我们一起交流探讨,分享自己对这个组件库的新发现和新想法 🚀
...
...
docs/locales/zh_CN/LC_MESSAGES/support.po
浏览文件 @
fd1b7421
...
...
@@ -29,7 +29,7 @@ msgid ""
"If this project helps you a lot and you want to support the development "
"and maintenance of this project, feel free to sponsor me via 爱发电 or ko-"
"fi. Your support is highly appreciated 🥰"
msgstr "如果您正在使用这个项目并感觉良好,或者是想支持我继续开发,可以通过 [爱发电](https://afdian.net/a/zhiyiYo) 或者 [ko-fi](https://ko-fi.com/zhiyiYo) 请我喝一杯奶茶。非常感谢您的支持与鼓励 🥰"
msgstr "如果您正在使用这个项目并感觉良好,或者是想支持我继续开发,可以通过 [爱发电](https://afdian.net/a/zhiyiYo) 或者 [ko-fi](https://ko-fi.com/zhiyiYo) 请我喝一杯奶茶
,还能获得相应的奖励噢
。非常感谢您的支持与鼓励 🥰"
#: ../../source/support.md:4 4a96b52a6da745bb8a874850790eb6d4
msgid "Sponsors"
...
...
examples/gallery/app/common/resource.py
浏览文件 @
fd1b7421
此差异已折叠。
点击以展开。
examples/gallery/app/common/signal_bus.py
浏览文件 @
fd1b7421
...
...
@@ -6,6 +6,7 @@ class SignalBus(QObject):
""" Signal bus """
switchToSampleCard
=
pyqtSignal
(
str
,
int
)
supportSignal
=
pyqtSignal
()
signalBus
=
SignalBus
()
\ No newline at end of file
examples/gallery/app/resource/i18n/gallery.zh_CN.qm
浏览文件 @
fd1b7421
无法预览此类型文件
examples/gallery/app/resource/i18n/gallery.zh_CN.ts
浏览文件 @
fd1b7421
...
...
@@ -263,7 +263,7 @@
<
context
>
<
name
>
ExampleCard
<
/name
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
87
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
113
"
/>
<
source
>
Source
code
<
/source
>
<
translation
>
源代码
<
/translation
>
<
/message
>
...
...
@@ -546,89 +546,89 @@
<
context
>
<
name
>
MainWindow
<
/name
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
19
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
20
"
/>
<
source
>
Home
<
/source
>
<
translation
>
主页
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
5
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
6
"
/>
<
source
>
Basic
input
<
/source
>
<
translation
>
基本输入
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
29
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
30
"
/>
<
source
>
Dialogs
<
/source
>
<
translation
>
对话框
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
1
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
2
"
/>
<
source
>
Layout
<
/source
>
<
translation
>
布局
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
5
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
6
"
/>
<
source
>
Menus
<
/source
>
<
translation
>
菜单
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
3
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
4
"
/>
<
source
>
Material
<
/source
>
<
translation
>
材料
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
7
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
8
"
/>
<
source
>
Scrolling
<
/source
>
<
translation
>
滚动
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
39
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
40
"
/>
<
source
>
Status
&
amp
;
info
<
/source
>
<
translation
>
状态和信息
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
1
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
2
"
/>
<
source
>
Text
<
/source
>
<
translation
>
文本
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
1
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
2
"
/>
<
source
>
Icons
<
/source
>
<
translation
>
图标
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
3
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
4
"
/>
<
source
>
View
<
/source
>
<
translation
>
视图
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
3
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
4
"
/>
<
source
>
Settings
<
/source
>
<
translation
>
设置
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
7
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
8
"
/>
<
source
>
Date
&
amp
;
time
<
/source
>
<
translation
>
日期和时间
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
5
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
6
"
/>
<
source
>
Sure
<
/source
>
<
translation
>
来啦老弟
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
6
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
7
"
/>
<
source
>
Cancel
<
/source
>
<
translation
>
下次一定
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
0
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
1
"
/>
<
source
>
Buy
me
a
coffee
<
/source
>
<
translation
>
请作者喝杯奶茶
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
0
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
1
"
/>
<
source
>
If
this
project
helps
you
a
lot
and
you
want
to
support
the
development
and
maintenance
of
this
project
,
feel
free
to
sponsor
me
.
Your
support
is
highly
appreciated
🥰
<
/source
>
<
translation
>
如果您正在使用这个项目并感觉良好
,
或者是想支持作者继续开发
,
您可以考虑请作者喝一杯奶茶
。
非常感谢您的支持与鼓励
🥰
<
/translation
>
<
translation
>
如果您正在使用这个项目并感觉良好
,
或者是想支持作者继续开发
,
您可以考虑请作者喝一杯奶茶
,
还能获得相应的奖励哦
😊
。
非常感谢您的支持与鼓励
🥰
<
/translation
>
<
/message
>
<
/context
>
<
context
>
...
...
@@ -1208,25 +1208,30 @@
<
context
>
<
name
>
ToolBar
<
/name
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
21
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
40
"
/>
<
source
>
Documentation
<
/source
>
<
translation
>
在线文档
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
23
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
42
"
/>
<
source
>
Source
<
/source
>
<
translation
>
源代码
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
55
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
79
"
/>
<
source
>
Toggle
theme
<
/source
>
<
translation
>
切换主题
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
56
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
81
"
/>
<
source
>
Send
feedback
<
/source
>
<
translation
>
提供反馈
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
80
"
/>
<
source
>
Support
me
<
/source
>
<
translation
>
支持作者
🥰
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
Translator
<
/name
>
...
...
examples/gallery/app/resource/i18n/gallery.zh_HK.qm
浏览文件 @
fd1b7421
无法预览此类型文件
examples/gallery/app/resource/i18n/gallery.zh_HK.ts
浏览文件 @
fd1b7421
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<!
DOCTYPE
TS
>
<
TS
version
=
"
2.1
"
language
=
"
zh_
CN
"
sourcelanguage
=
"
en_US
"
>
<
TS
version
=
"
2.1
"
language
=
"
zh_
HK
"
sourcelanguage
=
"
en_US
"
>
<
context
>
<
name
>
BasicInputInterface
<
/name
>
<
message
>
...
...
@@ -126,7 +126,7 @@
<
message
>
<
location
filename
=
"
../../view/basic_input_interface.py
"
line
=
"
99
"
/>
<
source
>
Send
<
/source
>
<
translation
>
發
送
<
/translation
>
<
translation
>
髮
送
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/basic_input_interface.py
"
line
=
"
100
"
/>
...
...
@@ -209,7 +209,7 @@
<
message
>
<
location
filename
=
"
../../view/date_time_interface.py
"
line
=
"
41
"
/>
<
source
>
A
TimePicker
using
a
24
-
hour
clock
<
/source
>
<
translation
>
24
小時
制
的時間選擇器
<
/translation
>
<
translation
>
24
小時
製
的時間選擇器
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/date_time_interface.py
"
line
=
"
48
"
/>
...
...
@@ -263,7 +263,7 @@
<
context
>
<
name
>
ExampleCard
<
/name
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
87
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
113
"
/>
<
source
>
Source
code
<
/source
>
<
translation
>
源代碼
<
/translation
>
<
/message
>
...
...
@@ -329,7 +329,7 @@
<
message
>
<
location
filename
=
"
../../view/layout_interface.py
"
line
=
"
38
"
/>
<
source
>
Killer
Queen
<
/source
>
<
translation
>
殺手皇
后
💀
<
/translation
>
<
translation
>
殺手皇
後
💀
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/layout_interface.py
"
line
=
"
39
"
/>
...
...
@@ -357,7 +357,7 @@
<
message
>
<
location
filename
=
"
../../view/icon_interface.py
"
line
=
"
21
"
/>
<
source
>
Search
icons
<
/source
>
<
translation
>
搜
索圖標
<
/translation
>
<
translation
>
蒐
索圖標
<
/translation
>
<
/message
>
<
/context
>
<
context
>
...
...
@@ -460,7 +460,7 @@
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
85
"
/>
<
source
>
Scary
Monster
<
/source
>
<
translation
>
駭人
惡
獸
<
/translation
>
<
translation
>
駭人
噁
獸
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
85
"
/>
...
...
@@ -510,7 +510,7 @@
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
90
"
/>
<
source
>
Wonder
of
U
<
/source
>
<
translation
>
奇
蹟
於你
<
/translation
>
<
translation
>
奇
跡
於你
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
90
"
/>
...
...
@@ -540,95 +540,95 @@
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
79
"
/>
<
source
>
Killer
Queen
<
/source
>
<
translation
>
殺手皇
后
💀
<
/translation
>
<
translation
>
殺手皇
後
💀
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
MainWindow
<
/name
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
19
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
20
"
/>
<
source
>
Home
<
/source
>
<
translation
>
主頁
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
5
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
6
"
/>
<
source
>
Basic
input
<
/source
>
<
translation
>
基本輸入
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
29
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
30
"
/>
<
source
>
Dialogs
<
/source
>
<
translation
>
對話框
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
1
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
2
"
/>
<
source
>
Layout
<
/source
>
<
translation
>
佈局
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
5
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
6
"
/>
<
source
>
Menus
<
/source
>
<
translation
>
菜單
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
3
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
4
"
/>
<
source
>
Material
<
/source
>
<
translation
>
材料
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
7
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
13
8
"
/>
<
source
>
Scrolling
<
/source
>
<
translation
>
滾動
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
39
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
40
"
/>
<
source
>
Status
&
amp
;
info
<
/source
>
<
translation
>
狀態和信息
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
1
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
2
"
/>
<
source
>
Text
<
/source
>
<
translation
>
文本
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
1
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
2
"
/>
<
source
>
Icons
<
/source
>
<
translation
>
圖標
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
3
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
14
4
"
/>
<
source
>
View
<
/source
>
<
translation
>
視圖
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
3
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
4
"
/>
<
source
>
Settings
<
/source
>
<
translation
>
設置
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
7
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
12
8
"
/>
<
source
>
Date
&
amp
;
time
<
/source
>
<
translation
>
日期和時間
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
5
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
6
"
/>
<
source
>
Sure
<
/source
>
<
translation
>
來啦老弟
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
6
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
7
"
/>
<
source
>
Cancel
<
/source
>
<
translation
>
下次一定
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
0
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
1
"
/>
<
source
>
Buy
me
a
coffee
<
/source
>
<
translation
>
請作者喝
杯
奶茶
<
/translation
>
<
translation
>
請作者喝
盃
奶茶
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
0
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
20
1
"
/>
<
source
>
If
this
project
helps
you
a
lot
and
you
want
to
support
the
development
and
maintenance
of
this
project
,
feel
free
to
sponsor
me
.
Your
support
is
highly
appreciated
🥰
<
/source
>
<
translation
>
如果您正在使用這個項目並感覺良好
,
或者是想支持作者繼續開
發
,
您可以考慮請作者喝一杯奶茶
。
非常感謝您的支持與鼓勵
🥰
<
/translation
>
<
translation
>
如果您正在使用這個項目並感覺良好
,
或者是想支持作者繼續開
髮
,
您可以考慮請作者喝一盃奶茶
,
還能獲得相應的獎勵哦
😊。
非常感謝您的支持與鼓勵
🥰
<
/translation
>
<
/message
>
<
/context
>
<
context
>
...
...
@@ -803,7 +803,7 @@
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
85
"
/>
<
source
>
Use
system
setting
<
/source
>
<
translation
>
跟隨
系
統設置
<
/translation
>
<
translation
>
跟隨
繫
統設置
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
67
"
/>
...
...
@@ -818,7 +818,7 @@
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
74
"
/>
<
source
>
Interface
zoom
<
/source
>
<
translation
>
界
面
縮放
<
/translation
>
<
translation
>
界
麵
縮放
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
74
"
/>
...
...
@@ -833,7 +833,7 @@
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
85
"
/>
<
source
>
Set
your
preferred
language
for
UI
<
/source
>
<
translation
>
選擇界
面
所使用的語言
<
/translation
>
<
translation
>
選擇界
麵
所使用的語言
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
95
"
/>
...
...
@@ -858,12 +858,12 @@
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
108
"
/>
<
source
>
Check
for
updates
when
the
application
starts
<
/source
>
<
translation
>
在應用程序
啓
動時檢查更新
<
/translation
>
<
translation
>
在應用程序
啟
動時檢查更新
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
108
"
/>
<
source
>
The
new
version
will
be
more
stable
and
have
more
features
<
/source
>
<
translation
>
新版本將更加穩定並擁有更多功能
(
建議
啓
用此選項
)
<
/translation
>
<
translation
>
新版本將更加穩定並擁有更多功能
(
建議
啟
用此選項
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
134
"
/>
...
...
@@ -873,7 +873,7 @@
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
118
"
/>
<
source
>
Open
help
page
<
/source
>
<
translation
>
打開幫助頁
面
<
/translation
>
<
translation
>
打開幫助頁
麵
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
118
"
/>
...
...
@@ -883,7 +883,7 @@
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
118
"
/>
<
source
>
Discover
new
features
and
learn
useful
tips
about
PyQt
-
Fluent
-
Widgets
<
/source
>
<
translation
>
發
現新功能並瞭解有關
PyQt
-
Fluent
-
Widgets
的使用技巧
<
/translation
>
<
translation
>
髮
現新功能並瞭解有關
PyQt
-
Fluent
-
Widgets
的使用技巧
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
127
"
/>
...
...
@@ -913,7 +913,7 @@
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
192
"
/>
<
source
>
Configuration
takes
effect
after
restart
<
/source
>
<
translation
>
配置在重
啓
軟件後生效
<
/translation
>
<
translation
>
配置在重
啟
軟件後生效
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/setting_interface.py
"
line
=
"
192
"
/>
...
...
@@ -966,7 +966,7 @@
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
179
"
/>
<
source
>
Please
wait
patiently
<
/source
>
<
translation
>
心急吃不了熱
豆
腐
,
請耐心等待哦
~<
/translation
>
<
translation
>
心急吃不了熱
荳
腐
,
請耐心等待哦
~<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
181
"
/>
...
...
@@ -1031,7 +1031,7 @@
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
75
"
/>
<
source
>
My
name
is
kira
yoshikake
,
33
years
old
.
Living
in
the
villa
area
northeast
of
duwangting
,
unmarried
.
I
work
in
Guiyou
chain
store
.
Every
day
I
have
to
work
overtime
until
8
p
.
m
.
to
go
home
.
I
don
&
apos
;
t
smoke
.
The
wine
is
only
for
a
taste
.
Sleep
at
11
p
.
m
.
for
8
hours
a
day
.
Before
I
go
to
bed
,
I
must
drink
a
cup
of
warm
milk
,
then
do
20
minutes
of
soft
exercise
,
get
on
the
bed
,
and
immediately
fall
asleep
.
Never
leave
fatigue
and
stress
until
the
next
day
.
Doctors
say
I
&
apos
;
m
normal
.
<
/source
>
<
translation
>
我的名字是吉良吉影
,
年齡33歲
,
家住杜王町東北部別墅區
,
未婚
。
我在
“
龜友百貨連鎖公司
”
上班
,
每天最晚也是八點前回家
,
不吸煙
,
酒也是淺
嘗輒止
,
晚上十一點上牀
,
保證八個小時的充足睡眠
,
睡前喝一杯
熱牛奶
,
再做二十分鐘伸展運動暖身
,
然後再睡覺
,
基本可以熟睡到天亮
。
像嬰兒一樣不留下疲勞與壓力
,
迎來第二天的早晨
,
健康檢查結果也顯示我很健康
。
我的意思是我是一個隨時都想追求平靜生活的人
,
不拘泥於勝負與煩惱
,
不樹立令我夜不能寐的敵人
,
這就是我對於這個社會的生活態度
,
我也清楚這就是我的幸福
。
<
/translation
>
<
translation
>
我的名字是吉良吉影
,
年齡33歲
,
家住杜王町東北部別墅區
,
未婚
。
我在
“
龜友百貨連鎖公司
”
上班
,
每天最晚也是八點前回家
,
不吸煙
,
酒也是淺
嚐輒止
,
晚上十一點上牀
,
保証八個小時的充足睡眠
,
睡前喝一盃
熱牛奶
,
再做二十分鐘伸展運動暖身
,
然後再睡覺
,
基本可以熟睡到天亮
。
像嬰兒一樣不留下疲勞與壓力
,
迎來第二天的早晨
,
健康檢查結果也顯示我很健康
。
我的意思是我是一個隨時都想追求平靜生活的人
,
不拘泥於勝負與煩惱
,
不樹立令我夜不能寐的敵人
,
這就是我對於這個社會的生活態度
,
我也清楚這就是我的幸福
。
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
186
"
/>
...
...
@@ -1041,18 +1041,13 @@
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
186
"
/>
<
source
>
Believe
in
the
spin
,
just
keep
believing
!<
/source
>
<
translation
>
相信迴旋吧
,
只
管相信就是了
!
<
/translation
>
<
translation
>
相信迴旋吧
,
隻
管相信就是了
!
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
198
"
/>
<
source
>
With
respect
,
let
&
apos
;
s
advance
towards
a
new
stage
of
the
spin
.
<
/source
>
<
translation
>
表達敬意吧
,
表達出敬意
,
然後邁向迴旋的另一個全新階段
!
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
209
"
/>
<
source
>
迂迴路を行けば最短ルート
。
<
/source
>
<
translation
>
最短的捷徑就是繞遠路
,
繞遠路才是我的最短捷徑
。
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
220
"
/>
<
source
>
An
error
message
which
won
&
apos
;
t
disappear
automatically
.
<
/source
>
...
...
@@ -1133,6 +1128,11 @@
<
source
>
An
determinate
progress
ring
<
/source
>
<
translation
>
確定的圓形進度條
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
209
"
/>
<
source
>
迂回路を行けば最短ルート
。
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
TableFrame
<
/name
>
...
...
@@ -1208,25 +1208,30 @@
<
context
>
<
name
>
ToolBar
<
/name
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
21
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
40
"
/>
<
source
>
Documentation
<
/source
>
<
translation
>
在線文檔
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
23
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
42
"
/>
<
source
>
Source
<
/source
>
<
translation
>
源代碼
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
55
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
79
"
/>
<
source
>
Toggle
theme
<
/source
>
<
translation
>
切換主題
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
56
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
81
"
/>
<
source
>
Send
feedback
<
/source
>
<
translation
>
提供反饋
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
80
"
/>
<
source
>
Support
me
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
Translator
<
/name
>
...
...
@@ -1301,7 +1306,7 @@
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
108
"
/>
<
source
>
Dio
Brando
<
/source
>
<
translation
>
迪奧
·
布
蘭度
<
/translation
>
<
translation
>
迪奧
·
佈
蘭度
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
108
"
/>
...
...
@@ -1329,7 +1334,7 @@
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
46
"
/>
<
source
>
A
TreeView
with
Multi
-
selection
enabled
<
/source
>
<
translation
>
啓
用複選框的樹狀組件
<
/translation
>
<
translation
>
啟
用複選框的樹狀組件
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/view_interface.py
"
line
=
"
31
"
/>
...
...
examples/gallery/app/view/gallery_interface.py
浏览文件 @
fd1b7421
# coding:utf-8
from
PyQt5.QtCore
import
Qt
,
pyqtSignal
,
QUrl
,
QEvent
from
PyQt5.QtGui
import
QDesktopServices
from
PyQt5.QtGui
import
QDesktopServices
,
QPainter
,
QPen
,
QColor
from
PyQt5.QtWidgets
import
QWidget
,
QLabel
,
QVBoxLayout
,
QHBoxLayout
,
QFrame
from
qfluentwidgets
import
(
ScrollArea
,
PushButton
,
ToolButton
,
FluentIcon
,
isDarkTheme
,
IconWidget
,
Theme
,
ToolTipFilter
)
from
..common.icon
import
Icon
from
..common.config
import
cfg
,
FEEDBACK_URL
,
HELP_URL
,
EXAMPLE_URL
from
..common.icon
import
Icon
from
..common.style_sheet
import
StyleSheet
from
..common.signal_bus
import
signalBus
class
SeparatorWidget
(
QWidget
):
""" Seperator widget """
def
__init__
(
self
,
parent
=
None
):
super
().
__init__
(
parent
=
parent
)
self
.
setFixedSize
(
6
,
16
)
def
paintEvent
(
self
,
e
):
painter
=
QPainter
(
self
)
pen
=
QPen
(
1
)
pen
.
setCosmetic
(
True
)
c
=
QColor
(
255
,
255
,
255
,
21
)
if
isDarkTheme
()
else
QColor
(
0
,
0
,
0
,
15
)
pen
.
setColor
(
c
)
painter
.
setPen
(
pen
)
x
=
self
.
width
()
//
2
painter
.
drawLine
(
x
,
0
,
x
,
self
.
height
())
class
ToolBar
(
QWidget
):
...
...
@@ -22,6 +42,8 @@ class ToolBar(QWidget):
self
.
tr
(
'Documentation'
),
self
,
FluentIcon
.
DOCUMENT
)
self
.
sourceButton
=
PushButton
(
self
.
tr
(
'Source'
),
self
,
FluentIcon
.
GITHUB
)
self
.
themeButton
=
ToolButton
(
FluentIcon
.
CONSTRACT
,
self
)
self
.
separator
=
SeparatorWidget
(
self
)
self
.
supportButton
=
ToolButton
(
FluentIcon
.
HEART
,
self
)
self
.
feedbackButton
=
ToolButton
(
FluentIcon
.
FEEDBACK
,
self
)
self
.
vBoxLayout
=
QVBoxLayout
(
self
)
...
...
@@ -46,19 +68,24 @@ class ToolBar(QWidget):
self
.
buttonLayout
.
addWidget
(
self
.
sourceButton
,
0
,
Qt
.
AlignLeft
)
self
.
buttonLayout
.
addStretch
(
1
)
self
.
buttonLayout
.
addWidget
(
self
.
themeButton
,
0
,
Qt
.
AlignRight
)
self
.
buttonLayout
.
addWidget
(
self
.
separator
,
0
,
Qt
.
AlignRight
)
self
.
buttonLayout
.
addWidget
(
self
.
supportButton
,
0
,
Qt
.
AlignRight
)
self
.
buttonLayout
.
addWidget
(
self
.
feedbackButton
,
0
,
Qt
.
AlignRight
)
self
.
buttonLayout
.
setAlignment
(
Qt
.
AlignVCenter
|
Qt
.
AlignLeft
)
self
.
themeButton
.
installEventFilter
(
ToolTipFilter
(
self
.
themeButton
))
self
.
supportButton
.
installEventFilter
(
ToolTipFilter
(
self
.
supportButton
))
self
.
feedbackButton
.
installEventFilter
(
ToolTipFilter
(
self
.
feedbackButton
))
self
.
themeButton
.
setToolTip
(
self
.
tr
(
'Toggle theme'
))
self
.
supportButton
.
setToolTip
(
self
.
tr
(
'Support me'
))
self
.
feedbackButton
.
setToolTip
(
self
.
tr
(
'Send feedback'
))
self
.
titleLabel
.
setObjectName
(
'titleLabel'
)
self
.
subtitleLabel
.
setObjectName
(
'subtitleLabel'
)
self
.
themeButton
.
clicked
.
connect
(
self
.
toggleTheme
)
self
.
supportButton
.
clicked
.
connect
(
signalBus
.
supportSignal
)
self
.
documentButton
.
clicked
.
connect
(
lambda
:
QDesktopServices
.
openUrl
(
QUrl
(
HELP_URL
)))
self
.
sourceButton
.
clicked
.
connect
(
...
...
examples/gallery/app/view/main_window.py
浏览文件 @
fd1b7421
...
...
@@ -109,6 +109,7 @@ class MainWindow(FramelessWindow):
self
.
widgetLayout
.
setContentsMargins
(
0
,
48
,
0
,
0
)
signalBus
.
switchToSampleCard
.
connect
(
self
.
switchToSample
)
signalBus
.
supportSignal
.
connect
(
self
.
showMessageBox
)
self
.
navigationInterface
.
displayModeChanged
.
connect
(
self
.
titleBar
.
raise_
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录