FluentWinUI3 风格
FluentWinUI3 风格是一种现代的本地外观风格,专为运行 Windows 11 及以上版本的平台而设计。更多
导入声明: | 导入 QtQuick.Controls.FluentWinUI3 |
自 | Qt 6.8 |
详细说明
FluentWinUI3 风格从 Fluent UI 设计和 WinUI3 框架中汲取灵感。它利用图像资产来处理大部分视觉元素,同时遵循 Windows 系统和调色板上配置的全局主题颜色。
FluentWinUI3 风格不是本地风格,可以在所有支持的平台上运行,在任何地方看起来都大致相同。由于可用系统字体和字体渲染引擎的不同,可能会出现细微差别。
FluentWinUI3 风格的浅色主题。 | FluentWinUI3 风格的深色主题。 |
要使用 FluentWinUI3 风格运行应用程序,请参阅 Qt Quick Controls 中的 "使用风格"。
当前状态
FluentWinUI3 样式正在开发中,某些控件尚不支持。这些控件是Dial,Drawer,HorizontalHeaderView,SplitView,StackView,SwipeDelegate,SwipeView,TreeViewDelegate,Tumbler, 和VerticalHeaderView 。这些控件将退回到使用Fusion 风格。
自定义
调色板
FluentWinUI3 风格支持通过palette 属性和qtquickcontrols2.conf文件自定义调色板。与其他样式一样,FluentWinUI3 样式使用的palette roles 具体取决于样式。
注意: 由于该样式包含图像资产,控件的某些元素可能无法自定义。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.