<?xml version="1.0" encoding="UTF-8"?>
<!--

  Copyright 2020 Christian Hergert <christian@hergert.me>

  GtkSourceView is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  GtkSourceView is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with this library; if not, see <http://www.gnu.org/licenses/>.

-->
<style-scheme id="Adwaita-dark" _name="Adwaita Dark" version="1.0">
  <author>Christian Hergert</author>
  <_description>An style scheme for Adwaita</_description>

  <!-- Named Colors -->
  <color name="blue_1"                     value="#99C1F1"/>
  <color name="blue_2"                     value="#62A0EA"/>
  <color name="blue_3"                     value="#3584E4"/>
  <color name="blue_4"                     value="#1C71D8"/>
  <color name="blue_5"                     value="#1A5FB4"/>
  <color name="blue_6"                     value="#1B497E"/>
  <color name="blue_7"                     value="#193D66"/>
  <color name="brown_1"                    value="#CDAB8F"/>
  <color name="brown_2"                    value="#B5835A"/>
  <color name="brown_3"                    value="#986A44"/>
  <color name="brown_4"                    value="#865E3C"/>
  <color name="brown_5"                    value="#63452C"/>
  <color name="chameleon_3"                value="#4E9A06"/>
  <color name="dark_1"                     value="#77767B"/>
  <color name="dark_2"                     value="#5E5C64"/>
  <color name="dark_3"                     value="#504E55"/>
  <color name="dark_4"                     value="#3D3846"/>
  <color name="dark_5"                     value="#241F31"/>
  <color name="dark_6"                     value="#000000"/>
  <color name="green_1"                    value="#8FF0A4"/>
  <color name="green_2"                    value="#57E389"/>
  <color name="green_3"                    value="#33D17A"/>
  <color name="green_4"                    value="#2EC27E"/>
  <color name="green_5"                    value="#26A269"/>
  <color name="green_6"                    value="#1F7F56"/>
  <color name="green_7"                    value="#1C6849"/>
  <color name="libadwaita-dark"            value="#262626"/>
  <color name="libadwaita-dark-alt"        value="#303030"/>
  <color name="light_1"                    value="#FFFFFF"/>
  <color name="light_2"                    value="#FCFCFC"/>
  <color name="light_3"                    value="#F6F5F4"/>
  <color name="light_4"                    value="#DEDDDA"/>
  <color name="light_5"                    value="#C0BFBC"/>
  <color name="light_6"                    value="#B0AFAC"/>
  <color name="light_7"                    value="#9A9996"/>
  <color name="orange_1"                   value="#FFBE6F"/>
  <color name="orange_2"                   value="#FFA348"/>
  <color name="orange_3"                   value="#FF7800"/>
  <color name="orange_4"                   value="#E66100"/>
  <color name="orange_5"                   value="#C64600"/>
  <color name="purple_1"                   value="#DC8ADD"/>
  <color name="purple_2"                   value="#C061CB"/>
  <color name="purple_3"                   value="#9141AC"/>
  <color name="purple_4"                   value="#813D9C"/>
  <color name="purple_5"                   value="#613583"/>
  <color name="red_1"                      value="#F66151"/>
  <color name="red_2"                      value="#ED333B"/>
  <color name="red_3"                      value="#E01B24"/>
  <color name="red_4"                      value="#C01C28"/>
  <color name="red_5"                      value="#A51D2D"/>
  <color name="teal_1"                     value="#93DDC2"/>
  <color name="teal_2"                     value="#5BC8AF"/>
  <color name="teal_3"                     value="#33B2A4"/>
  <color name="teal_4"                     value="#26A1A2"/>
  <color name="teal_5"                     value="#218787"/>
  <color name="violet_2"                   value="#7D8AC7"/>
  <color name="violet_3"                   value="#6362C8"/>
  <color name="violet_4"                   value="#4E57BA"/>
  <color name="yellow_1"                   value="#F9F06B"/>
  <color name="yellow_2"                   value="#F8E45C"/>
  <color name="yellow_3"                   value="#F6D32D"/>
  <color name="yellow_4"                   value="#F5C211"/>
  <color name="yellow_5"                   value="#E5A50A"/>
  <color name="yellow_6"                   value="#D38B09"/>

  <!-- Builder Private (TODO: Push these Upstream) -->
  <style name="debugger::breakpoint"       background="blue_4" foreground="light_1"/>

  <!-- Global Styles -->
  <style name="background-pattern"         background="libadwaita-dark-alt"/>
  <style name="bracket-match"              bold="true"/>
  <style name="current-line"               background="libadwaita-dark-alt"/>
  <style name="current-line-number"        background="libadwaita-dark-alt" foreground="light_7"/>
  <style name="draw-spaces"                foreground="dark_3"/>
  <style name="line-numbers"               background="libadwaita-dark" foreground="dark_2"/>
  <style name="map-overlay"                background="#rgba(47,46,48,.6)"/>
  <style name="right-margin"               background="dark_1" foreground="dark_1"/>
  <style name="search-match"               background="yellow_4" foreground="dark_4"/>
  <style name="text"                       background="libadwaita-dark" foreground="light_5"/>
  <style name="cursor"                     foreground="light_5"/>

  <!-- Defaults -->
  <style name="def:base-n-integer"         foreground="violet_2"/>
  <style name="def:boolean"                foreground="violet_2"/>
  <style name="def:comment"                foreground="dark_1"/>
  <style name="def:constant"               foreground="violet_2"/>
  <style name="def:decimal"                foreground="violet_2"/>
  <style name="def:deletion"               strikethrough="true"/>
  <style name="def:doc-comment-element"    foreground="light_7"/>
  <style name="def:floating-point"         foreground="violet_2"/>
  <style name="def:function"               foreground="blue_2"/>
  <style name="def:heading"                foreground="teal_3" bold="true"/>
  <style name="def:keyword"                foreground="orange_2" bold="true"/>
  <style name="def:link-destination"       foreground="blue_2" italic="true" underline="low"/>
  <style name="def:link-text"              foreground="red_2"/>
  <style name="def:list-marker"            foreground="orange_4" bold="true"/>
  <style name="def:net-address"            foreground="blue_2" underline="low"/>
  <style name="def:number"                 foreground="violet_2"/>
  <style name="def:preformatted-section"   foreground="violet_2"/>
  <style name="def:preprocessor"           foreground="orange_4"/>
  <style name="def:shebang"                foreground="light_7" bold="true"/>
  <style name="def:special-char"           foreground="red_1" bold="false"/>
  <style name="def:string"                 foreground="teal_2"/>
  <style name="def:strong-emphasis"        bold="true"/>
  <style name="def:type"                   foreground="teal_2" bold="true"/>
  <style name="def:underlined"             underline="single"/>
  <style name="def:warning"                underline="error" underline-color="yellow_4"/>

  <!-- C# -->
  <style name="c-sharp:format"             foreground="violet_4"/>
  <style name="c-sharp:preprocessor"       foreground="dark_2"/>

  <!-- C -->
  <style name="c:printf"                   foreground="violet_2"/>
  <style name="c:signal-name"              foreground="red_1"/>
  <style name="c:storage-class"            foreground="teal_2" bold="true"/>
  <style name="c:type-keyword"             foreground="teal_2" bold="true"/>

  <!-- CSS -->
  <style name="css:id-selector"            foreground="teal_3" bold="true"/>
  <style name="css:property-name"          foreground="orange_3"/>
  <style name="css:pseudo-selector"        foreground="violet_2" bold="true"/>
  <style name="css:selector-symbol"        foreground="orange_3" bold="true"/>
  <style name="css:type-selector"          foreground="teal_3" bold="true"/>
  <style name="css:vendor-specific"        foreground="yellow_5"/>

  <!-- Diff -->
  <style name="diff:added-line"            foreground="teal_3"/>
  <style name="diff:changed-line"          foreground="orange_3"/>
  <style name="diff:diff-file"             foreground="violet_2"/>
  <style name="diff:location"              foreground="yellow_4"/>
  <style name="diff:removed-line"          foreground="red_1"/>

  <!-- Go -->
  <style name="go:printf"                  foreground="violet_4"/>

  <!-- Python 2 -->
  <style name="python:builtin-function"    foreground="blue_2"/>
  <style name="python:class-name"          foreground="teal_2" bold="true"/>
  <style name="python:module-handler"      foreground="red_1"/>

  <!-- Rust -->
  <style name="rust:attribute"             foreground="violet_2"/>
  <style name="rust:lifetime"              foreground="orange_2" bold="false" italic="false"/>
  <style name="rust:macro"                 foreground="violet_2" bold="false"/>
  <style name="rust:scope"                 foreground="orange_2"/>

  <!-- Vala -->
  <style name="vala:attributes"            foreground="light_5" bold="false"/>

  <!-- XML -->
  <style name="xml:attribute-name"         foreground="orange_3"/>
  <style name="xml:attribute-value"        foreground="violet_2"/>
  <style name="xml:element-name"           foreground="teal_3"/>
  <style name="xml:namespace"              foreground="yellow_4"/>
  <style name="xml:processing-instruction" foreground="yellow_4" bold="true"/>

</style-scheme>