-
2 Nov 2012 3:27 AM #1
Unanswered: Theme image not found, when button has no rounded-borders
Unanswered: Theme image not found, when button has no rounded-borders
I want green not rounded button and create custom UI.
Then I build theme using compass compile. But warnings like this appears in progress:PHP Code:@include extjs-button-ui(
/* UI + Scale */ 'green-button-medium',
// ...
//colors, fonts, padding
// ...
$border-radius: 0px
);
This sprites doesn't need because this button hasn't rounded borders, but compass still write it. Built theme works correct but because of this warnings I may miss something really important.PHP Code:WARNING: @theme-background-image: Theme image not found: ../images/btn/btn-green-button-medium-pressed-corners.gif
on line 18 of ../../ext/resources/themes/stylesheets/ext4/default/mixins/_theme-background-image.scss
I slice theme on sptites by sencha cmd, but these files still missing. How to hide or fix it?
-
5 Nov 2012 6:25 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,085
- Vote Rating
- 453
- Answers
- 3153
It will try to use the theme-background-image mixin only if $supports-border-radius and $compile-all variables are set to true, which they are by default. It does not go off the border radius you provide.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
6 Nov 2012 1:30 AM #3
It works good as temporary solution, but how do I be sure that $compile-all=false doesn't break something else?
Why not add to extjs-button-ui mixin config $frame, which will handle framing and rounded-borders?


Reply With Quote