![]() |
2009-02-23
, 21:17
|
|
Posts: 291 |
Thanked: 124 times |
Joined on Feb 2006
@ Trier, Germany
|
#182
|
![]() |
2009-02-23
, 21:33
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#183
|
![]() |
2009-02-23
, 21:37
|
|
Posts: 903 |
Thanked: 632 times |
Joined on Apr 2008
|
#184
|
Or:After all, if you can hold 15 chars with " ..." you can hold at least 17, and usually 18, chars without.Code:def shorten_text(self, variable_holding_text): if len(variable_holding_text) > 18: new_variable = variable_holding_text[0:15] + " ..." return new_variable
def shorten_text(self, variable_holding_text): settings = self.get_settings() # a function to get all user settings. This should be a list. if len(variable_holding_text) > settings['title_length']: end_length = settings['title_length'] - 3 new_variable = variable_holding_text[0:end_length] + " ..." return new_variable
![]() |
2009-02-23
, 21:47
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#185
|
for row in self.c: menuitem = gtk.ImageMenuItem() label = gtk.Label("") label.set_markup("<span color='#7090BA'><b>"+self.html_escape(str(row[1]))+"</b></span>\n<span foreground='#FFF'>%s</span>" % row[2]) label.set_alignment(0, 0) menuitem.add(label) self.menu.append(menuitem) menuitem.connect('activate',self.open_url,row[2]) #menu_item = gtk.SeparatorMenuItem() #self.menu.append(menu_item)
fgcolor = menu_item.get_child().get_style().text[0]
scheme = gtk.Object(gtk.Settings().get_default()).get("gtk-color-scheme")
![]() |
2009-02-23
, 22:38
|
|
Posts: 291 |
Thanked: 124 times |
Joined on Feb 2006
@ Trier, Germany
|
#186
|
I've already did add removing bookmarks using the star when there is bookmark already. I have some things yet to do before the next release though.
![]() |
2009-02-23
, 22:39
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#187
|
![]() |
2009-02-23
, 22:45
|
|
Posts: 903 |
Thanked: 632 times |
Joined on Apr 2008
|
#188
|
Btw, these changes to the Tear bookmarks remove the need for VBox and look good on the dark Echo background (also add left alignment):
Right now i'm directly using white for the bookmark url, but if we can get the theme fg color will be best. I tried withCode:for row in self.c: menuitem = gtk.ImageMenuItem() label = gtk.Label("") label.set_markup("<span color='#7090BA'><b>"+self.html_escape(str(row[1]))+"</b></span>\n<span foreground='#FFF'>%s</span>" % row[2]) label.set_alignment(0, 0) menuitem.add(label) self.menu.append(menuitem) menuitem.connect('activate',self.open_url,row[2]) #menu_item = gtk.SeparatorMenuItem() #self.menu.append(menu_item)
and withCode:fgcolor = menu_item.get_child().get_style().text[0]
But I'm not very good with Python and even less with Hildon Desktop and wasn't able to see the error messages which I was getting to check what I'm receiving. Maybe someone else can take it from here?Code:scheme = gtk.Object(gtk.Settings().get_default()).get("gtk-color-scheme")
![]() |
2009-02-23
, 22:56
|
|
Posts: 291 |
Thanked: 124 times |
Joined on Feb 2006
@ Trier, Germany
|
#189
|
The Following User Says Thank You to bongo For This Useful Post: | ||
![]() |
2009-02-23
, 23:00
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#190
|
![]() |
Tags |
brower, browser, browserd fix, khtml, microb alternative, microb killer, tear, webkit, www |
|
World's first inductively-charged N900!