From 3b2b36869067ce8508aa4dafdb6bf50150beeb9c Mon Sep 17 00:00:00 2001 From: Yves Marcoz Date: Tue, 8 Jun 2010 07:32:18 -0700 Subject: [PATCH] Added hard-coded background colour for article listing --- debian/changelog | 8 ++++++++ src/FeedingIt.py | 8 +++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3a3f2d4..234cc65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +feedingit (0.7.0-3) unstable; urgency=low + + * Fixed re-layout of article listing when switching portrait to/from landscape + * Fixed landscape rotation bug for PR1.2 (by Thp) + * Better UI and interaction for menus, the settings dialog and subscriptions menu (Thp) + + -- Yves Mon, 07 May 2010 22:41:19 -0800 + feedingit (0.7.0-2) unstable; urgency=low * Changed layout of article listing TreeView diff --git a/src/FeedingIt.py b/src/FeedingIt.py index ca23f2a..8825b6a 100644 --- a/src/FeedingIt.py +++ b/src/FeedingIt.py @@ -83,7 +83,8 @@ FEED_COLUMN_MARKUP, FEED_COLUMN_KEY = range(2) import style MARKUP_TEMPLATE= '%%s' -MARKUP_TEMPLATE_ENTRY = '%%s' +MARKUP_TEMPLATE_ENTRY_UNREAD = '%%s' +MARKUP_TEMPLATE_ENTRY = '%%s' # Build the markup template for the Maemo 5 text style head_font = style.get_font_desc('SystemFont') @@ -102,8 +103,8 @@ entry_normal_sub = MARKUP_TEMPLATE_ENTRY % (sub_font.get_family(), sub_color.to_ active_head = MARKUP_TEMPLATE % (head_font.to_string(), active_color.to_string()) active_sub = MARKUP_TEMPLATE % (sub_font.to_string(), active_color.to_string()) -entry_active_head = MARKUP_TEMPLATE_ENTRY % (head_font.get_family(), active_color.to_string()) -entry_active_sub = MARKUP_TEMPLATE_ENTRY % (sub_font.get_family(), active_color.to_string()) +entry_active_head = MARKUP_TEMPLATE_ENTRY_UNREAD % (head_font.get_family(), active_color.to_string()) +entry_active_sub = MARKUP_TEMPLATE_ENTRY_UNREAD % (sub_font.get_family(), active_color.to_string()) FEED_TEMPLATE = '\n'.join((head, normal_sub)) FEED_TEMPLATE_UNREAD = '\n'.join((head, active_sub)) @@ -706,6 +707,7 @@ class DisplayFeed(hildon.StackableWindow): self.markup_renderer = gtk.CellRendererText() self.markup_renderer.set_property('wrap-mode', pango.WRAP_WORD_CHAR) + self.markup_renderer.set_property('background', "#333333") (width, height) = self.get_size() self.markup_renderer.set_property('wrap-width', width-20) self.markup_renderer.set_property('ypad', 5) -- 1.7.9.5