For a desktop AIR app, you should use a desktop theme instead of the MetalWorksMobileTheme
mentioned in the Getting Started with Feathers tutorial. Feathers includes several example themes, and some target mobile and others target desktop. A good one to start with is MetalWorksDesktopTheme
. It has a similar design to MetalWorksMobileTheme
, but it's designed specifically for desktop.
There are two main reasons to use a desktop theme for a desktop app:
The same UI controls on desktop and mobile can behave very differently. A desktop theme will skin every UI control appropriately for a mouse-and-keyboard desktop environment and enable things like keyboard focus management.
The example mobile themes, including
MetalWorksMobileTheme
, attempt to resize their content based onCapabilities.screenDPI
so that components render at the same physical size (in inches or centimeters) on all screens. This is great for mobile, but the components will be render too small on desktop, especially since the Flash runtimes on desktop don't report the proper DPI of the attached screen.
The workaround that you found by setting DevicesCapabilities.dpi
isn't a recommended approach. This API exists only because it allows the demos on the feathersui.com website to simulate how the components would be displayed a mobile device. To scale a real application, you should use Starling's multi-resolution APIs instead. See Multi-Resolution Development in the Starling Manual for details.