<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
as mentioned before, syntax highlighting can be customized by
editing the respective configuration files in the resource
directory.<br>
What can (unfortunately) not be customized at the moment are the
color used for highlighting the current line, the color used for
bracket matching, and the color used to mark the extent of an
autocompletion expansion.<br>
<br>
On 2011-01-25 18:14, Johannes Heck wrote:<br>
<blockquote
cite="mid:AANLkTi=eKyzMX7p_WQ2cRoo36pB_vD95MC3ENSbYC2fd@mail.gmail.com"
type="cite">
<div>
<div>I wonder if<br>
<blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px
solid rgb(204, 204, 204); padding-left: 1ex;"
class="gmail_quote">
<table class="valuelist">
<tbody>
<tr>
<td class="topAlign"><tt>QPalette::Highlight</tt></td>
<td class=" topAlign"><tt>12</tt></td>
<td class="topAlign">A color to indicate a selected
item or the current item. By default, the highlight
color is <a moz-do-not-send="true"
href="http://doc.qt.nokia.com/4.7/qt.html#GlobalColor-enum">Qt::darkBlue</a>.</td>
</tr>
<tr>
<td class="topAlign"><tt>QPalette::HighlightedText</tt></td>
<td class=" topAlign"><tt>13</tt></td>
<td class="topAlign">A text color that contrasts with
<tt>Highlight</tt>. By default, the highlighted text
color is <a moz-do-not-send="true"
href="http://doc.qt.nokia.com/4.7/qt.html#GlobalColor-enum">Qt::white</a>.</td>
</tr>
</tbody>
</table>
</blockquote>
<div>are used for the highlighting e.g. the active line in TW
or text that was just put in by using the auto-completion
(see <b>highlight2.JPG</b> above). Wouldn't the use of it
produce a better contrast, depending on the current OS color
theme (w/o Win Xp-Vista and OS X)? <br>
</div>
</div>
</div>
</blockquote>
<br>
The issue is a different one. If you normally select text (e.g. with
the mouse), the current color theme should be respected. In
autocompletion, this is no normal selection (e.g., if you hit "Del",
you won't remove it), to which the QPalette::Highlight* items above
refer. Instead, everything that was added as a result of the
autocompletion is highlighted for convenience, so the user can see
what has changed. If this were colored the same way as a normal
selection, the two would be indistinguishable, which is not the
intended behavior.<br>
<br>
I obviously do see the problem, however. Could you add this to the
issue tracker on Google Code so we don't forget about this?<br>
<br>
HTH<br>
Stefan<br>
</body>
</html>