Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否增加一个对话框的TitleBar组件 #619

Open
qianye216 opened this issue Nov 13, 2023 · 2 comments
Open

能否增加一个对话框的TitleBar组件 #619

qianye216 opened this issue Nov 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@qianye216
Copy link

大佬你好,看到你昨天更新的Label可以跟随主题色变更颜色,但是在部分场景下我这里仍然需要自己编写暗色和浅色模式下label的qss样式。
例如,我点击一个按钮弹出的FramelessDialog对话框,通过继承TitleBar来设置对话框的标题,但是TitleBar的titlelabel标签是QLabel,无法跟随主题色进行更新。
另外我发现有FluentTitleBar,这个可以跟随主题色,但是如果标题栏继承这个的话,标题会相对右侧的最小化最大化关闭按钮偏下了,没有水平居中对齐,所以大佬能否针对对话框增加一个如“FluentDialogTitleBar”,这样对话框就不用自己编写QSS样式就能跟随主题色切换了。
image

@zhiyiYo
Copy link
Owner

zhiyiYo commented Nov 13, 2023

FluentTitleBar是给FluentWindow设计的,所以一般不能直接拿来用

@zhiyiYo zhiyiYo added the enhancement New feature or request label Nov 21, 2023
@zhiyiYo
Copy link
Owner

zhiyiYo commented Nov 21, 2023

v1.4.0 可以加一个 TitleBar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants