bigboard r7369 - trunk/bigboard/stocks/files
- From: marco svn gnome org
- To: svn-commits-list gnome org
- Subject: bigboard r7369 - trunk/bigboard/stocks/files
- Date: Wed, 18 Jun 2008 17:32:21 +0000 (UTC)
Author: marco
Date: Wed Jun 18 17:32:21 2008
New Revision: 7369
URL: http://svn.gnome.org/viewvc/bigboard?rev=7369&view=rev
Log:
Get rid of hardcoded font sizes in the file browser
Modified:
trunk/bigboard/stocks/files/filebrowser.py
Modified: trunk/bigboard/stocks/files/filebrowser.py
==============================================================================
--- trunk/bigboard/stocks/files/filebrowser.py (original)
+++ trunk/bigboard/stocks/files/filebrowser.py Wed Jun 18 17:32:21 2008
@@ -31,7 +31,8 @@
"activated" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_PYOBJECT,))
}
def __init__(self, stock):
- super(FileBrowser, self).__init__(themed=False)
+ stylesheet = stock.get_path('browser.css')
+ super(FileBrowser, self).__init__(themed=False, stylesheet=stylesheet)
self.__stock = stock
self.__single_selected_item = None
@@ -48,13 +49,13 @@
browse_box = CanvasHBox(xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START, padding_top=4)
self.__box.append(browse_box)
- browse_text = hippo.CanvasText(text="Browse:", font="Bold 12px", color=0x3F3F3FFF, padding_right=6, xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START)
+ browse_text = hippo.CanvasText(text="Browse:", classes="title", padding_right=6, xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START)
browse_box.append(browse_text)
browse_options = CanvasVBox(xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START)
browse_box.append(browse_options)
- local_files_link = ActionLink(text="Local Files", font="14px", padding_bottom=4, xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START)
+ local_files_link = ActionLink(text="Local Files", classes="action", padding_bottom=4, xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START)
local_files_link.connect("activated", self.__on_browse_local_files_clicked)
browse_options.append(local_files_link)
@@ -62,13 +63,13 @@
# don't list invalid accounts we might have picked up from the signons file
if google_account.get_current_auth_credentials_known_bad():
continue
- google_docs_link = ActionLink(text=google_account.get_account().get_username_as_google_email() + " Docs", font="14px", padding_bottom=4, xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START)
+ google_docs_link = ActionLink(text=google_account.get_account().get_username_as_google_email() + " Docs", padding_bottom=4, xalign=hippo.ALIGNMENT_START, yalign=hippo.ALIGNMENT_START)
google_docs_link.connect("activated", webbrowser.open, create_account_url(google_account.get_account().get_username_as_google_email()))
browse_options.append(google_docs_link)
self.__search_box = CanvasHBox(padding_top=4, padding_bottom=4)
- self.__search_text = hippo.CanvasText(text="Search Recent Files:", font="Bold 12px",
- color=0x3F3F3FFF, xalign=hippo.ALIGNMENT_START, padding_right=4)
+ self.__search_text = hippo.CanvasText(text="Search Recent Files:", classes="title",
+ xalign=hippo.ALIGNMENT_START, padding_right=4)
self.__search_box.append(self.__search_text)
self.__search_input = hippo.CanvasEntry(box_width=250)
self.__search_input.connect("notify::text", self.__on_search_changed)
@@ -76,14 +77,14 @@
self.__idle_search_id = 0
self.__search_box.append(self.__search_input)
- search_local_files_link = ActionLink(text="Search All Local Files", font="14px", padding_left=10)
+ search_local_files_link = ActionLink(text="Search All Local Files", classes="action", padding_left=10)
search_local_files_link.connect("activated", self.__on_search_local_files_clicked)
self.__search_box.append(search_local_files_link)
self.__box.append(self.__search_box)
self.__section_head = hippo.CanvasBox(orientation=hippo.ORIENTATION_HORIZONTAL, color=0xAAAAAAFF, border_bottom=1, border_color=0xAAAAAAFF)
- self.__section_head.append(hippo.CanvasText(text="Recent Files", font="Bold 14px", xalign=hippo.ALIGNMENT_START))
+ self.__section_head.append(hippo.CanvasText(text="Recent Files", classes="title", xalign=hippo.ALIGNMENT_START))
self.__box.append(self.__section_head)
self.__files_outter_box = CanvasVBox(background_color=0xFFFFFFFF)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]