Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
550ccf7f
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看板
提交
550ccf7f
编写于
6月 30, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复 Mac 下对话框按钮高度不一致的问题 (#311)
上级
150736d5
变更
51
展开全部
隐藏空白更改
内联
并排
Showing
51 changed file
with
294299 addition
and
294155 deletion
+294299
-294155
examples/combo_box/demo.py
examples/combo_box/demo.py
+2
-1
examples/gallery/app/common/resource.py
examples/gallery/app/common/resource.py
+236156
-236135
examples/gallery/app/resource/qss/dark/gallery_interface.qss
examples/gallery/app/resource/qss/dark/gallery_interface.qss
+1
-1
examples/gallery/app/resource/qss/dark/icon_interface.qss
examples/gallery/app/resource/qss/dark/icon_interface.qss
+4
-4
examples/gallery/app/resource/qss/dark/link_card.qss
examples/gallery/app/resource/qss/dark/link_card.qss
+2
-2
examples/gallery/app/resource/qss/dark/navigation_view_interface.qss
...llery/app/resource/qss/dark/navigation_view_interface.qss
+1
-1
examples/gallery/app/resource/qss/dark/sample_card.qss
examples/gallery/app/resource/qss/dark/sample_card.qss
+3
-3
examples/gallery/app/resource/qss/light/gallery_interface.qss
...ples/gallery/app/resource/qss/light/gallery_interface.qss
+1
-1
examples/gallery/app/resource/qss/light/icon_interface.qss
examples/gallery/app/resource/qss/light/icon_interface.qss
+4
-4
examples/gallery/app/resource/qss/light/link_card.qss
examples/gallery/app/resource/qss/light/link_card.qss
+2
-2
examples/gallery/app/resource/qss/light/navigation_view_interface.qss
...lery/app/resource/qss/light/navigation_view_interface.qss
+1
-1
examples/gallery/app/resource/qss/light/sample_card.qss
examples/gallery/app/resource/qss/light/sample_card.qss
+3
-3
qfluentwidgets/_rc/qss/dark/button.qss
qfluentwidgets/_rc/qss/dark/button.qss
+3
-3
qfluentwidgets/_rc/qss/dark/calendar_picker.qss
qfluentwidgets/_rc/qss/dark/calendar_picker.qss
+3
-3
qfluentwidgets/_rc/qss/dark/check_box.qss
qfluentwidgets/_rc/qss/dark/check_box.qss
+1
-1
qfluentwidgets/_rc/qss/dark/color_dialog.qss
qfluentwidgets/_rc/qss/dark/color_dialog.qss
+2
-2
qfluentwidgets/_rc/qss/dark/combo_box.qss
qfluentwidgets/_rc/qss/dark/combo_box.qss
+1
-1
qfluentwidgets/_rc/qss/dark/dialog.qss
qfluentwidgets/_rc/qss/dark/dialog.qss
+4
-4
qfluentwidgets/_rc/qss/dark/expand_setting_card.qss
qfluentwidgets/_rc/qss/dark/expand_setting_card.qss
+5
-5
qfluentwidgets/_rc/qss/dark/folder_list_dialog.qss
qfluentwidgets/_rc/qss/dark/folder_list_dialog.qss
+3
-3
qfluentwidgets/_rc/qss/dark/info_bar.qss
qfluentwidgets/_rc/qss/dark/info_bar.qss
+1
-1
qfluentwidgets/_rc/qss/dark/menu.qss
qfluentwidgets/_rc/qss/dark/menu.qss
+2
-2
qfluentwidgets/_rc/qss/dark/message_dialog.qss
qfluentwidgets/_rc/qss/dark/message_dialog.qss
+2
-2
qfluentwidgets/_rc/qss/dark/setting_card.qss
qfluentwidgets/_rc/qss/dark/setting_card.qss
+3
-3
qfluentwidgets/_rc/qss/dark/state_tool_tip.qss
qfluentwidgets/_rc/qss/dark/state_tool_tip.qss
+1
-1
qfluentwidgets/_rc/qss/dark/switch_button.qss
qfluentwidgets/_rc/qss/dark/switch_button.qss
+1
-1
qfluentwidgets/_rc/qss/dark/table_view.qss
qfluentwidgets/_rc/qss/dark/table_view.qss
+2
-2
qfluentwidgets/_rc/qss/dark/teaching_tip.qss
qfluentwidgets/_rc/qss/dark/teaching_tip.qss
+1
-1
qfluentwidgets/_rc/qss/dark/time_picker.qss
qfluentwidgets/_rc/qss/dark/time_picker.qss
+4
-4
qfluentwidgets/_rc/qss/dark/tool_tip.qss
qfluentwidgets/_rc/qss/dark/tool_tip.qss
+1
-1
qfluentwidgets/_rc/qss/light/button.qss
qfluentwidgets/_rc/qss/light/button.qss
+1
-1
qfluentwidgets/_rc/qss/light/calendar_picker.qss
qfluentwidgets/_rc/qss/light/calendar_picker.qss
+3
-3
qfluentwidgets/_rc/qss/light/check_box.qss
qfluentwidgets/_rc/qss/light/check_box.qss
+1
-1
qfluentwidgets/_rc/qss/light/color_dialog.qss
qfluentwidgets/_rc/qss/light/color_dialog.qss
+2
-2
qfluentwidgets/_rc/qss/light/combo_box.qss
qfluentwidgets/_rc/qss/light/combo_box.qss
+1
-1
qfluentwidgets/_rc/qss/light/dialog.qss
qfluentwidgets/_rc/qss/light/dialog.qss
+4
-4
qfluentwidgets/_rc/qss/light/expand_setting_card.qss
qfluentwidgets/_rc/qss/light/expand_setting_card.qss
+5
-5
qfluentwidgets/_rc/qss/light/folder_list_dialog.qss
qfluentwidgets/_rc/qss/light/folder_list_dialog.qss
+3
-3
qfluentwidgets/_rc/qss/light/info_bar.qss
qfluentwidgets/_rc/qss/light/info_bar.qss
+1
-1
qfluentwidgets/_rc/qss/light/menu.qss
qfluentwidgets/_rc/qss/light/menu.qss
+2
-2
qfluentwidgets/_rc/qss/light/message_dialog.qss
qfluentwidgets/_rc/qss/light/message_dialog.qss
+2
-2
qfluentwidgets/_rc/qss/light/setting_card.qss
qfluentwidgets/_rc/qss/light/setting_card.qss
+3
-3
qfluentwidgets/_rc/qss/light/state_tool_tip.qss
qfluentwidgets/_rc/qss/light/state_tool_tip.qss
+1
-1
qfluentwidgets/_rc/qss/light/switch_button.qss
qfluentwidgets/_rc/qss/light/switch_button.qss
+1
-1
qfluentwidgets/_rc/qss/light/table_view.qss
qfluentwidgets/_rc/qss/light/table_view.qss
+1
-1
qfluentwidgets/_rc/qss/light/teaching_tip.qss
qfluentwidgets/_rc/qss/light/teaching_tip.qss
+1
-1
qfluentwidgets/_rc/qss/light/time_picker.qss
qfluentwidgets/_rc/qss/light/time_picker.qss
+4
-4
qfluentwidgets/_rc/qss/light/tool_tip.qss
qfluentwidgets/_rc/qss/light/tool_tip.qss
+1
-1
qfluentwidgets/_rc/resource.py
qfluentwidgets/_rc/resource.py
+58039
-57919
qfluentwidgets/components/widgets/combo_box.py
qfluentwidgets/components/widgets/combo_box.py
+2
-0
qfluentwidgets/components/widgets/menu.py
qfluentwidgets/components/widgets/menu.py
+1
-1
未找到文件。
examples/combo_box/demo.py
浏览文件 @
550ccf7f
...
...
@@ -2,7 +2,7 @@
import
sys
from
PyQt5.QtCore
import
Qt
from
PyQt5.QtWidgets
import
QApplication
,
QWidget
,
QCompleter
from
qfluentwidgets
import
ComboBox
,
setTheme
,
Theme
,
setThemeColor
,
EditableComboBox
from
qfluentwidgets
import
ComboBox
,
setTheme
,
Theme
,
setThemeColor
,
EditableComboBox
,
setFont
class
Demo
(
QWidget
):
...
...
@@ -25,6 +25,7 @@ class Demo(QWidget):
# setTheme(Theme.DARK)
# setThemeColor('#0078d4')
# setFont(self.comboBox, 16)
if
__name__
==
'__main__'
:
...
...
examples/gallery/app/common/resource.py
浏览文件 @
550ccf7f
此差异已折叠。
点击以展开。
examples/gallery/app/resource/qss/dark/gallery_interface.qss
浏览文件 @
550ccf7f
...
...
@@ -30,7 +30,7 @@ ExampleCard>#card {
}
ExampleCard>#card QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
}
...
...
examples/gallery/app/resource/qss/dark/icon_interface.qss
浏览文件 @
550ccf7f
...
...
@@ -6,7 +6,7 @@ IconCard {
IconCard > QLabel {
color: rgb(207, 207, 207);
font: 11px 'Segoe UI';
font: 11px 'Segoe UI'
, 'PingFang SC'
;
}
IconCard[isSelected=true] {
...
...
@@ -38,18 +38,18 @@ IconInfoPanel {
}
IconInfoPanel>#nameLabel {
font: 15px 'Segoe UI';
font: 15px 'Segoe UI'
, 'PingFang SC'
;
font-weight: bold;
color: white;
}
IconInfoPanel>#subTitleLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
}
IconInfoPanel>QLabel {
font: 12px 'Segoe UI';
font: 12px 'Segoe UI'
, 'PingFang SC'
;
color: rgb(207, 207, 207);
}
examples/gallery/app/resource/qss/dark/link_card.qss
浏览文件 @
550ccf7f
...
...
@@ -10,12 +10,12 @@ LinkCard:hover {
}
#titleLabel {
font: 18px 'Segoe UI', 'Microsoft YaHei';
font: 18px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
}
#contentLabel {
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgb(208, 208, 208);
}
...
...
examples/gallery/app/resource/qss/dark/navigation_view_interface.qss
浏览文件 @
550ccf7f
PivotInterface QLabel {
padding-left: 10px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
}
\ No newline at end of file
examples/gallery/app/resource/qss/dark/sample_card.qss
浏览文件 @
550ccf7f
...
...
@@ -12,16 +12,16 @@ SampleCard:hover {
#titleLabel {
color: white;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
font-weight: bold;
}
#contentLabel {
color: rgb(208, 208, 208);
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
#viewTitleLabel {
color: white;
font: 20px "Segoe UI SemiBold", "Microsoft YaHei";
font: 20px "Segoe UI SemiBold", "Microsoft YaHei"
, 'PingFang SC'
;
}
\ No newline at end of file
examples/gallery/app/resource/qss/light/gallery_interface.qss
浏览文件 @
550ccf7f
...
...
@@ -30,7 +30,7 @@ ExampleCard > #card {
}
ExampleCard > #card QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
}
...
...
examples/gallery/app/resource/qss/light/icon_interface.qss
浏览文件 @
550ccf7f
...
...
@@ -6,7 +6,7 @@ IconCard {
IconCard > QLabel {
color: rgb(96, 96, 96);
font: 11px 'Segoe UI';
font: 11px 'Segoe UI'
, 'PingFang SC'
;
}
IconCard[isSelected=true] {
...
...
@@ -40,18 +40,18 @@ IconInfoPanel {
IconInfoPanel > #nameLabel {
font: 15px 'Segoe UI';
font: 15px 'Segoe UI'
, 'PingFang SC'
;
font-weight: bold;
color: black;
}
IconInfoPanel > #subTitleLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
}
IconInfoPanel > QLabel {
font: 12px 'Segoe UI';
font: 12px 'Segoe UI'
, 'PingFang SC'
;
color: rgb(96, 96, 96);
}
examples/gallery/app/resource/qss/light/link_card.qss
浏览文件 @
550ccf7f
...
...
@@ -10,12 +10,12 @@ LinkCard:hover {
}
#titleLabel {
font: 18px 'Segoe UI', 'Microsoft YaHei';
font: 18px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
}
#contentLabel {
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgb(93, 93, 93);
}
...
...
examples/gallery/app/resource/qss/light/navigation_view_interface.qss
浏览文件 @
550ccf7f
PivotInterface QLabel {
padding-left: 10px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
}
\ No newline at end of file
examples/gallery/app/resource/qss/light/sample_card.qss
浏览文件 @
550ccf7f
...
...
@@ -11,16 +11,16 @@ SampleCard:hover {
#titleLabel {
color: black;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
font-weight: bold;
}
#contentLabel {
color: rgb(118, 118, 118);
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
#viewTitleLabel {
color: black;
font: 20px "Segoe UI SemiBold", "Microsoft YaHei";
font: 20px "Segoe UI SemiBold", "Microsoft YaHei"
, 'PingFang SC'
;
}
\ No newline at end of file
qfluentwidgets/_rc/qss/dark/button.qss
浏览文件 @
550ccf7f
...
...
@@ -4,7 +4,7 @@ PushButton, ToolButton, ToggleButton, ToggleToolButton {
border-top: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 5px;
color: white;
/* font: 14px 'Segoe UI', 'Microsoft YaHei'; */
/* font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
; */
padding: 5px 12px 6px 12px;
outline: none;
}
...
...
@@ -124,7 +124,7 @@ PrimarySplitDropButton {
}
HyperlinkButton {
/* font: 14px 'Segoe UI', 'Microsoft YaHei'; */
/* font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
; */
padding: 5px 12px 6px 12px;
color: --ThemeColorPrimary;
border: none;
...
...
@@ -149,7 +149,7 @@ RadioButton {
min-height: 24px;
max-height: 24px;
background-color: transparent;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
}
...
...
qfluentwidgets/_rc/qss/dark/calendar_picker.qss
浏览文件 @
550ccf7f
#titleButton {
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
c
';
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
C
';
font-weight: 500;
color: white;
background-color: transparent;
...
...
@@ -23,7 +23,7 @@
}
#weekDayLabel {
font: 12px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
c
';
font: 12px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
C
';
font-weight: 500;
color: white;
background-color: transparent;
...
...
@@ -56,7 +56,7 @@ CalendarPicker {
border-top: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 5px;
color: rgba(255, 255, 255, 0.6063);
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 5px 32px 6px 12px;
outline: none;
text-align: left;
...
...
qfluentwidgets/_rc/qss/dark/check_box.qss
浏览文件 @
550ccf7f
CheckBox {
color: white;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
spacing: 8px;
min-width: 28px;
min-height: 22px;
...
...
qfluentwidgets/_rc/qss/dark/color_dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -27,7 +27,7 @@ QScrollArea {
}
QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
background-color: transparent;
border: none;
...
...
@@ -92,7 +92,7 @@ QSlider::handle:horizontal:disabled {
border-top: 1px solid rgb(53, 53, 53);
border-radius: 5px;
color: white;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 5px 9px 6px 9px;
outline: none;
}
...
...
qfluentwidgets/_rc/qss/dark/combo_box.qss
浏览文件 @
550ccf7f
...
...
@@ -3,7 +3,7 @@ ComboBox {
border-radius: 5px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
padding: 5px 31px 6px 11px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
/* font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC'; */
color: white;
background-color: rgba(255, 255, 255, 0.0605);
text-align: left;
...
...
qfluentwidgets/_rc/qss/dark/dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -28,18 +28,18 @@ QLabel {
}
QLabel#titleLabel {
font: 20px 'Segoe UI', 'Microsoft YaHei';
font: 20px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 0;
}
#contentLabel {
padding: 0;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
}
QLabel#windowTitleLabel {
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 6px 6px;
background-color: rgb(32, 32, 32);
}
...
...
@@ -50,7 +50,7 @@ QLabel#windowTitleLabel {
border-top: 1px solid rgb(53, 53, 53);
border-radius: 5px;
color: white;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 5px 9px 6px 9px;
}
...
...
qfluentwidgets/_rc/qss/dark/expand_setting_card.qss
浏览文件 @
550ccf7f
...
...
@@ -25,7 +25,7 @@ ExpandSettingCard[isExpand=true]>SettingCard {
}
QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
padding: 0;
background: transparent;
...
...
@@ -33,13 +33,13 @@ QLabel {
}
QLabel#contentLabel {
font: 11px 'Segoe UI', 'Microsoft YaHei';
font: 11px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgb(208, 208, 208);
padding: 0;
}
FolderItem>QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
/* QPushButton */
...
...
@@ -48,7 +48,7 @@ QPushButton {
border-radius: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 17);
padding: 5px 12px 5px 36px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
background-color: rgb(62, 63, 62);
}
...
...
@@ -75,7 +75,7 @@ ToolButton {
border: 1px solid rgba(255, 255, 255, 24);
border-radius: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 17);
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
background-color: rgb(62, 63, 62);
}
...
...
qfluentwidgets/_rc/qss/dark/folder_list_dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -15,17 +15,17 @@ QLabel {
}
QLabel#titleLabel {
font: 25px 'Segoe UI', 'Microsoft YaHei';
font: 25px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
QLabel#contentLabel {
font: 18px 'Segoe UI', 'Microsoft YaHei';
font: 18px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
QPushButton#completeButton {
background-color: rgb(51, 51, 51);
padding: 11px 64px 11px 64px;
font: 19px 'Segoe UI', 'Microsoft YaHei';
font: 19px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
height: 20px;
width: 55px;
...
...
qfluentwidgets/_rc/qss/dark/info_bar.qss
浏览文件 @
550ccf7f
...
...
@@ -12,7 +12,7 @@ InfoBar {
}
#contentLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
background-color: transparent;
}
...
...
qfluentwidgets/_rc/qss/dark/menu.qss
浏览文件 @
550ccf7f
/*设置菜单样式*/
QMenu {
background-color: rgb(43, 43, 43);
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 4px 0px 4px 0px;
border: 1px solid rgb(34, 34, 34);
color: white;
...
...
@@ -41,7 +41,7 @@ MenuActionListWidget {
border-radius: 9px;
background-color: rgb(43, 43, 43);
outline: none;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
MenuActionListWidget::item {
...
...
qfluentwidgets/_rc/qss/dark/message_dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -11,7 +11,7 @@ QWidget#windowMask {
QLabel {
background-color: transparent;
color: white;
font-family: 'Segoe UI', 'Microsoft YaHei';
font-family: 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
}
...
...
@@ -25,7 +25,7 @@ QLabel#contentLabel {
QPushButton {
background-color: rgb(51, 51, 51);
font: 15px 'Segoe UI', 'Microsoft YaHei';
font: 15px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: transparent;
color: white;
}
...
...
qfluentwidgets/_rc/qss/dark/setting_card.qss
浏览文件 @
550ccf7f
...
...
@@ -5,7 +5,7 @@ SettingCard {
}
QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
padding: 0;
border: none;
...
...
@@ -13,7 +13,7 @@ QLabel {
}
QLabel#contentLabel {
font: 11px 'Segoe UI', 'Microsoft YaHei';
font: 11px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgb(208, 208, 208);
padding: 0;
}
...
...
@@ -28,7 +28,7 @@ QPushButton {
border-radius: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 17);
padding: 5px 36px 5px 36px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
background-color: rgb(62, 63, 62);
}
...
...
qfluentwidgets/_rc/qss/dark/state_tool_tip.qss
浏览文件 @
550ccf7f
...
...
@@ -8,7 +8,7 @@ ToastToolTip {
QLabel {
color: black;
background-color: transparent;
font-family: 'Segoe UI', 'Microsoft YaHei';
font-family: 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
}
...
...
qfluentwidgets/_rc/qss/dark/switch_button.qss
浏览文件 @
550ccf7f
...
...
@@ -8,7 +8,7 @@ SwitchButton {
}
SwitchButton>QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
background-color: transparent;
border: none;
...
...
qfluentwidgets/_rc/qss/dark/table_view.qss
浏览文件 @
550ccf7f
...
...
@@ -2,7 +2,7 @@ QTableView {
background: transparent;
outline: none;
border: none;
/* font: 13px 'Segoe UI', 'Microsoft YaHei'; */
/* font: 13px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
; */
selection-background-color: transparent;
alternate-background-color: transparent;
}
...
...
@@ -81,7 +81,7 @@ QHeaderView::section {
padding-left: 5px;
padding-right: 5px;
border: 1px solid rgba(0, 0, 0, 57);
font: 13px 'Segoe UI', 'Microsoft YaHei';
font: 13px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
QHeaderView::section:horizontal {
...
...
qfluentwidgets/_rc/qss/dark/teaching_tip.qss
浏览文件 @
550ccf7f
...
...
@@ -6,7 +6,7 @@
}
#contentLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
background-color: transparent;
}
\ No newline at end of file
qfluentwidgets/_rc/qss/dark/time_picker.qss
浏览文件 @
550ccf7f
...
...
@@ -10,7 +10,7 @@ CycleListWidget {
border-top-left-radius: 7px;
border-top-right-radius: 7px;
outline: none;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
CycleListWidget::item {
...
...
@@ -46,11 +46,11 @@ SeparatorWidget {
}
ItemMaskWidget {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
PickerBase {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
background: rgba(255, 255, 255, 0.0605);
border: 1px solid rgba(255, 255, 255, 0.053);
border-top: 1px solid rgba(255, 255, 255, 0.08);
...
...
@@ -75,7 +75,7 @@ PickerBase:disabled {
}
#pickerButton {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgba(255, 255, 255, 0.786);
background-color: transparent;
border: none;
...
...
qfluentwidgets/_rc/qss/dark/tool_tip.qss
浏览文件 @
550ccf7f
...
...
@@ -10,7 +10,7 @@ ToolTip > #container {
QLabel {
background-color: transparent;
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: white;
border: none;
}
qfluentwidgets/_rc/qss/light/button.qss
浏览文件 @
550ccf7f
...
...
@@ -149,7 +149,7 @@ RadioButton {
min-height: 24px;
max-height: 24px;
background-color: transparent;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
}
...
...
qfluentwidgets/_rc/qss/light/calendar_picker.qss
浏览文件 @
550ccf7f
#titleButton {
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
c
';
font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
C
';
font-weight: 500;
color: black;
background-color: transparent;
...
...
@@ -23,7 +23,7 @@
}
#weekDayLabel {
font: 12px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
c
';
font: 12px 'Segoe UI', 'Microsoft YaHei', 'PingFang S
C
';
font-weight: 500;
color: black;
background-color: transparent;
...
...
@@ -56,7 +56,7 @@ CalendarPicker {
border: 1px solid rgba(0, 0, 0, 0.073);
border-bottom: 1px solid rgba(0, 0, 0, 0.183);
border-radius: 5px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 5px 32px 6px 12px;
outline: none;
text-align: left;
...
...
qfluentwidgets/_rc/qss/light/check_box.qss
浏览文件 @
550ccf7f
CheckBox {
color: black;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
spacing: 8px;
min-width: 28px;
min-height: 22px;
...
...
qfluentwidgets/_rc/qss/light/color_dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -25,7 +25,7 @@ QScrollArea {
}
QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
background-color: transparent;
border: none;
...
...
@@ -91,7 +91,7 @@ QSlider::handle:horizontal:disabled {
border: 1px solid rgb(229, 229, 229);
border-bottom: 1px solid rgb(204, 204, 204);
border-radius: 5px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 5px 9px 6px 9px;
outline: none;
}
...
...
qfluentwidgets/_rc/qss/light/combo_box.qss
浏览文件 @
550ccf7f
...
...
@@ -3,7 +3,7 @@ ComboBox {
border-radius: 5px;
border-bottom: 1px solid rgba(0, 0, 0, 0.183);
padding: 5px 31px 6px 11px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
/* font: 14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC'; */
color: black;
background-color: rgba(255, 255, 255, 0.7);
text-align: left;
...
...
qfluentwidgets/_rc/qss/light/dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -28,18 +28,18 @@ QLabel {
}
QLabel#titleLabel {
font: 20px 'Segoe UI', 'Microsoft YaHei';
font: 20px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 0;
}
#contentLabel {
padding: 0;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
}
QLabel#windowTitleLabel {
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 6px 6px;
background-color: rgb(243, 243, 243);
}
...
...
@@ -50,7 +50,7 @@ QLabel#windowTitleLabel {
border: 1px solid rgb(229, 229, 229);
border-bottom: 1px solid rgb(204, 204, 204);
border-radius: 5px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 5px 9px 6px 9px;
}
...
...
qfluentwidgets/_rc/qss/light/expand_setting_card.qss
浏览文件 @
550ccf7f
...
...
@@ -25,7 +25,7 @@ ExpandSettingCard[isExpand=true]>SettingCard {
}
QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
padding: 0;
background: transparent;
...
...
@@ -33,13 +33,13 @@ QLabel {
}
QLabel#contentLabel {
font: 11px 'Segoe UI', 'Microsoft YaHei';
font: 11px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgb(96, 96, 96);
padding: 0;
}
FolderItem>QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
/* QPushButton */
...
...
@@ -48,7 +48,7 @@ QPushButton {
border-radius: 5px;
border-bottom: 1px solid rgb(212, 213, 212);
padding: 5px 12px 5px 36px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
background-color: rgb(254, 254, 254);
}
...
...
@@ -75,7 +75,7 @@ ToolButton {
border: 1px solid rgb(238, 239, 238);
border-radius: 5px;
border-bottom: 1px solid rgb(212, 213, 212);
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
background-color: rgb(254, 254, 254);
}
...
...
qfluentwidgets/_rc/qss/light/folder_list_dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -15,18 +15,18 @@ QLabel {
}
QLabel#titleLabel {
font: 20px 'Segoe UI', 'Microsoft YaHei';
font: 20px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
QLabel#contentLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
QPushButton#completeButton {
color: black;
background-color: rgb(204, 204, 204);
padding: 9px 51px 9px 51px;
font: 15px 'Segoe UI', 'Microsoft YaHei';
font: 15px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
}
...
...
qfluentwidgets/_rc/qss/light/info_bar.qss
浏览文件 @
550ccf7f
...
...
@@ -12,7 +12,7 @@ InfoBar {
}
#contentLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
background-color: transparent;
}
...
...
qfluentwidgets/_rc/qss/light/menu.qss
浏览文件 @
550ccf7f
QMenu {
background-color: rgb(232, 232, 232);
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
padding: 4px 0px 4px 0px;
border: 1px solid rgb(200, 200, 200);
}
...
...
@@ -39,7 +39,7 @@ MenuActionListWidget {
border-radius: 9px;
background-color: rgb(249, 249, 249);
outline: none;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
MenuActionListWidget::item {
...
...
qfluentwidgets/_rc/qss/light/message_dialog.qss
浏览文件 @
550ccf7f
...
...
@@ -11,7 +11,7 @@ QWidget#windowMask {
QLabel {
background-color: transparent;
color: black;
font-family: 'Segoe UI', 'Microsoft YaHei';
font-family: 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
}
...
...
@@ -25,7 +25,7 @@ QLabel#contentLabel {
QPushButton {
background-color: rgb(204, 204, 204);
font: 15px 'Segoe UI', 'Microsoft YaHei';
font: 15px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: transparent;
}
...
...
qfluentwidgets/_rc/qss/light/setting_card.qss
浏览文件 @
550ccf7f
...
...
@@ -5,7 +5,7 @@ SettingCard {
}
QLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
padding: 0;
border: none;
...
...
@@ -13,7 +13,7 @@ QLabel {
}
QLabel#contentLabel {
font: 11px 'Segoe UI', 'Microsoft YaHei';
font: 11px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgb(96, 96, 96);
padding: 0;
}
...
...
@@ -28,7 +28,7 @@ QPushButton {
border-radius: 5px;
border-bottom: 1px solid rgb(212, 213, 212);
padding: 5px 36px 5px 36px;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
background-color: rgb(254, 254, 254);
}
...
...
qfluentwidgets/_rc/qss/light/state_tool_tip.qss
浏览文件 @
550ccf7f
...
...
@@ -8,7 +8,7 @@ ToastToolTip {
QLabel {
color: white;
background-color: transparent;
font-family: 'Segoe UI', 'Microsoft YaHei';
font-family: 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
}
...
...
qfluentwidgets/_rc/qss/light/switch_button.qss
浏览文件 @
550ccf7f
...
...
@@ -9,7 +9,7 @@ SwitchButton {
SwitchButton>QLabel {
color: black;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
background-color: transparent;
border: none;
}
...
...
qfluentwidgets/_rc/qss/light/table_view.qss
浏览文件 @
550ccf7f
...
...
@@ -82,7 +82,7 @@ QHeaderView::section {
padding-left: 5px;
padding-right: 5px;
border: 1px solid rgba(0, 0, 0, 19);
font: 13px 'Segoe UI', 'Microsoft YaHei';
font: 13px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
QHeaderView::section:horizontal {
...
...
qfluentwidgets/_rc/qss/light/teaching_tip.qss
浏览文件 @
550ccf7f
...
...
@@ -6,7 +6,7 @@
}
#contentLabel {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: black;
background-color: transparent;
}
\ No newline at end of file
qfluentwidgets/_rc/qss/light/time_picker.qss
浏览文件 @
550ccf7f
...
...
@@ -10,7 +10,7 @@ CycleListWidget {
border-top-left-radius: 7px;
border-top-right-radius: 7px;
outline: none;
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
CycleListWidget::item {
...
...
@@ -46,11 +46,11 @@ SeparatorWidget {
}
ItemMaskWidget {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
}
PickerBase {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
background: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(0, 0, 0, 0.073);
border-bottom: 1px solid rgba(0, 0, 0, 0.183);
...
...
@@ -74,7 +74,7 @@ PickerBase:disabled {
}
#pickerButton {
font: 14px 'Segoe UI', 'Microsoft YaHei';
font: 14px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
color: rgba(0, 0, 0, 0.6);
background-color: transparent;
border: none;
...
...
qfluentwidgets/_rc/qss/light/tool_tip.qss
浏览文件 @
550ccf7f
...
...
@@ -11,7 +11,7 @@ ToolTip > #container {
QLabel {
background-color: transparent;
font: 12px 'Segoe UI', 'Microsoft YaHei';
font: 12px 'Segoe UI', 'Microsoft YaHei'
, 'PingFang SC'
;
border: none;
color: black;
}
qfluentwidgets/_rc/resource.py
浏览文件 @
550ccf7f
此差异已折叠。
点击以展开。
qfluentwidgets/components/widgets/combo_box.py
浏览文件 @
550ccf7f
...
...
@@ -10,6 +10,7 @@ from .line_edit import LineEdit, LineEditButton
from
...common.animation
import
TranslateYAnimation
from
...common.icon
import
FluentIconBase
,
isDarkTheme
from
...common.icon
import
FluentIcon
as
FIF
from
...common.font
import
setFont
from
...common.style_sheet
import
FluentStyleSheet
...
...
@@ -338,6 +339,7 @@ class ComboBox(QPushButton, ComboBoxBase):
def
__init__
(
self
,
parent
=
None
):
super
().
__init__
(
parent
=
parent
)
self
.
arrowAni
=
TranslateYAnimation
(
self
)
setFont
(
self
)
def
setPlaceholderText
(
self
,
text
:
str
):
self
.
setText
(
text
)
...
...
qfluentwidgets/components/widgets/menu.py
浏览文件 @
550ccf7f
...
...
@@ -135,7 +135,7 @@ class MenuActionListWidget(QListWidget):
self
.
scrollDelegate
=
SmoothScrollDelegate
(
self
)
self
.
setStyleSheet
(
'MenuActionListWidget{font: 14px "Segoe UI", "Microsoft YaHei"}'
)
'MenuActionListWidget{font: 14px "Segoe UI", "Microsoft YaHei"
, "PingFang SC"
}'
)
self
.
setVerticalScrollBarPolicy
(
Qt
.
ScrollBarAlwaysOff
)
self
.
setHorizontalScrollBarPolicy
(
Qt
.
ScrollBarAlwaysOff
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录