Custom conflict colors

View: New views
5 Messages — Rating Filter:   Alert me  

Custom conflict colors

by daspostloch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

first, thanks for this great application. Since I converted
to a dark gtk scheme, meld's output is hardly readable
to me.  I found an earlier post on changing colors [1],
yet the gconf keys do not seem to have an effect. Has
something changed since 2006 or am I doing it wrong?
I fire up gconf-editor, navigate to /apps/meld and add
keys for color_conflict_fg, color_delete_fg, color_inline_fg.
Neither plain color names as Pink or rgb values as #ffb100
seem to work, not after restarting meld or after logging out
and back in (both added as strings and without quotes or
something).
I'm on Fedora 10 Cambridge with a local installation.

Thanks for any hints,
Matt

[1] http://mail.gnome.org/archives/meld-list/2006-February/msg00004.html
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Custom conflict colors

by Kai Willadsen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/8/21  <daspostloch@...>:

> Hi,
>
> first, thanks for this great application. Since I converted
> to a dark gtk scheme, meld's output is hardly readable
> to me.  I found an earlier post on changing colors [1],
> yet the gconf keys do not seem to have an effect. Has
> something changed since 2006 or am I doing it wrong?
> I fire up gconf-editor, navigate to /apps/meld and add
> keys for color_conflict_fg, color_delete_fg, color_inline_fg.
> Neither plain color names as Pink or rgb values as #ffb100
> seem to work, not after restarting meld or after logging out
> and back in (both added as strings and without quotes or
> something).

We actually don't use those foreground colours anywhere except in
inline highlighting, iirc. You should be able to change the background
colour of conflicts by setting the /apps/meld/color_conflict_bg key -
this works for me on current Meld, but the change bars at the side
apparently don't use these colours anymore.

Kai
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Custom conflict colors

by daspostloch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, it seems that you are right in that background colors
can be changed in the single file comparison and foreground
can't. But even if you do not change the foreground colors,
could you still load your settings?
Or is it possible to specify a custom gtk theme path?
Unfortunately, the foreground is a mid-grey, so it's hard to
pick different backgrounds for it and still keep everything
visible.

But I was also talking about the directory comparison
(forgot to mention). Is there a possibility of changing colors
for this?



On 8/21/09, Kai Willadsen <kai.willadsen@...> wrote:

> 2009/8/21  <daspostloch@...>:
>> Hi,
>>
>> first, thanks for this great application. Since I converted
>> to a dark gtk scheme, meld's output is hardly readable
>> to me.  I found an earlier post on changing colors [1],
>> yet the gconf keys do not seem to have an effect. Has
>> something changed since 2006 or am I doing it wrong?
>> I fire up gconf-editor, navigate to /apps/meld and add
>> keys for color_conflict_fg, color_delete_fg, color_inline_fg.
>> Neither plain color names as Pink or rgb values as #ffb100
>> seem to work, not after restarting meld or after logging out
>> and back in (both added as strings and without quotes or
>> something).
>
> We actually don't use those foreground colours anywhere except in
> inline highlighting, iirc. You should be able to change the background
> colour of conflicts by setting the /apps/meld/color_conflict_bg key -
> this works for me on current Meld, but the change bars at the side
> apparently don't use these colours anymore.
>
> Kai
>
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Custom conflict colors

by daspostloch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh, and I forgot that when setting everything to black bg,
the arrows with which to resolve conflicts are not visible
anymore. Can their color be changed?
Thanks, Matt

On 8/24/09, daspostloch@... <daspostloch@...> wrote:

> Thanks, it seems that you are right in that background colors
> can be changed in the single file comparison and foreground
> can't. But even if you do not change the foreground colors,
> could you still load your settings?
> Or is it possible to specify a custom gtk theme path?
> Unfortunately, the foreground is a mid-grey, so it's hard to
> pick different backgrounds for it and still keep everything
> visible.
>
> But I was also talking about the directory comparison
> (forgot to mention). Is there a possibility of changing colors
> for this?
>
>
>
> On 8/21/09, Kai Willadsen <kai.willadsen@...> wrote:
>> 2009/8/21  <daspostloch@...>:
>>> Hi,
>>>
>>> first, thanks for this great application. Since I converted
>>> to a dark gtk scheme, meld's output is hardly readable
>>> to me.  I found an earlier post on changing colors [1],
>>> yet the gconf keys do not seem to have an effect. Has
>>> something changed since 2006 or am I doing it wrong?
>>> I fire up gconf-editor, navigate to /apps/meld and add
>>> keys for color_conflict_fg, color_delete_fg, color_inline_fg.
>>> Neither plain color names as Pink or rgb values as #ffb100
>>> seem to work, not after restarting meld or after logging out
>>> and back in (both added as strings and without quotes or
>>> something).
>>
>> We actually don't use those foreground colours anywhere except in
>> inline highlighting, iirc. You should be able to change the background
>> colour of conflicts by setting the /apps/meld/color_conflict_bg key -
>> this works for me on current Meld, but the change bars at the side
>> apparently don't use these colours anymore.
>>
>> Kai
>>
>
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Custom conflict colors

by Kai Willadsen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/8/25  <daspostloch@...>:
> Thanks, it seems that you are right in that background colors
> can be changed in the single file comparison and foreground
> can't. But even if you do not change the foreground colors,
> could you still load your settings?

You mean could Meld apply the foreground colours? I guess so, but that
would require some work with applying tags to the gtk.TextBuffer that
we don't currently do (except in the inline-highlighting case).

> Or is it possible to specify a custom gtk theme path?

I don't think we do anything special with gtkrc stuff at the moment. I
think that supporting this might be a sensible approach to fixing the
problem.

> Unfortunately, the foreground is a mid-grey, so it's hard to
> pick different backgrounds for it and still keep everything
> visible.
>
> But I was also talking about the directory comparison
> (forgot to mention). Is there a possibility of changing colors
> for this?

Not currently; those colours are defined in tree.py, and they're all constant.

2009/8/25  <daspostloch@...>:
> Oh, and I forgot that when setting everything to black bg,
> the arrows with which to resolve conflicts are not visible
> anymore. Can their color be changed?

At the moment, they're pixmaps, so no. However, the images themselves
are simple, so we could just draw them with cairo and try to use
appropriate colours there.

cheers,
Kai
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list