Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Creative Suite Developer Center / Creative Suite Extension Builder /

Skinning Creative Suite extensions

by Lea Savage

Lea Savage

Content

  • Creative Suite extension theme
  • Retrieving host application skinning information
  • Loading style sheets at run time
  • Where to go from here

Created

10 May 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
CS Extension Builderextensibilityskinning
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

Requirements

Prerequisite knowledge

You should be familiar with developing Creative Suite extensions and using Creative Suite Extension Builder. It is also beneficial to have some understanding of the current skinning capabilities in Flex.

 

Additional required product

  •  At least one Creative Suite 5 (or later) product

User level

Beginning

Required products

  • Flash Builder 4.7 Standard (Download trial)
  • CS Extension Builder (Download trial)

If you have an extension that runs in a number of Creative Suite applications and works cross-platform, you might notice that the appearance of the application UI differs and the extension can seem a little out of place in different products and platforms. This article outlines some of the ways that you can apply skinning to your extension using data returned by the host application.

Creative Suite extension theme

CS Extension Builder includes a CS theme that you can apply to your extension. The theme uses some of the common Creative Suite UI properties and helps provide a consistent look for the extension in each CS application, regardless of platform.

To apply this theme to your extension, select the project in CS Extension Builder, and choose Project > Properties > Flex Theme > Adobe Themes – Creative Suite Extension Builder > Creative_Suite_CS5. Here's an example of how the CS theme looks.

Figure 1. HelloWorld extension
Figure 1. HelloWorld extension

Retrieving host application skinning information

The AppSkinInfo class in the CSXSLibrary provides UI information about a Creative Suite application. When you call this class, the information returned can vary between applications and platforms. By retrieving the AppSkinInfo object, you can adjust the UI properties at run time.

To add the CSXSLibrary to your project in CS Extension Builder select Project > Properties > CS Extension Builder Libraries > and select Adobe CSXS SWC.

For example, this code allows you to apply a different font family to text, depending on whether the extension is running in Mac OS or in Windows:

Figure 2. HelloWorld running in Illustrator CS5.5 on Mac OS
Figure 2. HelloWorld running in Illustrator CS5.5 on Mac OS
Figure 3. HelloWorld running in Illustrator CS5.5 on Windows
Figure 3. HelloWorld running in Illustrator CS5.5 on Windows

The sample CSExtBasics further demonstrates how to apply style properties to your extension using the data returned from AppSkinInfo. To access this sample in CS Extension Builder, choose File > Import > Adobe Creative Suite Extension Builder > Remote Creative Suite SDK Examples.

Loading style sheets at run time

In Flex, you can apply style sheets, which Flex refers to as skins, to a Flash panel. This section outlines how to apply a Flex skin to a Creative Suite extension.

Flex allows you to load style sheets at run time and apply the styles dynamically to your UI; see Loading style sheets at run time in Flex documentation for further information. Each style sheet is a compiled Flash file (SWF).

To apply a style sheet as a skin to an extension's panel, first you have to load it into your extension. Here is a loadStyleSheet() function that retrieves a given style-sheet SWF: 

private function loadStyleSheet(stylesheet:String):void { var path:String = CSXSInterface.getInstance(). getSystemPath(SystemPath.APPLICATION).data + stylesheet; var f:File = new File(path); StyleManager.loadStyleDeclarations("app://" + f.nativePath); }

Each skin is represented by a different style-sheet SWF. For example, you might have a skin to use in Windows and another to use in Mac OS; or you might have different skins for different target products. You can load the style sheet you need based on the product and platform.

For example, here's a code snippet that loads platform-specific versions of a style sheet for Photoshop, and a third version for any other target product:

if (hostName.indexOf('photoshop') > -1) { var os:String = Capabilities.os.toLowerCase(); if (os.indexOf("windows") > -1) loadStyleSheet("/assets/windowPSStyles.swf"); else loadStyleSheet("/assets/macPSStyles.swf"); } else { loadStyleSheet("/assets/genericStyles.swf"); }

Figure 4 shows different skins applied to the same extension. The image on the left shows the genericStyles.swf. In the center is an example of the extension running in Photoshop CS5 in Mac OS. The image on the right shows the extension running in Photoshop CS5 in Windows.

Figure 4. Different skins applied to the same extension
Figure 4. Different skins applied to the same extension

Where to go from here

This article shows how you can apply skinning to your Creative Suite extension for a consistent look and feel across platforms and applications. Using a combination of the AppSkinInfo data and Flex skins, you can dynamically change the UI of the extension to support the different CS applications and platforms.

For more information about skinning, refer to the Flex Documentation.

For the Flex skins used in this article, see http://fleksray.org/Flex_skin.html

  • Extension Builder Forum
  • CS SDK Forum

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Developing extensions for multiple versions of the Creative Suite
  • So you want to sell your Creative Suite extensions?
  • Developing hybrid extensions with Creative Suite Extension Builder
  • Debugging Workflows in Creative Suite Extension Builder
  • Overview of Adobe Creative Suite Extensibility
  • Handling XMP Metadata with Creative Suite Extension Builder
  • Developing multiple Creative Suite extensions
  • Adobe Creative Suite image conversion utility
  • Introducing CS Extension Builder 1.5

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement