It is currently Mon Apr 29, 2024 9:10 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
Offline
 Post subject: Font sizes in Kombilo
Post #1 Posted: Sat Dec 11, 2010 3:09 am 
Lives with ko
User avatar

Posts: 206
Location: Finland
Liked others: 29
Was liked: 9
Rank: mid-SDK
GD Posts: 495
KGS: Gresil
Is there any way of changing the UI font sizes in Kombilo? There's nothing for it that I can see in the "Advanced/Customize appearance" options. The fonts in the menu and game list etc. are way too large for a netbook display, almost twice the size they need be, and they're in bold to boot. I've dug through the source code and tried changing all hard-coded font size parameters I could find but nothing seems to help.


(Edit: I suppose the program might be using whatever is the default font of the interface toolkit...)

_________________
So you've got an eye?
That don't impress me much

Top
 Profile  
 
Offline
 Post subject: Re: Font sizes in Kombilo
Post #2 Posted: Sat Dec 11, 2010 12:46 pm 
Gosei
User avatar

Posts: 1744
Liked others: 703
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
Yeah, you'll have to insert non-default font choices. To change the font in the game list, open kombilo.py and search for "class GameList". Towards the beginning of that class definition (in the init function) you should see a line like

Code:
v.ScrolledList.__init__(self, parent)


change it to:

Code:
v.ScrolledList.__init__(self, parent, font=("Helvetica", 8))


Or whatever font & size combination you want. Unfortunately if you don't know python it'll be a real pain to find the relevant lines to change. (Took me a few minutes to find that one, and I've messed with kombilo's source some already)

Does anyone know if Kombilo is still being maintained? I have some fixes to my source to make it work better on a mac that I could share if people are interested.

Top
 Profile  
 
Offline
 Post subject: Re: Font sizes in Kombilo
Post #3 Posted: Sat Dec 11, 2010 12:53 pm 
Gosei
User avatar

Posts: 1744
Liked others: 703
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
I assume you tried changing the font in the kombilo.app file? If not, try that first.

Top
 Profile  
 
Offline
 Post subject: Re: Font sizes in Kombilo
Post #4 Posted: Sat Dec 11, 2010 1:32 pm 
Lives with ko
User avatar

Posts: 206
Location: Finland
Liked others: 29
Was liked: 9
Rank: mid-SDK
GD Posts: 495
KGS: Gresil
Thanks! Editing the .app file was enough.

_________________
So you've got an eye?
That don't impress me much

Top
 Profile  
 
Offline
 Post subject: Re: Font sizes in Kombilo
Post #5 Posted: Tue Dec 14, 2010 3:56 am 
Dies in gote
User avatar

Posts: 63
Liked others: 0
Was liked: 40
emeraldemon wrote:
Does anyone know if Kombilo is still being maintained? I have some fixes to my source to make it work better on a mac that I could share if people are interested.


I started working on Kombilo again, after a very long break. The current goal is to prepare a version based on the "libkombilo" library which contains the pattern search functionality (and which is used in Gilles Arcas's Drago). It will have a snappier, and maybe a little more beautiful GUI, but not much new functionality. After the transition to libkombilo I will hopefully find some time to add new features.

If you have fixes to the code, or just suggestions how things could work better, or what is missing, I would of course be glad to hear them.

Best

Ulrich

_________________
u-go.net

Top
 Profile  
 
Offline
 Post subject: Re: Font sizes in Kombilo
Post #6 Posted: Tue Dec 14, 2010 12:32 pm 
Gosei
User avatar

Posts: 1744
Liked others: 703
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
The main thing was changing the pattern markoff to be ctrl-click. The way it was before didn't work for me, and I think ctrl-click is a bit more mac-standard anyway for that sort of thing. Not a big deal, but maybe others were having similar problems. I just changed the rebindMouseButtons function in kombilo.py to use <Control-Button-1> instead of <M2-Button-1>. Not even sure what M2 would be on a mac (alt maybe?)

Top
 Profile  
 
Offline
 Post subject: Re: Font sizes in Kombilo
Post #7 Posted: Sun Jan 02, 2011 12:49 pm 
Beginner

Posts: 5
Liked others: 0
Was liked: 0
Rank: KGS4
Thanks. This is just what I was looking for. Changing the app settings worked for me. The size was driving me crazy. This is a much improved interface now.

_________________
Marty D
www.goldenrule.com

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group