Skip to main content

Bigger "traffic lights"?

Comments

8 comments

  • Nuno

    Hi, and thank you for getting back!

    Yes, actually there are some size constraints imposed by the system - for the "regular sized" titlebar button, the button must fit inside a 16x16 pixels square. Flavours provides a circle path smaller than this, to reflect the original/default buttons and to accommodate a possible outer shadow. However, you can bypass this smaller circle path limitation if you draw using image layers (instead of fill/stroke/... layers), which will be able to use the full 16x16 size! There are some themes on the Flavours Store that uses images for the titlebar buttons, either to get a different size or shape (e.g., "System 7", "Siro").

    Hope this helps!

    Best regards and happy theming,

    Nuno 

    0
  • A Geenzian Scientist

    Oh, wonderful! How about for retina displays?  I assume I can just toss in a 32x32 image per traffic light and call it a day?

    0
  • Nuno
    You are absolutely right! The retina version is exactly 2x bigger. For supporting retina graphics I suggest to follow the trick described in the article below (in this case would consist in having both a 16x16 and a 32x32 versions): https://interacto.zendesk.com/entries/23317033-Retina-ready-flavours Happy theming! Nuno
    0
  • A Geenzian Scientist

    I'm assuming that with 16x16 image buttons, the traffic lights shouldn't quite look like they do in the attached image.




    Screen Shot 2014-01-17 at 7.08.20 PM.png
    0
  • Nuno

    Hi,

    I'm really sorry about this. I double-checked this and, although the system files are properly generated (see attached image), the system is actually cropping the titlebar buttons when drawing, so we will really have to stick with the default size. I don't remember of this cropping occurring on previous version of OS X, but maybe I'm mistaken...

    Again, sorry for giving you a bad answer!

    Best regards,

    Nuno




    titlebar-bt.png
    0
  • A Geenzian Scientist

    Seems that 14x14 works.




    Screen Shot 2014-01-18 at 1.48.25 PM.png
    0
  • A Geenzian Scientist

    This is as of OS X 10.9 by the way.  Dunno about 10.8 or 10.7.

    0
  • Nuno

    Thank you so much for the update! Yes, I do believe the 14x14 size works for 10.7-10.9.

    Nuno

    0

Please sign in to leave a comment.

Powered by Zendesk