On Wed, 2016-06-15 at 15:48 +0200, Sébastien Wilmet wrote: > 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. >
Yes, I found that myself already: var st: gtksource.Style = gtksource.getStyle(style, "text") assert(st != nil) objectGet(st, "foreground", addr str, nil) This way I can access the default text foreground and background colors. Unfortunately it took me some hours to find that... But it would be nice if we could use these colors <!-- Global Settings --> <style name="current-line" background="#eeeeec"/> <style name="current-line-number" background="#eeeeec"/> <style name="draw-spaces" foreground="#babdb6"/> <style name="background-pattern" background="#f3f3f3"/> <!-- Bracket Matching --> <style name="bracket-match" foreground="white" background="gray" bold="true"/> <style name="bracket-mismatch" foreground="white" background="red" bold="true"/> <!-- Right Margin --> <style name="right-margin" foreground="#000000" background="#000000"/> <!-- Search Matching --> <style name="search-match" background="yellow"/> in the same way as these starting with :def <!-- Comments --> <style name="def:comment" foreground="blue"/> Seems not to work, in the *.lang files the map-to works not with the "Global Settings". _______________________________________________ gnome-devtools mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-devtools
