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 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,556
    Answers
    3931
    Vote Rating
    1272
      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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  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,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

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

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •