Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
50200984
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看板
提交
50200984
编写于
8月 02, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加旋转框不透明属性 (#402)
上级
878981f0
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
93254 addition
and
93296 deletion
+93254
-93296
examples/spin_box/demo.py
examples/spin_box/demo.py
+4
-2
qfluentwidgets/_rc/qss/dark/spin_box.qss
qfluentwidgets/_rc/qss/dark/spin_box.qss
+13
-5
qfluentwidgets/_rc/resource.py
qfluentwidgets/_rc/resource.py
+93236
-93289
qfluentwidgets/components/widgets/spin_box.py
qfluentwidgets/components/widgets/spin_box.py
+1
-0
未找到文件。
examples/spin_box/demo.py
浏览文件 @
50200984
...
...
@@ -3,13 +3,16 @@ import sys
from
PyQt5.QtCore
import
Qt
from
PyQt5.QtWidgets
import
QApplication
,
QWidget
,
QVBoxLayout
from
qfluentwidgets
import
SpinBox
,
DoubleSpinBox
,
DateTimeEdit
,
DateEdit
,
TimeEdit
from
qfluentwidgets
import
SpinBox
,
DoubleSpinBox
,
DateTimeEdit
,
DateEdit
,
TimeEdit
,
setTheme
,
Theme
class
Demo
(
QWidget
):
def
__init__
(
self
):
super
().
__init__
()
# setTheme(Theme.DARK)
self
.
setStyleSheet
(
'Demo{background: rgb(255, 255, 255)}'
)
self
.
vBoxLayout
=
QVBoxLayout
(
self
)
self
.
spinBox
=
SpinBox
(
self
)
...
...
@@ -19,7 +22,6 @@ class Demo(QWidget):
self
.
doubleSpinBox
=
DoubleSpinBox
(
self
)
self
.
resize
(
500
,
500
)
self
.
setStyleSheet
(
'Demo{background: white}'
)
self
.
vBoxLayout
.
setContentsMargins
(
100
,
50
,
100
,
50
)
self
.
vBoxLayout
.
addWidget
(
self
.
spinBox
)
...
...
qfluentwidgets/_rc/qss/dark/spin_box.qss
浏览文件 @
50200984
...
...
@@ -22,11 +22,11 @@ TimeEdit:hover {
background-color: rgba(255, 255, 255, 0.0837);
}
SpinBox:focus,
DoubleSpinBox:focus,
DateEdit:focus,
DateTimeEdit:focus,
TimeEdit:focus{
SpinBox
[transparent=true]
:focus,
DoubleSpinBox
[transparent=true]
:focus,
DateEdit
[transparent=true]
:focus,
DateTimeEdit
[transparent=true]
:focus,
TimeEdit
[transparent=true]
:focus{
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
background-color: rgba(30, 30, 30, 0.7);
}
...
...
@@ -41,6 +41,14 @@ TimeEdit:disabled{
border: 1px solid gba(255, 255, 255, 0.0698);
}
SpinBox[transparent=false]:focus,
DoubleSpinBox[transparent=false]:focus,
DateEdit[transparent=false]:focus,
DateTimeEdit[transparent=false]:focus,
TimeEdit[transparent=false]:focus {
background: rgb(31, 31, 31);
}
SpinButton {
background-color: transparent;
border-radius: 4px;
...
...
qfluentwidgets/_rc/resource.py
浏览文件 @
50200984
此差异已折叠。
点击以展开。
qfluentwidgets/components/widgets/spin_box.py
浏览文件 @
50200984
...
...
@@ -59,6 +59,7 @@ class SpinBoxBase:
def
__init__
(
self
,
parent
=
None
):
super
().
__init__
(
parent
=
parent
)
self
.
setProperty
(
'transparent'
,
True
)
FluentStyleSheet
.
SPIN_BOX
.
apply
(
self
)
self
.
setButtonSymbols
(
QSpinBox
.
NoButtons
)
self
.
setFixedHeight
(
33
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录