简体   繁体   English

设计Spark皮肤的工具和流程

[英]Tools and process for designing a Spark skin

I come from the web development background where the process of skinning a website normally looks like this: 我来自Web开发背景,其中为网站设置外观的过程通常如下所示:

  1. Designer creates a design in Photoshop Designer在Photoshop中创建了一个设计
  2. The design is transferred into HTML + CSS using the following heuristics: 使用以下启发式将设计转换为HTML + CSS:
    • Where possible, use the CSS toolbox to create borders, background colors and the like 尽可能使用CSS工具箱创建边框,背景颜色等
    • In case of more complicated shapes (eg gradients, rounded corners etc.), use raster sprites 如果形状更复杂(例如渐变,圆角等),请使用光栅精灵

Now, I'm working on skinning an app done in Adobe Flex and I'm wondering what the best approach should be. 现在,我正在研究在Adobe Flex中完成应用程序的皮肤,我想知道最佳方法应该是什么。 ActionScript's vector graphics capabilities are a lot more extensive than "vector graphics" (borders, background colors) done in CSS, so perhaps creating a design in Photoshop isn't the best idea. ActionScript的矢量图形功能比CSS中的“矢量图形”(边框,背景颜色)要广泛得多,因此在Photoshop中创建设计可能不是最好的主意。

Should I ask my designer to create the design in Illustrator instead, hoping that it will be possible to transfer most of the advanced shapes (like button gradients, rounded corners etc.) into a Spark skin "natively" as vector graphics as opposed to embedding those as bitmaps? 我是否应该让我的设计师在Illustrator中创建设计,希望能够将大多数高级形状(如按钮渐变,圆角等)转换为Spark“皮肤”本身作为矢量图形而不是嵌入那些作为位图?

If you call button gradients, rounded corners, etc. advanced shapes then indeed I would go for the Illustrator approach. 如果你调用按钮渐变,圆角等高级形状,那么我确实会选择Illustrator方法。 These are all shapes that translate easily and cheaply into vector graphics/code. 这些都是可以轻松便宜地转换为矢量图形/代码的形状。 For this kind of graphics, vectors are usually much better for memory and performance. 对于这种图形,向量通常对内存和性能要好得多。
Illustrator can export directly to FXG. Illustrator可以直接导出到FXG。 Just make sure to tell your designer to anchor his drawings in the top left corner when he does the export so you don't have to deal with offsets. 只需确保告诉您的设计师在他执行导出时将他的绘图锚定在左上角,这样您就不必处理偏移。

If however your graphics become more complex (a drawing, or maybe some complex symbol) you're better of embedding it as a bimap graphic. 但是,如果您的图形变得更复杂(绘图,或者某些复杂的符号),则最好将其嵌入为bimap图形。

As a last note: Adobe previously had a product called Catalyst that was supposed to address the designer/developer workflow for Flex apps, but they discontinued it. 作为最后一点:Adobe之前有一款名为Catalyst的产品应该用于解决Flex应用程序的设计人员/开发人员工作流程,但他们已停止使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM