我正在尝试制作自己的自定义主题,为此我导入了 Base 主题。
我正在尝试将图标添加到这样的按钮:
{
xtype: 'button',
align : 'left',
name : 'btnName',
iconCls : 'team',
iconMask: 'true'
}
该图标未显示,但如果我使用默认主题,它们就会显示。而且我已经将变量 $include-default-icons 设置为 true。
我的自定义按钮:
@mixin modus-button($color) {
@include transition(all .25s ease);
@include border-radius(6px);
margin-bottom: 15px;
font-size: 15px;
background: $color;
border: none;
color: white;
text-decoration: none;
.x-button-label {
padding: 10px 0;
}
&.x-button-pressing {
background: darken($color, 10);
}
// Default icon style
.x-button-icon {
width: 1.5em;
height: 1.5em;
&:before {
font-size: 1.6em;
line-height: 1em;
}
}
}
我应该添加什么来显示带有基本主题的图标?