Styles and Themes By T omaž Vajngerl @CollaboraOffjce www.CollaboraOffjce.com
Styles
Styles Preview ● Added style manager for creating style previews ● Currently only for Character and Paragraph styles ● Used it in Styles & Formatting sidebar LibreOffice Conference 2015, Aarhus | First Last 3 / 18
Styles and Formatting sidebar LibreOffice Conference 2015, Aarhus | First Last 4 / 18
Styles (pre)sets
Style (pre)sets ● Experimental feature in LibreOffjce 5.0 LibreOffice Conference 2015, Aarhus | First Last 6 / 18
Style (pre)sets ● Easy way to change all styles of a document ● Uses the functionality to load styles from template ● It only takes the templates that are stored in “styles” template folder ● Currently 2 are bundled but we need more LibreOffice Conference 2015, Aarhus | First Last 7 / 18
Style (pre)sets - issues ● No undo ● UI not yet fjnalized LibreOffice Conference 2015, Aarhus | First Last 8 / 18
Themes
Themes ● Introduced in MSO 2007 ● Idea is to make colors / fonts independent of styles ● Associate fonts and colors by name ● Allows to quickly change the document design ● Consistency LibreOffice Conference 2015, Aarhus | First Last 10 / 18
Color sets ● 2 foreground colors: “text1”, “text2” ● 2 background colors: “background1”, “background2” ● 6 accent colors: “accent 1” – “accent 6” ● 2 colors for visited and not visited hyperlink LibreOffice Conference 2015, Aarhus | First Last 11 / 18
Color sets ● Additional color variants with tinting / shading ● Tint – percentage how much the color mixes with white ● Shade – precentage how much the color mixes with black LibreOffice Conference 2015, Aarhus | First Last 12 / 18
Font sets ● 2 fonts in a font set ● Headings font ● Body font ● More than 2 fonts in a document is discouraged in guidelines LibreOffice Conference 2015, Aarhus | First Last 13 / 18
Usage ● Character / paragraph styles or direct formatting ● Font color ● Background color ● Border color LibreOffice Conference 2015, Aarhus | First Last 14 / 18
Usage ● Shapes ● Fill color – automatic gradient ● Line ● T ables ● Alternating colors ● Header color LibreOffice Conference 2015, Aarhus | First Last 15 / 18
Usage ● Charts ● T ext, background color ● Colors for lines, bars, points,.. ● LibreOffice Conference 2015, Aarhus | First Last 16 / 18
LibreOffjce implementation so far ● Proof of concept phase ● Reading of theme and tint/shade values from OOXML ● Support only for font color in a paragraph / character styles ● Change the color set in theme deck in sidebar LibreOffice Conference 2015, Aarhus | First Last 17 / 18
Theme support in ODF ● Optional ● theme-color, tint-or-shade attribute where color is defjned ● theme-font attribute where font is defjned ● .. and theme defjnition possibly in its own fjle LibreOffice Conference 2015, Aarhus | First Last 18 / 18
Recommend
More recommend