SlideShare a Scribd company logo
1 of 29
http://feathersui.com/download/
button1.styleProvider = buttonStyles; 
button2.styleProvider = buttonStyles;
Button.globalStyleProvider = 
new FunctionStyleProvider( skinButton );
Theme 
• Passes global style 
provider to 
component class. 
Component 
• Defaults to global 
style provider in 
constructor. 
Component 
• Initializes when 
added to stage. 
Component 
• Calls applyStyles() on 
style provider. 
Style Provider 
• Sets properties on 
component.
var button1:Button = new Button(); 
button1.label = "Cancel"; 
// no style name 
this.addChild( button1 ); 
var button2:Button = new Button(); 
button2.label = "Delete"; 
// the style provider will see the style name and call 
// a different function 
button2.styleNameList.add( "warning-button" ); 
button2.y = 100; 
this.addChild( button2 );
Call component 
constructor. 
Add "warning-button" 
string to 
styleNameList 
property. 
Component initializes 
and applyStyles() is 
called on style 
provider. 
StyleNameFunction 
style provider checks 
styleNameList for 
values. 
If styleNameList 
contains "warning-button", 
call 
skinWarningButton() 
If no style names 
match a function, fall 
back to calling 
skinNormalButton()
button.styleProvider = null; // no theme!
button.styleProvider = 
new AddOnFunctionStyleProvider( button.styleProvider, 
setExtraStyles );
http://feathersui.com 
http://twitter.com/feathersui 
http://facebook.com/feathersui 
http://plus.google.com/+Feathersui 
http://twitter.com/joshtynjala 
http://joshblog.net/

More Related Content

Viewers also liked

Origin of Life: by Chance or by Design?
Origin of Life: by Chance or by Design?Origin of Life: by Chance or by Design?
Origin of Life: by Chance or by Design?
Tauqeer Ahmad
 
Origins of life panspermia
Origins of life panspermiaOrigins of life panspermia
Origins of life panspermia
Tauqeer Ahmad
 
Clash magazine front cover analysis
Clash magazine front cover analysisClash magazine front cover analysis
Clash magazine front cover analysis
annabellehussey
 

Viewers also liked (17)

Origin of Life: by Chance or by Design?
Origin of Life: by Chance or by Design?Origin of Life: by Chance or by Design?
Origin of Life: by Chance or by Design?
 
Origins of life panspermia
Origins of life panspermiaOrigins of life panspermia
Origins of life panspermia
 
Clash magazine front cover analysis
Clash magazine front cover analysisClash magazine front cover analysis
Clash magazine front cover analysis
 
EasyBusiness - Deregulation Strategy of Ukrainian Economy
EasyBusiness - Deregulation Strategy of Ukrainian EconomyEasyBusiness - Deregulation Strategy of Ukrainian Economy
EasyBusiness - Deregulation Strategy of Ukrainian Economy
 
шинжилгээг хийх аргачлалыг сонгоход анхаарах шаардлагатай хүчин зүйлүүд
шинжилгээг хийх аргачлалыг сонгоход анхаарах шаардлагатай хүчин зүйлүүдшинжилгээг хийх аргачлалыг сонгоход анхаарах шаардлагатай хүчин зүйлүүд
шинжилгээг хийх аргачлалыг сонгоход анхаарах шаардлагатай хүчин зүйлүүд
 
Tarea#3 salas michelle
Tarea#3 salas michelleTarea#3 salas michelle
Tarea#3 salas michelle
 
Parent, Peer & Family Certification Webinar: Providing Support to Other Families
Parent, Peer & Family Certification Webinar: Providing Support to Other FamiliesParent, Peer & Family Certification Webinar: Providing Support to Other Families
Parent, Peer & Family Certification Webinar: Providing Support to Other Families
 
Edu 639 week 4 dq 2 the culture of poverty 1
Edu 639 week 4 dq 2 the culture of poverty 1Edu 639 week 4 dq 2 the culture of poverty 1
Edu 639 week 4 dq 2 the culture of poverty 1
 
Clima dell'altro mondo
Clima dell'altro mondoClima dell'altro mondo
Clima dell'altro mondo
 
Royal Indian Raj International Corporation Gateway to India
Royal Indian Raj International Corporation  Gateway to India Royal Indian Raj International Corporation  Gateway to India
Royal Indian Raj International Corporation Gateway to India
 
No 4D Experience Without 3D, Tom De Meester speaks at Eurobest 2015
No 4D Experience Without 3D, Tom De Meester speaks at Eurobest 2015No 4D Experience Without 3D, Tom De Meester speaks at Eurobest 2015
No 4D Experience Without 3D, Tom De Meester speaks at Eurobest 2015
 
Laton high school pbl kickoff keynote
Laton high school pbl kickoff keynoteLaton high school pbl kickoff keynote
Laton high school pbl kickoff keynote
 
0 3 mm coarse powder mill, coare hammer powder grinding mill
0 3 mm coarse powder mill, coare hammer powder grinding mill0 3 mm coarse powder mill, coare hammer powder grinding mill
0 3 mm coarse powder mill, coare hammer powder grinding mill
 
Informe de feria. Interbride 2014
Informe de feria. Interbride 2014Informe de feria. Interbride 2014
Informe de feria. Interbride 2014
 
Tecnologia Assistiva aula01
Tecnologia Assistiva aula01Tecnologia Assistiva aula01
Tecnologia Assistiva aula01
 
Домашняя лабораторная 1
Домашняя  лабораторная 1Домашняя  лабораторная 1
Домашняя лабораторная 1
 
Dante alighieri
Dante alighieriDante alighieri
Dante alighieri
 

Similar to What’s New in Feathers 2.0? (12)

Web Server Controls CS Set
Web Server Controls CS Set Web Server Controls CS Set
Web Server Controls CS Set
 
