gpt4 book ai didi

extjs - 如何使用 Compass/Saas 在 Extjs 中自定义工具栏按钮?

转载 作者:行者123 更新时间:2023-12-03 22:04:23 25 4
gpt4 key购买 nike

我想使用 Compass/Sass 在 Extjs 中自定义工具栏按钮主题,以消除渐变效果。

@include extjs-button-ui(
'my_button',

$background-gradient:null,
$background-gradient-over:null,
$background-gradient-focus:null,
$background-gradient-pressed:null,
$background-gradient-disabled: null
);

但它返回 compass 编译错误:
WARNING: @theme-background-image: Theme image not found: ../images/btn/btn-topbar_button-corners.gif
on line 18 of /Users/user/Documents/workspace/sihalon/war/extjs/resources/themes/stylesheets/ext4/default/mixins/_theme-background-image.scss

WARNING: @theme-background-image: Theme image not found: ../images/btn/btn-topbar_button-sides.gif
on line 18 of /Users/user/Documents/workspace/sihalon/war/extjs/resources/themes/stylesheets/ext4/default/mixins/_theme-background-image.scss

error my-ext-theme.scss (Line 693 of _button.scss: Invalid null operation: "null plus 4px".)
overwrite ../css/my-ext-theme.css

最佳答案

你必须把

$icon-size:16px,

例如:
@include extjs-button-ui(
'yellow',
$background-color:yellow,
$icon-size:16px,
$font-size:18px
);

关于extjs - 如何使用 Compass/Saas 在 Extjs 中自定义工具栏按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12653692/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com