Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
0f64d785
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看板
提交
0f64d785
编写于
4月 22, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复颜色对话框弹出时样式失效的问题
上级
70cde007
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
4 deletion
+8
-4
examples/gallery/app/view/dialog_interface.py
examples/gallery/app/view/dialog_interface.py
+0
-1
qfluentwidgets/components/dialog_box/color_dialog.py
qfluentwidgets/components/dialog_box/color_dialog.py
+8
-1
qfluentwidgets/components/settings/custom_color_setting_card.py
...twidgets/components/settings/custom_color_setting_card.py
+0
-1
qfluentwidgets/components/settings/setting_card.py
qfluentwidgets/components/settings/setting_card.py
+0
-1
未找到文件。
examples/gallery/app/view/dialog_interface.py
浏览文件 @
0f64d785
...
...
@@ -63,6 +63,5 @@ class DialogInterface(GalleryInterface):
def
showColorDialog
(
self
):
w
=
ColorDialog
(
Qt
.
cyan
,
self
.
tr
(
'Choose color'
),
self
.
window
())
w
.
updateStyle
()
w
.
colorChanged
.
connect
(
lambda
c
:
print
(
c
.
name
()))
w
.
exec
()
\ No newline at end of file
qfluentwidgets/components/dialog_box/color_dialog.py
浏览文件 @
0f64d785
...
...
@@ -238,7 +238,7 @@ class ColorDialog(MaskDialogBase):
self
.
oldColorCard
.
move
(
288
,
self
.
newColorCard
.
geometry
().
bottom
()
+
1
)
self
.
brightSlider
.
move
(
0
,
324
)
self
.
editLabel
.
move
(
0
,
38
1
)
self
.
editLabel
.
move
(
0
,
38
5
)
self
.
redLineEdit
.
move
(
0
,
426
)
self
.
greenLineEdit
.
move
(
0
,
470
)
self
.
blueLineEdit
.
move
(
0
,
515
)
...
...
@@ -320,6 +320,13 @@ class ColorDialog(MaskDialogBase):
self
.
setStyle
(
QApplication
.
style
())
self
.
titleLabel
.
adjustSize
()
self
.
editLabel
.
adjustSize
()
self
.
redLabel
.
adjustSize
()
self
.
greenLabel
.
adjustSize
()
self
.
blueLabel
.
adjustSize
()
def
showEvent
(
self
,
e
):
self
.
updateStyle
()
super
().
showEvent
(
e
)
def
__connectSignalToSlot
(
self
):
""" connect signal to slot """
...
...
qfluentwidgets/components/settings/custom_color_setting_card.py
浏览文件 @
0f64d785
...
...
@@ -125,7 +125,6 @@ class CustomColorSettingCard(ExpandGroupSettingCard):
""" show color dialog """
w
=
ColorDialog
(
qconfig
.
get
(
self
.
configItem
),
self
.
tr
(
'Choose color'
),
self
.
window
())
w
.
updateStyle
()
w
.
colorChanged
.
connect
(
self
.
__onCustomColorChanged
)
w
.
exec
()
...
...
qfluentwidgets/components/settings/setting_card.py
浏览文件 @
0f64d785
...
...
@@ -289,7 +289,6 @@ class ColorPickerButton(QToolButton):
""" show color dialog """
w
=
ColorDialog
(
self
.
color
,
self
.
tr
(
'Choose '
)
+
self
.
title
,
self
.
window
())
w
.
updateStyle
()
w
.
colorChanged
.
connect
(
self
.
__onColorChanged
)
w
.
exec
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录