2

我正在尝试制作自己的自定义主题,为此我导入了 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;
        }
    }
}

我应该添加什么来显示带有基本主题的图标?

4

1 回答 1

1

尝试包括图标

@include icon('team');

还请查看以下有用的链接

2.1 中的几个 pictos 图标在 2.2 中不可用

Sencha Touch 2.2 添加自定义字体图标

于 2013-06-20T12:05:52.480 回答