AIR Custom Chrome v.03

It’s been a while since I released a new version of my AIR Custom Chrome, so I thought I would update it with a couple new features. I won’t get into the theory behind these enhancements just yet. But I wanted to release this to the public and get your thoughts. Keep in mind that I am not an engineer, just a designer that loves to tinker. So you may find some glitches (other features). Special thanks goes out to Daniel Wabyick who first introduced me to this approach.

  1. OS specific windowing controls - Detects the operating system and places the windowing controls in the appropriate location.
  2. Light & dark themes - Right click to “View Source” to view the project source files.
  3. Synchronization - Click on the status icon/Led to change the state of the connection icon. You can spawn the synchronization preferences HUD by clicking on the general area.
AIR Custom Chrome v.03-light
AIR Custom Chrome v.03-dark

*The “Source” is available by right-clicking and selecting ‘view-source’ in the application.**This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

14 Responses to “AIR Custom Chrome v.03”

  1. John Harding Says:

    Wow… sweet skin. Inspires me to build some random app just so I can use it :P

  2. Brett Says:

    Thanks John.

  3. Wael Jammal Says:

    Very nice going to use this for a current project :) will have to modify colors slightly for my style but you’ve made that easy enough to do :)

  4. Brett Says:

    Thanks Wael. Feel free to expand upon these examples. Consider these a starting point to get you up and running with relative ease. Shoot me a link if to your project when it’s appropriate. Take care.

  5. Saeed Ashour Says:

    i installed the air apps and i can not find the source of it , how i can use this apps?

  6. Brett Says:

    Hi, Saeed:

    You will have to “Right-Cick” and select “View Source”. This will then spawn the source view of the applications. At which time you then “Download Source”

    ** One thing to note. It seems as though the full source is available in the “Dark” theme.

  7. lib Says:

    ypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.xd.components.chrome::AppControlBar_light/detectOS()[D:\E_AIR\A_CustomChrome\src\com\xd\components\chrome\AppControlBar_light.mxml:19]

    repair to ===>

    private function detectOS():void {
    if(Capabilities.os.search(”Mac”) >= 0){
    trace(”I am on a Mac”);
    whichControls.selectedIndex = 0;
    macWindowControls.visible = true;
    } else {
    if(winWindowControls){ //

  8. bobo Says:

    I have installed the dark version but there is error there is an error when i try to download the source. Page error and cant find the download. Any ideas?

  9. Brett Says:

    HI, Bobo & Lib:

    Lib - Thanks for the code suggestion, I will look into this when I come up for air ;)

    Bobo - Not sure why you are having this issue. I will troubleshoot and see if I can recreate this error. If you could provide me with a bit more info on your OS, version of AIR, etc.. I will try and recreate this error and make the necessary adjustments.

    Thanks everyone!

  10. marcelo Says:

    @lib with your code correction the winWindowControls never shows up.
    I did this:
    private function detectOS():void {
    if(Capabilities.os.search(”Mac”) >= 0){
    trace(”I am on a Mac”);
    whichControls.selectedIndex = 0;
    macWindowControls.visible = true;
    } else {
    var winWindowControls:AppWindowControls = new AppWindowControls();
    winApplicationBar.addChild(winWindowControls);
    trace(”I am on a PC”);
    whichControls.selectedIndex = 1;
    winWindowControls.visible = true;
    }
    }

    and commented out
    and it works fine.

    thanks Brett

  11. Brett Says:

    Thanks for feedback and code snippets. I will make sure to adjust this in my project. Thanks again everyone!

  12. Patrick Says:

    thank you for the excellent example! Can you tell me how this would work in a multi-window application? I want to try adding “heads-up display” type tool palettes which would have a width below the minimum allowed OS width (they need to be 20px or so). I know I can do that with a transparent window, but is there a way using your elegant method to give it “chrome” consistent with the main window?

  13. Jason Says:

    Great apps! I tried downloading the Source from both versions and got an error. It was looking for the source files as if they were on my C drive instead of from a URL.

  14. Jash Sayani Says:

    Amazing Chromes !! I am a designer myself and have made my own chrome, but don’t know how to implement it perfectly, so I will be going through your code :)

    And Nice blog, love it!

Leave a Reply

Comment spam protected by SpamBam