From d73afc11da4336fde2a8aaa0f2bf8c883d8be406 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Apr 2011 08:53:23 -0600 Subject: [PATCH 1/3] Update Tabu.ro --- recipes/tabu.recipe | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/recipes/tabu.recipe b/recipes/tabu.recipe index d0ede613fd..f98ed8a155 100644 --- a/recipes/tabu.recipe +++ b/recipes/tabu.recipe @@ -24,30 +24,29 @@ class TabuRo(BasicNewsRecipe): cover_url = 'http://www.tabu.ro/img/tabu-logo2.png' conversion_options = { - 'comments' : description - ,'tags' : category - ,'language' : language - ,'publisher' : publisher - } + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } keep_only_tags = [ - dict(name='div', attrs={'id':'Article'}), - ] + dict(name='h2', attrs={'class':'articol_titlu'}), + dict(name='div', attrs={'class':'poza_articol_featured'}), + dict(name='div', attrs={'class':'articol_text'}) + ] remove_tags = [ - dict(name='div', attrs={'id':['advertisementArticle']}), - dict(name='div', attrs={'class':'voting_number'}), - dict(name='div', attrs={'id':'number_votes'}), - dict(name='div', attrs={'id':'rating_one'}), - dict(name='div', attrs={'class':'float: right;'}) + dict(name='div', attrs={'class':'asemanatoare'}) ] remove_tags_after = [ dict(name='div', attrs={'id':'comments'}), - ] + dict(name='div', attrs={'class':'asemanatoare'}) + ] feeds = [ - (u'Feeds', u'http://www.tabu.ro/rss_all.xml') + (u'Feeds', u'http://www.tabu.ro/feed/') ] def preprocess_html(self, soup): From 1c38548fd769d55d9598c2c6c6fc2113e5e33a0f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Apr 2011 09:12:20 -0600 Subject: [PATCH 2/3] Make the icons in the status bar look a little nicer on OS X --- src/calibre/gui2/init.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/init.py b/src/calibre/gui2/init.py index 80f1f1c2cf..a75ff01b21 100644 --- a/src/calibre/gui2/init.py +++ b/src/calibre/gui2/init.py @@ -247,6 +247,11 @@ class LayoutMixin(object): # {{{ for x in ('cb', 'tb', 'bd'): button = getattr(self, x+'_splitter').button button.setIconSize(QSize(24, 24)) + if isosx: + button.setStyleSheet(''' + QToolButton { background: none; border:none; padding: 0px; } + QToolButton:checked { background: rgba(0, 0, 0, 25%); } + ''') self.status_bar.addPermanentWidget(button) self.status_bar.addPermanentWidget(self.jobs_button) self.setStatusBar(self.status_bar) From 50acfc314d2b510b92107bee4ffdcb41d10bf08b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Apr 2011 09:15:42 -0600 Subject: [PATCH 3/3] ... --- src/calibre/gui2/layout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index e98817a02f..c01e708933 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -408,6 +408,7 @@ class ToolBar(BaseToolBar): # {{{ self.d_widget.layout().addWidget(self.donate_button) if isosx: self.d_widget.setStyleSheet('QWidget, QToolButton {background-color: none; border: none; }') + self.d_widget.layout().addWidget(QLabel(u'\u00a0')) bar.addWidget(self.d_widget) self.showing_donate = True elif what in self.gui.iactions: