Results 1 to 4 of 4

Thread: Lost features with switch to icon fonts

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    443
    Answers
    5
    Vote Rating
    18
      0  

    Default Unanswered: Lost features with switch to icon fonts

    With the switch in ST2.2 from icon images to fonts, is there any way to have:

    • transparency? In 2.1 you could use an image like this Transparency-tile.png, with some transparent parts. Is it possible to do this with fonts?
    • gradient colors? In 2.1 the examples used gradients, but now they're all flat.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,318
    Answers
    3883
    Vote Rating
    1291
      0  

    Default

    Transparency is easy. A font is really just a transparent background with what you want to be part of the font be black is probably the best way to think about it. So the text you are reading here, the black is the font, the white background is transparent so if you made the <div> containing text have background color as red, everywhere the red is is a transparency in the font. If you use iconCls : 'home' the windows are a transparent section where the black just wasn't put.

    Gradient I haven't tried. Doing a quick google search there are some work arounds if the CSS color rule doesn't accepts gradient... I've personally never tried.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    443
    Answers
    5
    Vote Rating
    18
      0  

    Default

    Thanks. Actually I meant to say opacity, or partial transparency. For example, in the image I linked to, two of the squares are partially transparent, so you can see some of the background behind them.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,318
    Answers
    3883
    Vote Rating
    1291
      0  

    Default

    I see... that may have been lost
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •