<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>phaaa ... that was too easy!</p>
    <p>simply putting @symbol_color into the expression for data-driven
      font colour does the trick. <br>
    </p>
    <p>I really love to see all these functions popping up in the last
      versions, but without enough examples in the docs, you'll never
      know if just need this single function, or if you need a full
      circus of other stuff before or around it in some way.</p>
    <p>Now that I found out about the function name, I was finally able
      to find the answer on stackexchange as well:
      <a class="moz-txt-link-freetext" href="https://gis.stackexchange.com/q/152203/8202">https://gis.stackexchange.com/q/152203/8202</a><br>
    </p>
    <p>Thanx a lot!</p>
    <p>Bernd<br>
    </p>
    <div class="moz-cite-prefix">Am 11.06.19 um 14:26 schrieb DelazJ:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAECJsSrz+3bnRV8iMhCuRJ8sas6J75r-zSZvXReALo_18a0jPw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi Bernd<br>
          You might be looking for the @symbol_color variable (<a
href="https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/expression.html?highlight=symbol_color#variables-functions"
            moz-do-not-send="true">https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/expression.html?highlight=symbol_color#variables-functions</a>)</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Harrissou<br>
        </div>
        <div><br>
          <div class="gmail_quote">Le 10 juin 2019 21:11:18 GMT+02:00,
            Bernd Vogelgesang <<a
              href="mailto:bernd.vogelgesang@gmx.de" target="_blank"
              moz-do-not-send="true">bernd.vogelgesang@gmx.de</a>> a
            écrit :
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <pre class="m_-5813829243310323536k9mail">Hi,

is there an "easy" way to somehow show the label of a line in the same
colour as the line itself?

I have a layer of 50somewhat lines which mark overlapping areas. To be
able to better differenciate between those on a map, I would like to
give the labels of the line feature the same colours as the lines
themselves (sounds reasonabe).

The lines are just random coloured as categorical by their unique name.
Can I somehow get the information of the line colour, so I can set the
label colour data-driven by some expressions or so?

Cheers,

Bernd<hr>Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>