Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] Other question about stylesheets

From: etienne::alaurent::free::fr at: 25-Apr-2001 1:21

Hi, I want to implement customer skins in my app with stylesheets. And I found two solutions : 1-define all stylesheets with 'styles (And make a function to define and save customer skin styles. The new skin will be loaded and reflected whenever the app comes up.) and use these stylesheets in a layout definition. example: ------ st-backdrop stylize [ backdrop: backdrop with [ color: none image: none effect: [gradient -1x-1 50.80.120 70.130.180] ] ] example: layout [ styles st-backdrop backdrop text "This is an example !" ] view example 2-define objects with all attributes of any style used. When a layout comes up, the defined vars are used. Example: ------ tpl-backdrop: make object! [ color: none effect: [gradient -1x-1 70.130.180 50.80.120] image: none ] example: layout [ backdrop with [ image: tpl-backdrop/image color: tpl-backdrop/color effect: tpl-backdrop/effect ] text "This is an example !" ] view example What is the best policy to implement this ? and why ? Thanks. Etienne