Labels and buttons
Labels and buttonsLabels and buttons
Labels and buttons
 
Csphtp1 13
Csphtp1 13Csphtp1 13
Csphtp1 13
 
Csphtp1 12
Csphtp1 12Csphtp1 12
Csphtp1 12
 
Day 4: Android: UI Widgets
Day 4: Android: UI WidgetsDay 4: Android: UI Widgets
Day 4: Android: UI Widgets
 
Day 5: Android User Interface [View Widgets]
Day 5: Android User Interface [View Widgets]Day 5: Android User Interface [View Widgets]
Day 5: Android User Interface [View Widgets]
 
Android User Interface: Basic Form Widgets
Android User Interface: Basic Form WidgetsAndroid User Interface: Basic Form Widgets
Android User Interface: Basic Form Widgets
 
Nokia Asha App Development - Part 2
Nokia Asha App Development - Part 2Nokia Asha App Development - Part 2
Nokia Asha App Development - Part 2
 
The Ring programming language version 1.7 book - Part 76 of 196
The Ring programming language version 1.7 book - Part 76 of 196The Ring programming language version 1.7 book - Part 76 of 196
The Ring programming language version 1.7 book - Part 76 of 196
 
Action script
Action scriptAction script
Action script
 
Keynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptxKeynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptx
 
The Ring programming language version 1.8 book - Part 78 of 202
The Ring programming language version 1.8 book - Part 78 of 202The Ring programming language version 1.8 book - Part 78 of 202
The Ring programming language version 1.8 book - Part 78 of 202
 

Recently uploaded

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 

What’s New in Feathers 2.0?

  • 1.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12. button1.styleProvider = buttonStyles; button2.styleProvider = buttonStyles;
  • 13.
  • 14. Button.globalStyleProvider = new FunctionStyleProvider( skinButton );
  • 15.
  • 16.
  • 17. Theme • Passes global style provider to component class. Component • Defaults to global style provider in constructor. Component • Initializes when added to stage. Component • Calls applyStyles() on style provider. Style Provider • Sets properties on component.
  • 18.
  • 19.
  • 20.
  • 21. var button1:Button = new Button(); button1.label = "Cancel"; // no style name this.addChild( button1 ); var button2:Button = new Button(); button2.label = "Delete"; // the style provider will see the style name and call // a different function button2.styleNameList.add( "warning-button" ); button2.y = 100; this.addChild( button2 );
  • 22. Call component constructor. Add "warning-button" string to styleNameList property. Component initializes and applyStyles() is called on style provider. StyleNameFunction style provider checks styleNameList for values. If styleNameList contains "warning-button", call skinWarningButton() If no style names match a function, fall back to calling skinNormalButton()
  • 24. button.styleProvider = new AddOnFunctionStyleProvider( button.styleProvider, setExtraStyles );
  • 25.
  • 26.
  • 27.
  • 28.
  • 29. http://feathersui.com http://twitter.com/feathersui http://facebook.com/feathersui http://plus.google.com/+Feathersui http://twitter.com/joshtynjala http://joshblog.net/

Editor's Notes

  1. Feathers: the user interface component library for Starling Framework http://feathersui.com/
  2. 32 primary components don’t include things like text renderers and other minor components.
  3. See over 100 changes in the 2.0.0 release notes! https://github.com/joshtynjala/feathers/blob/v2.0.0/RELEASENOTES.md A blog post about the beta version with some more details: http://joshblog.net/2014/feathers-2-preview-listening-to-feedback-improved-architecture/
  4. The biggest change in Feathers 2.0.
  5. Initialization happens automatically when a component is added to the stage. You can manually initialize a component that isn't on stage by asking it to validate.
  6. IStyleProvider interface in the Feathers API Reference: http://feathersui.com/documentation/feathers/skins/IStyleProvider.html
  7. FunctionStyleProvider class in the Feathers API Reference: http://feathersui.com/documentation/feathers/skins/FunctionStyleProvider.html
  8. FeathersControl.styleProvider property in the Feathers API Reference: http://feathersui.com/documentation/feathers/core/FeathersControl.html#styleProvider
  9. You can opt out of using the globalStyleProvider of a superclass by overriding the non-static defaultStyleProvider property.
  10. Button.globalStyleProvider static property in the Feathers API Reference: http://feathersui.com/documentation/feathers/controls/Button.html#globalStyleProvider
  11. StyleNameFunctionStyleProvider in the Feathers API Reference: http://feathersui.com/documentation/feathers/skins/StyleNameFunctionStyleProvider.html FeathersControl.styleNameList property in the Feathers API Reference: http://feathersui.com/documentation/feathers/core/FeathersControl.html#styleNameList
  12. StyleNameFunctionStyleProvider in the Feathers API Reference: http://feathersui.com/documentation/feathers/skins/StyleNameFunctionStyleProvider.html
  13. FeathersControl.styleNameList property in the Feathers API Reference: http://feathersui.com/documentation/feathers/core/FeathersControl.html#styleNameList For a detailed review of style providers, see skinning Feathers components: http://wiki.starling-framework.org/feathers/skinning
  14. FeathersControl.styleProvider property in the Feathers API Reference: http://feathersui.com/documentation/feathers/core/FeathersControl.html#styleProvider
  15. AddOnFunctionStyleProvider class in the Feathers API Reference: http://feathersui.com/documentation/feathers/skins/AddOnFunctionStyleProvider.html
  16. See a video showing a 3D flip transition with ScreenNavigator using Sprite3D: https://www.youtube.com/watch?v=mL8Ckr83Y-k
  17. Skinning with Flash Professional inspired by this Twitter conversation: https://twitter.com/robbienz/status/518964917525688321