Hi,
I'd previously written a sorta clumsy tool for setting up Geany with a dark colorscheme, and posted about it here in case it was of interest to anyone. It involved copying some files around, and wasn't very flexible. I've since updated/rewritten it. Improvements are:
* Now it's just one simple python script.
* It's interactive. It'll ask you before it clobbers your existing ~/.geany/filedefs/filetypes.foo files -- if you answer 'y', it *will* of course clobber them.
* Aside from the dark colorscheme, it now comes with a lovely light colorscheme. Nice low contrast, as usual B^). It's also flexible enough to add more colorschemes too.
Dunno if it'll run on anything but a Gnuish OS (since it looks up $HOME and writes files to $HOME/.geany/filedefs). Anyhow, here it is:
http://www.milliwatt-software.com/jmg/files/set_geany_colors.py.bz2
Enjoy. :)
Oh, also, seems like it would be useful if there was some easy way to reload those filetypes.foo files. Currently, every time I change them, I've got to quit and restart Geany to see the changes.
And, as long as I'm here, a feature request: when I select something like "0xffddee" and open the color chooser, it's great that it starts off showing me that color. But it really could use a palette where I can save colors while I'm picking and choosing. Also, when I hit ok, seems like it should go ahead and replace the original string I selected with the new one, right?
Thanks, ---John
On Wed, 27 Jun 2007 00:55:59 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
I'd previously written a sorta clumsy tool for setting up Geany with a dark colorscheme, and posted about it here in case it was of interest to anyone. It involved copying some files around, and wasn't very flexible. I've since updated/rewritten it. Improvements are:
Now it's just one simple python script.
It's interactive. It'll ask you before it clobbers your existing
~/.geany/filedefs/filetypes.foo files -- if you answer 'y', it *will* of course clobber them.
- Aside from the dark colorscheme, it now comes with a lovely light
colorscheme. Nice low contrast, as usual B^). It's also flexible enough to add more colorschemes too.
Dunno if it'll run on anything but a Gnuish OS (since it looks up $HOME and writes files to $HOME/.geany/filedefs). Anyhow, here it is:
http://www.milliwatt-software.com/jmg/files/set_geany_colors.py.bz2
Enjoy. :)
Cool, thank you.
Oh, also, seems like it would be useful if there was some easy way to reload those filetypes.foo files. Currently, every time I change them, I've got to quit and restart Geany to see the changes.
Yes, I think we'll add something like "reload config files".
And, as long as I'm here, a feature request: when I select something like "0xffddee" and open the color chooser, it's great that it starts off showing me that color. But it really could use a palette where I can save colors while I'm picking and choosing.
Good idea. Added in SVN r1647.
Also, when I hit ok, seems like it should go ahead and replace the original string I selected with the new one, right?
This was the idea. If you don't want it to add or replace the chosen colour, just hit Cancel. Actually, it just inserts the text ignoring any selection. I'm about to fix it.
Regards, Enrico
On 6/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 27 Jun 2007 00:55:59 -0400, "John Gabriele" jmg3000@gmail.com wrote:
[snip]
And, as long as I'm here, a feature request: when I select something like "0xffddee" and open the color chooser, it's great that it starts off showing me that color. But it really could use a palette where I can save colors while I'm picking and choosing.
Good idea. Added in SVN r1647.
Also, when I hit ok, seems like it should go ahead and replace the original string I selected with the new one, right?
This was the idea. If you don't want it to add or replace the chosen colour, just hit Cancel. Actually, it just inserts the text ignoring any selection. I'm about to fix it.
Excellent! I'm using r1650 right now, and the palette and color-replace works great. Thanks! This save a lot of time. :) One issue though, between restarts, the palette forgets the colors I placed there (by drag-n-drop from the color triangle-thingy). It would be useful if it could remember those colors between restarts.
---John
On Thu, 28 Jun 2007 14:46:07 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 6/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 27 Jun 2007 00:55:59 -0400, "John Gabriele" jmg3000@gmail.com wrote:
[snip]
And, as long as I'm here, a feature request: when I select something like "0xffddee" and open the color chooser, it's great that it starts off showing me that color. But it really could use a palette where I can save colors while I'm picking and choosing.
Good idea. Added in SVN r1647.
Also, when I hit ok, seems like it should go ahead and replace the original string I selected with the new one, right?
This was the idea. If you don't want it to add or replace the chosen colour, just hit Cancel. Actually, it just inserts the text ignoring any selection. I'm about to fix it.
Excellent! I'm using r1650 right now, and the palette and color-replace works great. Thanks! This save a lot of time. :) One issue though, between restarts, the palette forgets the colors I placed there (by drag-n-drop from the color triangle-thingy). It would be useful if it could remember those colors between restarts.
Really? It is possible but would cause to add a bunch of code to retrieve the palette colours, convert them into a format for storage, read them again from storage, convert it back and set the palette again. I just think it is not necessary.
Regards, Enrico
On 6/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 27 Jun 2007 00:55:59 -0400, "John Gabriele" jmg3000@gmail.com wrote: [snip]
And, as long as I'm here, a feature request: when I select something like "0xffddee" and open the color chooser, it's great that it starts off showing me that color. But it really could use a palette where I can save colors while I'm picking and choosing.
Good idea. Added in SVN r1647.
Ah. Noticed a bug.
When I open the color chooser, there's that little display of long rectangle cut in half that shows the color as I adjust it. The typical arrangement is that when the chooser comes up, both halves of that rectangle show the same color. Then, as you adjust, the right side changes while the left side shows what you started out with. This way, you get a better visual indication of how much you're changing a color.
Currently, looks like it does it right the first time you use the color chooser, but then fails thereafter.
---John
On Thu, 28 Jun 2007 14:53:44 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 6/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 27 Jun 2007 00:55:59 -0400, "John Gabriele" jmg3000@gmail.com wrote: [snip]
And, as long as I'm here, a feature request: when I select something like "0xffddee" and open the color chooser, it's great that it starts off showing me that color. But it really could use a palette where I can save colors while I'm picking and choosing.
Good idea. Added in SVN r1647.
Ah. Noticed a bug.
When I open the color chooser, there's that little display of long rectangle cut in half that shows the color as I adjust it. The typical arrangement is that when the chooser comes up, both halves of that rectangle show the same color. Then, as you adjust, the right side changes while the left side shows what you started out with. This way, you get a better visual indication of how much you're changing a color.
Thanks. Should be fixed in SVN r1652.
Regards, Enrico
On 6/29/07, Enrico Tröger enrico.troeger@uvena.de wrote:
[snip]
Then, as you adjust, the right side changes while the left side shows what you started out with. This way, you get a better visual indication of how much you're changing a color.
Thanks. Should be fixed in SVN r1652.
Works now. Thanks!