From 0315095d2fb04f4cdf12c7484d8a0a89dff5329d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 27 Jan 2013 21:08:42 +0100 Subject: Clean up default style sheet --- src/stylesheet.c | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) (limited to 'src/stylesheet.c') diff --git a/src/stylesheet.c b/src/stylesheet.c index e8907dd..a70df5b 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -103,33 +103,38 @@ void default_stylesheet(StyleSheet *ss) acknowledgements = new_template(ss, "Acknowledgements"); sty = new_style(ss, "Presentation title"); - sty->lop.margin_l = 20.0; - sty->lop.margin_r = 20.0; - sty->lop.margin_t = 20.0; - sty->lop.margin_b = 20.0; + sty->lop.margin_l = 0.0; + sty->lop.margin_r = 0.0; + sty->lop.margin_t = 0.0; + sty->lop.margin_b = 0.0; + sty->lop.pad_l = 0.0; + sty->lop.pad_r = 0.0; + sty->lop.pad_t = 0.0; + sty->lop.pad_b = 0.0; + sty->lop.w = 1.0; + sty->lop.w_units = UNITS_FRAC; + sty->lop.h = 100.0; + sty->lop.h_units = UNITS_SLIDE; + sty->lop.x = 0.0; + sty->lop.y = 300.0; add_to_template(titlepage, sty); - sty = new_style(ss, "Content"); - sty->lop.margin_l = 20.0; - sty->lop.margin_r = 20.0; - sty->lop.margin_t = 20.0; - sty->lop.margin_b = 20.0; - add_to_template(slide, sty); - sty = new_style(ss, "Slide title"); - sty->lop.margin_l = 20.0; - sty->lop.margin_r = 20.0; - sty->lop.margin_t = 20.0; - sty->lop.margin_b = 20.0; + sty->lop.margin_l = 0.0; + sty->lop.margin_r = 0.0; + sty->lop.margin_t = 0.0; + sty->lop.margin_b = 0.0; + sty->lop.pad_l = 20.0; + sty->lop.pad_r = 20.0; + sty->lop.pad_t = 20.0; + sty->lop.pad_b = 20.0; + sty->lop.w = 1.0; + sty->lop.w_units = UNITS_FRAC; + sty->lop.h = 100.0; + sty->lop.h_units = UNITS_SLIDE; + sty->lop.x = 0.0; + sty->lop.y = 0.0; add_to_template(slide, sty); - - sty = new_style(ss, "Content"); - sty->lop.margin_l = 20.0; - sty->lop.margin_r = 20.0; - sty->lop.margin_t = 20.0; - sty->lop.margin_b = 20.0; - add_to_template(acknowledgements, sty); - } -- cgit v1.2.3