Hi List, Almost finished with a working version of GUI preferences for patches. It allows:
like object borders, (non-iemgui) text, xlets, canvas bg, etc. 2) choose a preset from a dropdown list to immediately change all colors to some kind of common theme. I just have "inverted" right now, which is white objects on black bg. But there could be "pd-extended", "vanilla", and whatever else would be nice for quick, two-click access. 3) global array called ::pd_colors that controls the colors. So you can change $::pd_colors(selected) orange and all the canvas items that are tagged as selected will turn orange. (Plus the menubuttons in the gui dialog will update to reflect the new color.)
Question 1: How do I hook this into Yvan Volochine's gui-prefs stuff? It currently only saves recent files-- is there a guide on how to add more gui preferences?
Question 2: I've seen screenshots of patches where people obviously dug into the c code and changed colors to achieve some scheme. If you have one you'd like to appear in the dropdown list, send me the colors for canvas items and I'll add a preset.
These colors don't change any of the dialogs or main Pd window, btw.
-Jonathan
Hi List, Almost finished with a working version of GUI preferences for patches. It allows:
- choose your own default colors for common types of items on a
canvas, like object borders, (non-iemgui) text, xlets, canvas bg, etc.
Is it just possible to have background in black, and fonts (comments) in white without using [cnv] or [cyclone/comment]?
this setup is so usefull when working with lights.
From: Patrice Colet colet.patrice@free.fr To: pd-list pd-list@iem.at Cc: Jonathan Wilkes jancsika@yahoo.com Sent: Saturday, June 15, 2013 7:54 PM Subject: Re: [PD] pd color presets
Hi List, Almost finished with a working version of GUI preferences for patches. It allows:
- choose your own default colors for common types of items on a
canvas, like object borders, (non-iemgui) text, xlets, canvas bg, etc.
Is it just possible to have background in black, and fonts (comments) in white without using [cnv] or [cyclone/comment]?
this setup is so usefull when working with lights.
http://puredata.info/Members/jancsika/inverted_colors.webm/base_view
-Jonathan
De: "Jonathan Wilkes" jancsika@yahoo.com
Is it just possible to have background in black, and fonts (comments) in white
http://puredata.info/Members/jancsika/inverted_colors.webm/base_view
-Jonathan
great! thanks a lot
From: Patrice Colet colet.patrice@free.fr To: pd-list pd-list@iem.at Cc: Jonathan Wilkes jancsika@yahoo.com Sent: Sunday, June 16, 2013 7:55 AM Subject: Re: [PD] pd color presets
De: "Jonathan Wilkes" jancsika@yahoo.com
Is it just possible to have background in black, and fonts (comments) in white
http://puredata.info/Members/jancsika/inverted_colors.webm/base_view
-Jonathan
great! thanks a lot
It could probably be tweaked-- probably box borders with grey instead of white would be a little more aesthetically pleasing.
-Jonathan
hi Jonathan,
How do I hook this into Yvan Volochine's gui-prefs stuff? It currently only saves recent files-- is there a guide on how to add more gui preferences?
IIRC it should be pretty straightforward (although I wrote that some time ago..).
have a look at how it's done for recentfiles inside
::pd_guiprefs::write_recentfiles()
(and probably
::pd_guiprefs::init()
as well..) and do the same thing =)
just use another filename for the stuff you wanna save and use the main
procs for read/write ::pd_guiprefs::get_config()
and
::pd_guiprefs::write_config()
https://github.com/gusano/pure-data/blob/master/tcl/pd_guiprefs.tcl#L26-65
let me know if I can help
ciao, y