[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: Review Request 115928: Auto-adapt hardcoded colors to current color scheme
From: "Alex Turbov" <i.zaufi () gmail ! com>
Date: 2014-02-21 6:29:07
Message-ID: 20140221062907.27041.84914 () probe ! kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On Feb. 21, 2014, 6:06 a.m., Christoph Cullmann wrote:
> > Hmm, as I use no dark scheme, I have no real opinion here.
> > For KDE 4.x it seems like a reasonable workaround for hard-coded colors, for KF5, \
> > if we remove the hard-coded colors in the xmls in favor of more default roles, it \
> > might not be that relevant anymore, or? Still guess can't hurt, but others shall \
> > decide here, that perhaps use dark schemes ;)
I use dark color scheme... and all (yes, absolutely ALL) syntaxes in kate are \
unreadable! it is why I maintain my \
[repo](https://github.com/zaufi/kate-stuff/tree/master/schema) w/ my preffered \
(reconfigured) colors for all syntaxes I work w/. and it is easier sometimes to edit \
that text files and reimport, than use kate's UI for that task (damn, I must find the \
time finally to express my thoughts about that ugly^W color configuring UI we have \
now)...
- Alex
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115928/#review50431
-----------------------------------------------------------
On Feb. 20, 2014, 11:48 p.m., Milian Wolff wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115928/
> -----------------------------------------------------------
>
> (Updated Feb. 20, 2014, 11:48 p.m.)
>
>
> Review request for Kate and Christoph Cullmann.
>
>
> Repository: kate
>
>
> Description
> -------
>
> This code is used like that for years in KDevelop and works quite
> nicely for most cases.
>
> Note that for darker color schemes, this most often results in
> a bit less-intense colors which is not a big problem as colors stand
> out much more against a dark background. And its better than before,
> where you'd end up with hard-coded colors for a bright background
> scheme...
>
> Bright color schemes are not affected, as long as they fulfill the
> conditition of having a lower luma for the background color compared
> to the foreground color.
>
>
> Diffs
> -----
>
> part/syntax/katehighlight.cpp 1ae649d
> part/utils/katedefaultcolors.h PRE-CREATION
> part/utils/katedefaultcolors.cpp PRE-CREATION
>
> Diff: https://git.reviewboard.kde.org/r/115928/diff/
>
>
> Testing
> -------
>
> Created a new kate scheme with a dark and with a bright system color scheme. The \
> bright one stayed as-is. The dark one auto-adapted all colors - even those \
> hardcoded in highlighting .xml files!
> The result is an always-readable text on dark schemes, where previously hard coded \
> colors lead to unreadable mess which one had to fix manually...
>
> File Attachments
> ----------------
>
> LaTeX without adaption
> https://git.reviewboard.kde.org/media/uploaded/files/2014/02/20/aea5478c-0cf8-4dfe-9f4f-350faf2db5f6__kate-no-adapt-latex.png
> LaTeX with adaption
> https://git.reviewboard.kde.org/media/uploaded/files/2014/02/20/a1fcec62-1815-4874-964e-58d3ae240606__kate-auto-adapt-latex.png
>
>
> Thanks,
>
> Milian Wolff
>
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/115928/">https://git.reviewboard.kde.org/r/115928/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On February 21st, 2014, 6:06 a.m. UTC, \
<b>Christoph Cullmann</b> wrote:</p> <blockquote style="margin-left: 1em; \
border-left: 2px solid #d0d0d0; padding-left: 10px;"> <pre style="white-space: \
pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: \
-o-pre-wrap; word-wrap: break-word;">Hmm, as I use no dark scheme, I have no real \
opinion here. For KDE 4.x it seems like a reasonable workaround for hard-coded \
colors, for KF5, if we remove the hard-coded colors in the xmls in favor of more \
default roles, it might not be that relevant anymore, or? Still guess can't hurt, \
but others shall decide here, that perhaps use dark schemes ;)</pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I use dark color \
scheme... and all (yes, absolutely ALL) syntaxes in kate are unreadable! it is why I \
maintain my [repo](https://github.com/zaufi/kate-stuff/tree/master/schema) w/ my \
preffered (reconfigured) colors for all syntaxes I work w/. and it is easier \
sometimes to edit that text files and reimport, than use kate's UI for that task \
(damn, I must find the time finally to express my thoughts about that ugly^W color \
configuring UI we have now)... </pre>
<br />
<p>- Alex</p>
<br />
<p>On February 20th, 2014, 11:48 p.m. UTC, Milian Wolff wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('https://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for Kate and Christoph Cullmann.</div>
<div>By Milian Wolff.</div>
<p style="color: grey;"><i>Updated Feb. 20, 2014, 11:48 p.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
kate
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"> This code is used like that for years in KDevelop and works quite \
nicely for most cases.
Note that for darker color schemes, this most often results in
a bit less-intense colors which is not a big problem as colors stand
out much more against a dark background. And its better than before,
where you'd end up with hard-coded colors for a bright background
scheme...
Bright color schemes are not affected, as long as they fulfill the
conditition of having a lower luma for the background color compared
to the foreground color.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Created a new kate scheme with a dark and with a bright system color \
scheme. The bright one stayed as-is. The dark one auto-adapted all colors - even \
those hardcoded in highlighting .xml files!
The result is an always-readable text on dark schemes, where previously hard coded \
colors lead to unreadable mess which one had to fix manually...</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>part/syntax/katehighlight.cpp <span style="color: grey">(1ae649d)</span></li>
<li>part/utils/katedefaultcolors.h <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>part/utils/katedefaultcolors.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/115928/diff/" style="margin-left: \
3em;">View Diff</a></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">File Attachments \
</h1>
<ul>
<li><a href="https://git.reviewboard.kde.org/media/uploaded/files/2014/02/20/aea5478c-0cf8-4dfe-9f4f-350faf2db5f6__kate-no-adapt-latex.png">LaTeX \
without adaption</a></li>
<li><a href="https://git.reviewboard.kde.org/media/uploaded/files/2014/02/20/a1fcec62-1815-4874-964e-58d3ae240606__kate-auto-adapt-latex.png">LaTeX \
with adaption</a></li>
</ul>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic