使用角度材料
md-colors
,是否可以将背景设置为白色而无需定义自定义白色托盘?
我以为我可以使用灰色托盘,因为documentation说:@H_404_3@
background – grey (note that white is in this palette)@H_404_3@
所以我尝试了@H_404_3@
<div md-colors="{background: 'grey-50'}">
但灰色50仍然只是浅灰色,而不是白色.@H_404_3@
我试过< div layout-padding md-colors =“{background:'white'}”>但是白色托盘似乎不存在于有角度的材料中.
我得到错误angular.js:13711 mdColors:在调色板中找不到’white’,因为没有白色托盘.@H_404_3@
有没有办法从灰色托盘中获取白色? (色调,不透明度等)@H_404_3@
解决方法
您可以在
the theme file中找到源中的所有调色板及其颜色.
它应该是A100但我还没试过.@H_404_3@
<div md-colors="{background: 'grey-A100'}">