![](/img/trans.png)
[英]Changing Font style in qtquickcontrols2.conf file in Qt 5.9.1
[英]How to define the color's shade in qtquickcontrols2.conf?
我試圖在qtquickcontrols2.conf
文件中定義我的應用程序的樣式,如下所示:
[Controls]
Style=Material
[Material]
Theme=Light
Variant=Dense
Accent=DeepOrange
Primary=Indigo
Foreground=Blue
Background=Grey
對於四種顏色( Accent
、 Primary
、 Foreground
和Background
)中的每一種,我還想指定陰影。 但是我找不到我應該使用的語法。
這是可能的嗎?
目前是不可能的。 您可以在根對象上設置它:
ApplicationWindow {
// ...
Material.foreground: Material.color(Material.Blue, Material.ShadeA100)
}
這將傳播到應用程序中的所有其他控件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.