diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-09-26 22:58:38 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-09-26 22:58:38 +0200 |
commit | f97b36427f7607dd26de5bf626ba6cc1d5e8a6fb (patch) | |
tree | 6e4526acb8a0b6d38d5e7d1c9074b723cad5e031 /src | |
parent | 45187bc7cb2d63b0b252c6f90598947052b3d467 (diff) |
Add a FIXME, and rationise the style elements so far
Diffstat (limited to 'src')
-rw-r--r-- | src/slide_render.c | 2 | ||||
-rw-r--r-- | src/stylesheet.c | 67 |
2 files changed, 41 insertions, 28 deletions
diff --git a/src/slide_render.c b/src/slide_render.c index a174e3c..0a07560 100644 --- a/src/slide_render.c +++ b/src/slide_render.c @@ -176,7 +176,7 @@ static void render_text_object(cairo_t *cr, struct object *o) cairo_move_to(cr, o->x, o->y); gdk_color_parse(o->style->colour, &col); - gdk_cairo_set_source_color(cr, &col); + gdk_cairo_set_source_color(cr, &col); /* FIXME: Honour alpha as well */ pango_cairo_show_layout(cr, o->layout); if ( furniture ) { diff --git a/src/stylesheet.c b/src/stylesheet.c index 1e5b77b..20d01c4 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -467,43 +467,56 @@ static void default_stylesheet(StyleSheet *ss) sty->offset_y = 0.0; /* irrelevant */ sty = new_style(ss, "Slide credit"); - sty->font = strdup("Sans 30"); - sty->colour = strdup("#000000000000"); /* Black */ + sty->font = strdup("Sans 14"); + sty->colour = strdup("#777777777777"); /* Grey */ sty->alpha = 1.0; sty->margin_left = 20.0; sty->margin_right = 20.0; sty->margin_top = 20.0; - sty->margin_bottom = 20.0; - sty->halign = J_CENTER; - sty->valign = V_CENTER; - sty->offset_x = +200.0; - sty->offset_y = -300.0; + sty->margin_bottom = 30.0; + sty->halign = J_RIGHT; + sty->valign = V_BOTTOM; + sty->offset_x = 0.0; + sty->offset_y = 0.0; sty = new_style(ss, "Slide date"); - sty->font = strdup("Sans 30"); - sty->colour = strdup("#000000000000"); /* Black */ + sty->font = strdup("Sans 12"); + sty->colour = strdup("#999999999999"); /* Grey */ sty->alpha = 1.0; - sty->margin_left = 20.0; - sty->margin_right = 20.0; - sty->margin_top = 20.0; - sty->margin_bottom = 20.0; - sty->halign = J_CENTER; - sty->valign = V_CENTER; - sty->offset_x = +200.0; - sty->offset_y = -300.0; + sty->margin_left = 600.0; + sty->margin_right = 100.0; + sty->margin_top = 600.0; + sty->margin_bottom = 5.0; + sty->halign = J_RIGHT; + sty->valign = V_BOTTOM; + sty->offset_x = 0.0; + sty->offset_y = 0.0; sty = new_style(ss, "Slide number"); - sty->font = strdup("Sans 30"); - sty->colour = strdup("#000000000000"); /* Black */ + sty->font = strdup("Sans 12"); + sty->colour = strdup("#999999999999"); /* Grey */ sty->alpha = 1.0; - sty->margin_left = 20.0; - sty->margin_right = 20.0; - sty->margin_top = 20.0; - sty->margin_bottom = 20.0; - sty->halign = J_CENTER; - sty->valign = V_CENTER; - sty->offset_x = +200.0; - sty->offset_y = -300.0; + sty->margin_left = 600.0; + sty->margin_right = 5.0; + sty->margin_top = 600.0; + sty->margin_bottom = 5.0; + sty->halign = J_RIGHT; + sty->valign = V_BOTTOM; + sty->offset_x = 0.0; + sty->offset_y = 0.0; + + sty = new_style(ss, "Presentation title on slide"); + sty->font = strdup("Sans 12"); + sty->colour = strdup("#999999999999"); /* Grey */ + sty->alpha = 1.0; + sty->margin_left = 5.0; + sty->margin_right = 600.0; + sty->margin_top = 600.0; + sty->margin_bottom = 5.0; + sty->halign = J_LEFT; + sty->valign = V_BOTTOM; + sty->offset_x = 0.0; + sty->offset_y = 0.0; sty = new_style(ss, "Presentation title"); sty->font = strdup("Sans 50"); |