<div dir="ltr"><div>The debugger uses wxStyledTextCtrl which seems to override window manager settings for background, it is <span style="line-height:1.5">easy to override the hard coded values but different from other windows which is why it probably does not work by default.</span></div><div><span style="line-height:1.5"><br></span></div><div>Not as trivial to fix so that it works for all (themes/OSes), tough.</div><div><br></div><div>Example:</div><div>diff --git a/lib/debugger/src/dbg_wx_code.erl b/lib/debugger/src/dbg_wx_code.erl</div><div>index a0e6c94..cd85fe7 100644</div><div>--- a/lib/debugger/src/dbg_wx_code.erl</div><div>+++ b/lib/debugger/src/dbg_wx_code.erl</div><div>@@ -88,10 +88,12 @@ code_area(Parent) -></div><div> <span class="Apple-tab-span" style="white-space:pre"> </span> {?wxSTC_ERLANG_MODULES, {64,102,244}},</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span> {?wxSTC_ERLANG_MODULES_ATT, {64,102,244}}</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span> ],</div><div>+ ?stc:styleSetBackground(Ed, ?wxSTC_STYLE_DEFAULT, {127,127,127}),</div><div> </div><div> SetStyle = fun({Style, Color}) -></div><div> <span class="Apple-tab-span" style="white-space:pre"> </span> ?stc:styleSetFont(Ed, Style, FixedFont),</div><div>-<span class="Apple-tab-span" style="white-space:pre"> </span> ?stc:styleSetForeground(Ed, Style, Color)</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span> ?stc:styleSetForeground(Ed, Style, Color),</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span> ?stc:styleSetBackground(Ed, Style, {127,127,127})</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span> end,</div><div> [SetStyle(Style) || Style <- Styles],</div><div> ?stc:setKeyWords(Ed, 0, keyWords()),</div><div><br></div><div><div>I guess most of the other windows work OK then, since tables in observer are hardcoded in observer_defs.hrl, see BG_EVEN/ODD defines.</div></div><div><br></div><div>Regards</div><div>/Dan</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 29, 2016 at 1:49 PM Serge Aleynikov <<a href="mailto:serge@aleynikov.org">serge@aleynikov.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">How do I get the Window of that code view window?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I tried:</div><div class="gmail_default"><font face="arial, helvetica, sans-serif">2> f(P1),f(P2), {links,[P1,P2]} = erlang:process_info(whereis(dbg_wx_winman), links).</font><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><div class="gmail_default">{links,[<0.273.0>,<0.1974.0>]}</div><div class="gmail_default">(mta@nova)10> wxWindow:setBackgroundColour(P2, {128,128,128}).</div><div class="gmail_default">** exception error: no function clause matching wxWindow:setBackgroundColour(<0.1974.0>,</div><div class="gmail_default"><br></div><div class="gmail_default">Apparently the Window is not a Pid but some tuple created by wxWindow.</div><div class="gmail_default"><br></div></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">If you could implement color customization/saving along with having a default light/dark themes that would be great.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This is currently what debugger looks like by default:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><img src="cid:ii_1528d5d9633060b2" alt="image.png" class="GQ" style="max-width: 100%;"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This is what observer looks like:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><img src="cid:ii_1528d5ddd5c26717" alt="image.png" class="GQ" style="max-width: 100%;"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 29, 2016 at 4:16 AM, Dan Gudmundsson <span dir="ltr"><<a href="mailto:dangud@gmail.com" target="_blank">dangud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div>Does wxWindow:setBackgroundColour(Window, Color) work?<div><br></div><div>Anyway that is the simple part, storing configurations, for colors/fonts and so on is the large part of the patch.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 28, 2016 at 7:20 PM Serge Aleynikov <<a href="mailto:serge@aleynikov.org" target="_blank">serge@aleynikov.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Is it possible to customize background color in the "View Module" window of the debugger? I have a dark theme in KDE, and the current white background in that window is very irritating.</div></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>
</blockquote></div><br></div>
</blockquote></div></div>