Re: GtkSourceView, using current-line style for other elements also?



Hi Stefan,

On Sun, Jun 12, 2016 at 05:11:43PM +0200, Stefan Salewski wrote:
File classic.xml

<!-- Global Settings -->
<style name="current-line"                background="#eeeeec"/>
<style name="current-line-number"         background="#eeeeec"/>

Is my feeling correct, that these global styles can not be used for
other syntax highlight purposes? The reason for the question is, that
all predefined color files define mostly foreground colors with high
contrast to background, and I would need one available predefined very
similar to background, current-line should be ok, but using it seems
not to work. My nim.lang is fine  with my own color scheme, but I
considered making it more compatible with other existing color schemes.
And for that I would need an existing color for the vertical bars at th
e left in http://ssalewski.de/tmp/NEd-SHD.png

Yes you can call the gtk_source_style_scheme_get_style() function.

--
Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]