colbyga / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

Theme support #188

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if different themes could be chosen for the board and pieces.

Original issue reported on code.google.com by wouterst...@gmail.com on 8 Aug 2007 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by lobais on 29 Aug 2007 at 8:07

GoogleCodeExporter commented 9 years ago
The first candidate can be the rainbow chess set:
http://home.hu.inter.net/~prochess/lovass/rainbow.htm

Original comment by gbtami on 2 Jan 2008 at 9:25

GoogleCodeExporter commented 9 years ago
Here are some other idea's I've had.

I'd like the theming to be very flexible. I've even thought of using webkit or
something. However then I'm not sure how fluently the animations can be made.

For the yousee.svg clock integration also has to be possible.

Original comment by lobais on 2 Jan 2008 at 11:48

Attachments:

GoogleCodeExporter commented 9 years ago
I like to see this too in pychess:
http://www.artnet.com/artwork/52150/1158/play-it-by-trust.html

One can think it's just fun, but you can look at it as an introduction to 
blindfold
chess.

Original comment by gbtami on 16 Jan 2008 at 6:53

GoogleCodeExporter commented 9 years ago
Yeah, there could be levels of blindfold themes.
One theme could also have all pieces looking the same.

Original comment by lobais on 16 Jan 2008 at 9:04

GoogleCodeExporter commented 9 years ago
And the true blindfold chess can be a theme with 100% transparent piece set. 
Cool!

Original comment by gbtami on 17 Jan 2008 at 7:33

GoogleCodeExporter commented 9 years ago
Clutter: http://www.clutter-project.org/ would probably be useable to create 
really
nice animation in themes.

Original comment by lobais on 17 Jan 2008 at 11:51

GoogleCodeExporter commented 9 years ago
The xmlformat could also be inspired be googles Theme API:
http://code.google.com/apis/themes/

Original comment by lobais on 18 Jan 2008 at 11:53

GoogleCodeExporter commented 9 years ago
Wow, this made me consider webkit once again: 
http://webkit.org/blog/138/css-animation/

Original comment by lobais on 11 Feb 2008 at 9:02

GoogleCodeExporter commented 9 years ago
Added a new drawPiece3() and get_svg_pieces() in 
http://code.google.com/r/gbtami-exportmenu/source/browse/lib/pychess/gfx/Pieces.
py to let use different .svg piece sets.

At this stage you can set a default piece set in line #175:
svg_pieces = get_svg_pieces('cburnett')

The available values are: cburnett, celtic, chessmonk, freestaunton.
I'm thinking to add a new "Theme" tab into Preferences, something like Rybka 
uses.
What do you think?

Original comment by gbtami on 28 Feb 2012 at 8:34

GoogleCodeExporter commented 9 years ago
Added piece theme selection support into preferences.

Original comment by gbtami on 13 Mar 2012 at 9:05

Attachments:

GoogleCodeExporter commented 9 years ago
Filled .ttf pieces.

Original comment by gbtami on 16 Mar 2012 at 1:03

Attachments:

GoogleCodeExporter commented 9 years ago
Awesome :)
We can combine this with 'variants' to support Chinese chess.

In the preferences, how about changing the dropdown+preview for larger 
clickable previews? Similar to the desktop theme selector.
I believe that one uses a treeview or an iconview. Could file that in another 
bug report though.

Original comment by lobais on 19 Mar 2012 at 2:41

GoogleCodeExporter commented 9 years ago
I don't like this dropdown (too long) too. Can you describe this theme selector 
thing a bit more detailed, please?

Original comment by gbtami on 19 Mar 2012 at 3:48

GoogleCodeExporter commented 9 years ago
Of course. I'm thinking of this dialog: 
http://www.blogcdn.com/downloadsquad.switched.com/media/2010/01/ubuntu-themes-ea
sy.jpg

Original comment by lobais on 21 Mar 2012 at 2:55

GoogleCodeExporter commented 9 years ago
The preview icons now created in users locale dir if not find. I'm not sure 
this is the best approach. What do you think?

Original comment by gbtami on 27 Mar 2012 at 8:36

Attachments:

GoogleCodeExporter commented 9 years ago
Looks great :)
The precomputation is a bit worrying though. Does this add to the initial 
program start-up time, or is it only done when the icons are shown?
If the generation is very fast, we could not store the images at all, or store 
them in temp.
Otherwise we could perhaps store them together with the themes themselves?

Original comment by lobais on 28 Mar 2012 at 11:29

GoogleCodeExporter commented 9 years ago
I think we better to chose the latter. Generating preview icons f.e. on my old 
Celeron box takes time (4-5 sec).

Original comment by gbtami on 28 Mar 2012 at 6:53

GoogleCodeExporter commented 9 years ago
Merged to tip.
Another part of this issue (board theme handling) is waiting for contribution 
yet.

Original comment by gbtami on 2 Apr 2012 at 7:13

GoogleCodeExporter commented 9 years ago
Also, if anybody wants to give it a go, this might be a helpful reference for 
lazy generation of the treeview rows: 
http://stackoverflow.com/questions/3164262/lazy-loaded-list-view-in-gtk

Original comment by lobais on 2 Jun 2012 at 8:15