我正在创建一个应用,我希望主页上的按钮应该是蓝色。因为我使用了background_normal:' somepngfile.png'。但是当我运行代码时它是完全白色的。可能是什么问题呢?为什么它的白色,我该如何纠正它?
<MenuPage>:
Image:
size_hint:.90,.10
source:'BackBlue.png'
Label:
text: "Vocabulary Journal"
size_hint: .90,.10
StackLayout:
orientation: 'tb-rl'
spacing: 10
padding: 10
Button:
text: 'Search'
size_hint: None,.20
width: 130
background_down:'BlueShadeDot.png'
background_normal: 'NightSky.png'
on_press: root.manager.current='display'
Button:
text: 'New Word'
size_hint: None,.20
width: 130
background_down:'BlueShadeDot.png'
background_normal: 'NightSky.png'
on_press: root.manager.current='newword'
Button:
text: 'Flash Cards'
size_hint: None,.20
width: 130
background_down:'BlueShadeDot.png'
background_normal: 'NightSky.png'
on_press: root.manager.current='flashcard'
on_release:FlashCard.Iterate_buttons()
Button:
text: 'Word Groups'
size_hint: None,.20
width: 130
background_down:'BlueShadeDot.png'
background_normal: 'NightSky.png'
on_press: root.manager.current='wordgroup'
我正在使用的图像是
但按钮完全是白色