アプリケーションのビューを作成するために enaml を使用しようとしています。Window ウィジェットの背景色を設定する方法を知りたいです。ウィンドウ内にあるものの色を設定するためにスタイルシートを使用できることがわかりましたが、ウィンドウの色を設定する方法が見つからないようです。
enamldef Main(MainWindow):
StyleSheet:
Style:
element = 'PushButton'
Setter:
field = 'background'
value = 'indianred'
title << ""
initial_size = (1000,500)
initial_position = (300,150)
icon = loadIcon(normpath('TitleIcon.png'))
visible = True
always_on_top = True
style_class << "WindowStyle"
MyMenuBar:
pass
Container:
#constraints = [vbox(label, label, spacing=0)]
PushButton:
text = "one"
pass