Enlightenment CVS committal

Author  : kiwi
Project : e_modules
Module  : news

Dir     : e_modules/news/src/module


Modified Files:
        news_parse.c news_viewer.c news_viewer.h 


Log Message:
better ui
 * [viewer] add different styles in the content view
 * [gadget] add fading effects to the icons

===================================================================
RCS file: /cvs/e/e_modules/news/src/module/news_parse.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- news_parse.c        29 May 2007 05:57:49 -0000      1.4
+++ news_parse.c        2 Jun 2007 21:33:13 -0000       1.5
@@ -879,7 +879,6 @@
    *buf = p1;
 
    p2 = _meta_block_end(*buf, 0, 1);
-   if (!p2) return NULL;
 
    return p2;
 }
===================================================================
RCS file: /cvs/e/e_modules/news/src/module/news_viewer.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- news_viewer.c       23 May 2007 23:32:37 -0000      1.4
+++ news_viewer.c       2 Jun 2007 21:33:13 -0000       1.5
@@ -422,10 +422,16 @@
                  news->config->viewer.vcontent.font_shadow_color);
      }
    snprintf(buf, sizeof(buf),
-            "DEFAULT='font=Vera font_size=%d align=left color=%s%s wrap=word'" 
"br='\n'",
+            "DEFAULT='font=Vera font_size=%d align=left color=%s%s wrap=word'"
+            "br='\n'"
+            "hilight='+ font=Vera-Bold font_size=%d'"
+            "small='+ font_size=%d'"
+            "italic='+ font=Vera-Italic'",
             news->config->viewer.vcontent.font_size,
             news->config->viewer.vcontent.font_color,
-            buf2);
+            buf2,
+            news->config->viewer.vcontent.font_size + 1,
+            news->config->viewer.vcontent.font_size - 1);
    evas_textblock_style_set(tb_style, buf);
    evas_object_textblock_style_set(ob, tb_style);
    evas_textblock_style_free(tb_style);
@@ -591,11 +597,10 @@
    if (art->date.tm_year != 0)
      strftime(buf_date, sizeof(buf_date), "%Y-%m-%d %H:%M:%S", &art->date);
    snprintf(buf, sizeof(buf),
-            "<underline=on underline_color=%s>%s</><br>"
+            "<hilight>%s</hilight><br>"
+            "<small>%s</small><br><br>"
             "%s<br><br>"
-            "%s<br><br>"
-            "%s",
-            news->config->viewer.vcontent.font_color,
+            "<small>%s</small>",
             (art->title && art->title[0]) ? art->title : "No title",
             buf_date,
             (art->description && art->description[0])? art->description : "No 
description text",
@@ -878,12 +883,11 @@
           }
      }
    snprintf(buf, sizeof(buf),
-            "<underline=on underline_color=%s>%s</> <i>in %s</i><br>"
+            "<hilight>%s</hilight> <small>in %s</small><br><br>"
             "%s"
             "%s<br><br>"
-            "%s%s<br>"
-            "%s",
-            news->config->viewer.vcontent.font_color,
+            "<italic>%s%s<br>"
+            "%s</italic>",
             f->name,
             f->category->name,
             buf_error,
===================================================================
RCS file: /cvs/e/e_modules/news/src/module/news_viewer.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- news_viewer.h       23 May 2007 23:32:37 -0000      1.2
+++ news_viewer.h       2 Jun 2007 21:33:13 -0000       1.3
@@ -26,11 +26,10 @@
    struct
    {
       E_Dialog    *dia;
+      int x, y, w, h;
       
       Evas_Object *tab;
       Evas_Object *ftab_feeds, *ftab_articles, *ftab_content;
-
-      int x, y, w, h;
    } dialog;
   
    /* view of the feeds list */



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to