Re: Applying Styles


Jeremy Hughes
 

Hi Bert,

One thing to consider is that default styles can be defined at three different levels: document, page, and box. Default page styles will override default document styles, and default box styles will override default page styles. You can also style the actual paragraph. Here is an example:

  1. Create a new document.
  2. Insert a box on the page and type "Hello world" in it
  3. >> "Hello world" is drawn in black
  4. Set a default paragraph style in the Document Inspector: choose Red as the text colour
  5. >> "Hello world" is drawn in red
  6. Set a default paragraph style in the Page Inspector: choose Green as the text colour
  7. >> "Hello world" is drawn in green
  8. Set a default paragraph style in the Box Inspector: choose Blue as the text colour
  9. >> "Hello world" is drawn in blue
  10. Choose Purple as the text colour in the Paragraph Inspector
  11. >> "Hello world" is drawn in purple
  12. Click on "Inherit Style" in the Paragraph Inspector (this is equivalent to Freeway's "No Style")
  13. >> "Hello world" is drawn in blue
  14. Click on "Inherit Default Style" in the Box Inspector
  15. >> "Hello world" is drawn in green
  16. Click on "Use Master Default Style" in the Page Inspector
  17. >> "Hello world" is drawn in red
  18. Click on "Inherit Default Style" in the Document Inspector
  19. >> "Hello world" is drawn in black

If you have some steps that show something different happening, can you post them? The format we use for bug reports is a series of numbered steps, with ">>" showing the result of a previous step or series of steps (as above).

Answering a possible question: Xway shows "Use Master Style" when there is a master element and "Inherit Style" when there isn't a master element. The style is taken from the master element (if there is one) or inherited according to CSS rules (if there isn't a master element). The only master elements that exist in current release versions of Xway are: 1. The document master page, and 2. the pagediv on the document master page (styles for both are set in the Document Inspector). Future versions of Xway will have multiple master pages (and master elements).

Named styles are on our list of things to look at in future.

Jeremy

Join xway-talk@softpress.groups.io to automatically receive all group messages.