Font sizes in Kombilo

For discussing go computing, software announcements, etc.
Post Reply
User avatar
Gresil
Lives with ko
Posts: 206
Joined: Tue Apr 20, 2010 11:03 pm
Rank: mid-SDK
GD Posts: 495
KGS: Gresil
Location: Finland
Has thanked: 29 times
Been thanked: 9 times

Font sizes in Kombilo

Post by 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
User avatar
emeraldemon
Gosei
Posts: 1744
Joined: Sun May 02, 2010 1:33 pm
GD Posts: 0
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
Has thanked: 697 times
Been thanked: 287 times

Re: Font sizes in Kombilo

Post by 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: Select all

v.ScrolledList.__init__(self, parent)


change it to:

Code: Select all

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.
User avatar
emeraldemon
Gosei
Posts: 1744
Joined: Sun May 02, 2010 1:33 pm
GD Posts: 0
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
Has thanked: 697 times
Been thanked: 287 times

Re: Font sizes in Kombilo

Post by emeraldemon »

I assume you tried changing the font in the kombilo.app file? If not, try that first.
User avatar
Gresil
Lives with ko
Posts: 206
Joined: Tue Apr 20, 2010 11:03 pm
Rank: mid-SDK
GD Posts: 495
KGS: Gresil
Location: Finland
Has thanked: 29 times
Been thanked: 9 times

Re: Font sizes in Kombilo

Post by Gresil »

Thanks! Editing the .app file was enough.
So you've got an eye?
That don't impress me much
User avatar
ugoertz
Dies in gote
Posts: 63
Joined: Tue Dec 14, 2010 3:50 am
GD Posts: 0
Been thanked: 40 times

Re: Font sizes in Kombilo

Post by ugoertz »

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
User avatar
emeraldemon
Gosei
Posts: 1744
Joined: Sun May 02, 2010 1:33 pm
GD Posts: 0
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
Has thanked: 697 times
Been thanked: 287 times

Re: Font sizes in Kombilo

Post by 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?)
martyd9906
Beginner
Posts: 5
Joined: Sun Jan 02, 2011 12:44 pm
Rank: KGS4
GD Posts: 0

Re: Font sizes in Kombilo

Post by martyd9906 »

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.
Post Reply