changeset 520:9b75ec5b5de5

fill userAgent style
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 30 Oct 2008 18:58:13 +0100
parents ca0b92b40dfc
children 5dedb43b39f2
files src/css.cc
diffstat 1 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Thu Oct 30 18:48:42 2008 +0100
+++ b/src/css.cc	Thu Oct 30 18:58:13 2008 +0100
@@ -99,6 +99,7 @@
    CssPropertyList *props;
    CssProperty::Value v;
 
+   // <a>
    props = new CssPropertyList ();
    v.color = prefs.link_color;
    props->set (CssProperty::CSS_PROPERTY_COLOR, v);
@@ -106,7 +107,28 @@
    props->set (CssProperty::CSS_PROPERTY_TEXT_DECORATION, v);
    v.cursor = dw::core::style::CURSOR_POINTER;
    props->set (CssProperty::CSS_PROPERTY_CURSOR, v);
-   s->addRule (new CssSelector(a_Html_tag_index("a"), NULL, NULL), props);   
+   s->addRule (new CssSelector(a_Html_tag_index("a"), NULL, NULL), props);
+
+   // <h1>
+   props = new CssPropertyList ();
+   v.size = 40;
+   props->set (CssProperty::CSS_PROPERTY_FONT_SIZE, v);
+   v.name = "Times";
+   props->set (CssProperty::CSS_PROPERTY_FONT_FAMILY, v);
+   s->addRule (new CssSelector(a_Html_tag_index("h1"), NULL, NULL), props);
+
+   // <h2>
+   props = new CssPropertyList ();
+   v.size = 30;
+   props->set (CssProperty::CSS_PROPERTY_FONT_SIZE, v);
+   s->addRule (new CssSelector(a_Html_tag_index("h2"), NULL, NULL), props);
+
+   // <h3>
+   props = new CssPropertyList ();
+   v.size = 20;
+   props->set (CssProperty::CSS_PROPERTY_FONT_SIZE, v);
+   s->addRule (new CssSelector(a_Html_tag_index("h3"), NULL, NULL), props);
+   
    return s;
 }