[gnome-builder/wip/gtk4-port: 774/1774] data/style-schemes: update for GSV 5




commit ff744f4dff10b78022aacd89db6b3ac433828876
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 27 14:06:15 2022 -0700

    data/style-schemes: update for GSV 5
    
    Bringing this back over from gnome-text-editor.

 data/style-schemes/Adwaita-dark.style-scheme.xml   | 182 ----------------
 data/style-schemes/Adwaita.style-scheme.xml        | 178 ----------------
 data/style-schemes/builder-dark.style-scheme.xml   | 206 ------------------
 data/style-schemes/builder-dark.xml                | 234 +++++++++++++++++++++
 .../{builder.style-scheme.xml => builder.xml}      |  70 +++---
 data/style-schemes/meson.build                     |   8 +-
 6 files changed, 261 insertions(+), 617 deletions(-)
---
diff --git a/data/style-schemes/builder-dark.xml b/data/style-schemes/builder-dark.xml
new file mode 100644
index 000000000..cc3d51ca1
--- /dev/null
+++ b/data/style-schemes/builder-dark.xml
@@ -0,0 +1,234 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ This file is part of GtkSourceView
+
+ Copyright (C) 2007 GtkSourceView team
+ Author: Paolo Borelli <pborelli gnome org>
+
+ 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, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+-->
+
+<style-scheme id="builder-dark" name="Builder Dark" version="1.0">
+
+  <author>Paolo Borelli, Christian Hergert</author>
+  <description>Dark color scheme for Builder using the Tango color palette</description>
+
+  <metadata>
+    <property name="variant">dark</property>
+    <property name="light-variant">builder</property>
+    <property name="accent_bg_color">#4186A8</property>
+    <property name="accent_fg_color">#eeeeec</property>
+  </metadata>
+
+  <!-- Tango Palette -->
+  <color name="butter1"                     value="#fce94f"/>
+  <color name="butter2"                     value="#edd400"/>
+  <color name="butter3"                     value="#c4a000"/>
+  <color name="chameleon1"                  value="#8ae234"/>
+  <color name="chameleon2"                  value="#73d216"/>
+  <color name="chameleon3"                  value="#4e9a06"/>
+  <color name="orange1"                     value="#fcaf3e"/>
+  <color name="orange2"                     value="#f57900"/>
+  <color name="orange3"                     value="#ce5c00"/>
+  <color name="skyblue1"                    value="#729fcf"/>
+  <color name="skyblue2"                    value="#3465a4"/>
+  <color name="skyblue3"                    value="#204a87"/>
+  <color name="plum1"                       value="#ad7fa8"/>
+  <color name="plum2"                       value="#75507b"/>
+  <color name="plum3"                       value="#5c3566"/>
+  <color name="chocolate1"                  value="#e9b96e"/>
+  <color name="chocolate2"                  value="#c17d11"/>
+  <color name="chocolate3"                  value="#8f5902"/>
+  <color name="scarletred1"                 value="#ef2929"/>
+  <color name="scarletred2"                 value="#cc0000"/>
+  <color name="scarletred3"                 value="#a40000"/>
+  <color name="aluminium1"                  value="#eeeeec"/>
+  <color name="aluminium2"                  value="#d3d7cf"/>
+  <color name="aluminium3"                  value="#babdb6"/>
+  <color name="aluminium4"                  value="#888a85"/>
+  <color name="aluminium5"                  value="#555753"/>
+  <color name="aluminium6"                  value="#2e3436"/>
+  <color name="white"                       value="#ffffff"/>
+  <color name="pink1"                       value="#dd4a68"/>
+  <color name="red1"                        value="#ff0000"/>
+
+  <color name="dark1"                       value="#1e1e1e"/>
+  <color name="dark2"                       value="#303030"/>
+
+  <color name="transparent"                 value="#rgba(0,0,0,0)"/>
+
+  <!-- Global Settings -->
+  <style name="text"                        foreground="aluminium3" background="dark1"/>
+  <style name="selection"                   foreground="transparent" background="#rgba(136,138,133,.3)"/>
+  <style name="cursor"                      foreground="aluminium2"/>
+  <style name="current-line"                background="dark2"/>
+  <style name="current-line-number"         background="dark2"/>
+  <style name="line-numbers"                foreground="aluminium5" background="dark1"/>
+  <style name="draw-spaces"                 foreground="aluminium5"/>
+  <style name="background-pattern"          background="#202020"/>
+  <style name="map-overlay"                 background="#rgba(136,138,133,0.25)"/>
+
+  <!-- Diagnostics Underlining -->
+  <style name="diagnostician::deprecated"   underline="error" underline-color="aluminium3"/>
+  <style name="diagnostician::unused"       underline="error" underline-color="chocolate2"/>
+  <style name="diagnostician::error"        underline="error" underline-color="red1"/>
+  <style name="diagnostician::note"         underline="error" underline-color="skyblue1"/>
+  <style name="diagnostician::warning"      underline="error" underline-color="orange1"/>
+
+  <!-- Snippets -->
+  <style name="snippet::tab-stop"           background="orange3" foreground="aluminium6"/>
+  <style name="snippet::area"               background="#rgba(86,114,151,.5)"/>
+
+  <!-- Debugger -->
+  <style name="debugger::current-breakpoint" foreground="#2e3436" background="#fcaf3e"/>
+  <style name="debugger::breakpoint"         foreground="#ffffff" background="#204a87"/>
+
+  <!-- Hover links -->
+  <style name="action::hover-definition"    background="#41464c" underline="true"/>
+
+  <!-- Bracket Matching -->
+  <style name="bracket-match"               foreground="chocolate2" bold="true"/>
+  <style name="bracket-mismatch"            foreground="aluminium1" background="scarletred2" bold="true"/>
+
+  <!-- Right Margin -->
+  <style name="right-margin"                foreground="#484749" background="#484749"/>
+
+  <!-- Search Matching -->
+  <style name="search-match"                foreground="aluminium1" background="chameleon3"/>
+  <style name="quick-highlight-match"       background="#rgba(78,154,6,.25)"/>
+
+  <!-- Search Shadow -->
+  <style name="search-shadow"               background="#rgba(0,0,0,0.4)"/>
+
+  <!-- Spellchecker Matching -->
+  <style name="misspelled-match"            foreground="#000000" background="#b3d4fc"/>
+
+  <!-- Comments -->
+  <style name="def:comment"                 foreground="aluminium4"/>
+  <style name="def:shebang"                 foreground="aluminium4" bold="true"/>
+  <style name="def:doc-comment-element"     italic="true"/>
+
+  <!-- Constants -->
+  <style name="def:constant"                foreground="butter2"/>
+  <style name="def:string"                  foreground="#0077aa"/>
+  <style name="def:special-char"            foreground="#dd4a68"/>
+  <style name="def:special-constant"        foreground="plum1"/>
+  <style name="def:floating-point"          foreground="orange3"/>
+  <style name="def:function"                foreground="#4186A8"/>
+
+  <!-- Identifiers -->
+  <style name="def:identifier"              foreground="skyblue1"/>
+
+  <!-- Statements -->
+  <style name="def:statement"               foreground="white" bold="true"/>
+
+  <!-- Types -->
+  <style name="def:type"                    foreground="chameleon1" bold="true"/>
+
+  <!-- Markup -->
+  <style name="def:emphasis"                italic="true"/>
+  <style name="def:strong-emphasis"         foreground="white" bold="true"/>
+  <style name="def:inline-code"             foreground="skyblue1"/>
+  <style name="def:insertion"               underline="single"/>
+  <style name="def:deletion"                strikethrough="true"/>
+  <style name="def:link-text"               foreground="aluminium4"/>
+  <style name="def:link-symbol"             foreground="aluminium4" bold="true"/>
+  <style name="def:link-destination"        italic="true" underline="true"/>
+  <style name="def:heading"                 foreground="chameleon1" bold="true"/>
+  <style name="def:thematic-break"          foreground="chameleon1" bold="true"/>
+  <style name="def:preformatted-section"    foreground="skyblue1"/>
+  <style name="def:list-marker"             foreground="white" bold="true"/>
+
+  <!-- Others -->
+  <style name="def:preprocessor"            foreground="#dd4a68"/>
+  <style name="def:error"                   foreground="aluminium1" background="scarletred2" bold="true"/>
+  <style name="def:warning"                 foreground="aluminium1" background="plum1"/>
+  <style name="def:note"                    background="butter1" foreground="aluminium4" bold="true"/>
+  <style name="def:net-address"             italic="true" underline="true"/>
+
+  <!-- Heading styles, uncomment to enable -->
+  <!--
+  <style name="def:heading0"                scale="5.0"/>
+  <style name="def:heading1"                scale="2.5"/>
+  <style name="def:heading2"                scale="2.0"/>
+  <style name="def:heading3"                scale="1.7"/>
+  <style name="def:heading4"                scale="1.5"/>
+  <style name="def:heading5"                scale="1.3"/>
+  <style name="def:heading6"                scale="1.2"/>
+  -->
+
+  <!-- Language specific -->
+  <style name="c:comment"                   foreground="#8b9eab"/>
+  <style name="c:preprocessor"              foreground="#8194a6" bold="false"/>
+  <style name="c:boolean"                   foreground="#0077aa"/>
+  <style name="c:keyword"                   foreground="#0077aa" bold="true"/>
+  <style name="c:string"                    foreground="#669900"/>
+  <style name="c:included-file"             foreground="orange3"/>
+  <style name="c:storage-class"             foreground="orange3" bold="true"/>
+  <style name="c:type"                      foreground="#669900" bold="true"/>
+  <style name="c:macro-name"                foreground="#677685" bold="false"/>
+  <style name="c:enum-name"                 foreground="#dd4a68" bold="false"/>
+
+  <style name="diff:added-line"             foreground="chameleon2"/>
+  <style name="diff:removed-line"           foreground="plum1"/>
+  <style name="diff:changed-line"           foreground="blue1"/>
+  <style name="diff:diff-file"              foreground="chameleon1" bold="true"/>
+  <style name="diff:location"               foreground="chameleon1"/>
+  <style name="diff:special-case"           foreground="white" bold="true"/>
+
+  <!-- GTK Doc -->
+  <style name="gtk-doc:function-name"       bold="true"/>
+  <style name="gtk-doc:function"            bold="true"/>
+  <style name="gtk-doc:parameter"           bold="true"/>
+  <style name="gtk-doc:constant"            bold="true"/>
+  <style name="gtk-doc:type"                bold="true"/>
+  <style name="gtk-doc:since"               bold="true"/>
+  <style name="gtk-doc:return"              bold="true"/>
+  <style name="gtk-doc:deprecated"          bold="true"/>
+  <style name="gtk-doc:signal-name"         bold="true"/>
+  <style name="gtk-doc:property-name"       bold="true"/>
+
+  <style name="gutter:added-line"           foreground="chameleon2"/>
+  <style name="gutter:changed-line"         foreground="butter3"/>
+  <style name="gutter:removed-line"         foreground="scarletred3"/>
+
+  <style name="js:built-in-constructor"     foreground="pink1"/>
+  <style name="js:keyword"                  foreground="#2b85aa"/>
+  <style name="js:string"                   foreground="#669900"/>
+  <style name="js:template-literal"         foreground="#669900"/>
+  <style name="js:built-in-function"        foreground="pink1"/>
+  <style name="js:built-in-method"          foreground="pink1"/>
+
+  <style name="latex:command"               foreground="chameleon1" bold="true"/>
+  <style name="latex:include"               use-style="def:preprocessor"/>
+
+  <style name="xml:comment"                 foreground="#8b9eab"/>
+  <style name="xml:attribute-name"          foreground="#orange3" bold="false"/>
+  <style name="xml:attribute-value"         foreground="#669900"/>
+  <style name="xml:tag-match"               background="#rgba(114,159,207,.20)"/>
+
+  <!-- Symbol-tree xml-pack coloring -->
+  <style name="symboltree::label"           foreground="#000000" background="#D5E7FC"/>
+  <style name="symboltree::id"              foreground="#000000" background="#D9E7BD"/>
+  <style name="symboltree::style-class"     foreground="#000000" background="#DFCD9B"/>
+  <style name="symboltree::type"            foreground="#000000" background="#F4DAC3"/>
+  <style name="symboltree::parent"          foreground="#000000" background="#DEBECF"/>
+  <style name="symboltree::class"           foreground="#000000" background="#FFEF98"/>
+  <style name="symboltree::attribute"       foreground="#000000" background="#F0E68C"/>
+
+</style-scheme>
+
diff --git a/data/style-schemes/builder.style-scheme.xml b/data/style-schemes/builder.xml
similarity index 81%
rename from data/style-schemes/builder.style-scheme.xml
rename to data/style-schemes/builder.xml
index 340576988..0998ad3a5 100644
--- a/data/style-schemes/builder.style-scheme.xml
+++ b/data/style-schemes/builder.xml
@@ -1,53 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
 
- This file is part of Builder
-
-  Copyright (C) 2014 Christian Hergert <christian hergert me>
-                                                                      
-  This program is free software: you can redistribute it and/or modify
-  it under the terms of the GNU General Public License as published by
-  the Free Software Foundation, either version 3 of the License, or
-  (at your option) any later version.
-                                                                      
-  This program 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 General Public License for more details.
-                                                                      
-  You should have received a copy of the GNU General Public License
-  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
--->
-<style-scheme id="builder" name="Builder" version="1.0">
-  <author>Christian Hergert</author>
-  <description>The default color scheme for Builder</description>
+  Copyright 2022 Christian Hergert
 
-  <!-- Diagnostics Underlining -->
-  <style name="diagnostician::deprecated"   underline="error" underline-color="aluminium3"/>
-  <style name="diagnostician::unused"       underline="error" underline-color="chocolate3"/>
-  <style name="diagnostician::error"        underline="error" underline-color="red1"/>
-  <style name="diagnostician::note"         underline="error" underline-color="blue1"/>
-  <style name="diagnostician::warning"      underline="error" underline-color="orange1"/>
+  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.
 
-  <!-- Debugger -->
-  <style name="debugger::breakpoint"        background="#4a90d9" foreground="#ffffff"/>
-
-  <!-- Snippets -->
-  <style name="snippet::tab-stop"           background="#fcaf3e" foreground="text1"/>
-  <style name="snippet::area"               background="#rgba(32,74,135,.1)"/>
+  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.
 
-  <!-- Hover links -->
-  <style name="action::hover-definition"    background="#d2e0e8" underline="true"/>
-  <style name="quick-highlight-match"       background="#rgba(221,74,104,0.15)"/>
-  <!-- Search Shadow -->
-  <style name="search-shadow"               background="#rgba(0,0,0,0.2)"/>
-  <!-- Spellchecker Matching -->
-  <style name="misspelled-match"            foreground="#000000" background="selection1"/>
+  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/>.
 
-  <!-- Quick Highlight Plugin -->
-  <style name="quick-highlight"             background="#rgba(221,74,104,.15)"/>
+-->
+<style-scheme id="builder" _name="Builder" version="1.0">
+  <author>Christian Hergert</author>
+  <_description>The default color scheme for Builder</_description>
 
+  <metadata>
+    <property name="variant">light</property>
+    <property name="dark-variant">builder-dark</property>
+    <property name="accent_bg_color">#0077aa</property>
+  </metadata>
 
   <!-- Named Colors -->
   <color name="aluminium1"                value="#EEEEEC"/>
@@ -96,13 +74,13 @@
   <color name="yellow1"                   value="#FFF9E5"/>
 
   <!-- Global Styles -->
-  <style name="background-pattern"        background="#F4F4F4"/>
+  <style name="background-pattern"        background="#F3F3F3"/>
   <style name="bracket-match"             background="aluminium3" foreground="text1" bold="true"/>
   <style name="bracket-mismatch"          background="scarletred3" foreground="aluminium1" bold="true"/>
   <style name="current-line"              background="aluminium1"/>
   <style name="current-line-number"       background="aluminium1" foreground="aluminium4" bold="true"/>
-  <style name="cursor"                    foreground="aluminium5"/>
-  <style name="draw-spaces"               foreground="aluminium2"/>
+  <style name="cursor"                    foreground="aluminium4"/>
+  <style name="draw-spaces"               foreground="aluminium3"/>
   <style name="line-numbers"              background="#FAFAFA" foreground="aluminium3"/>
   <style name="map-overlay"               background="#rgba(193,203,210,0.55)"/>
   <style name="misspelled-match"          background="selection1" foreground="#000000"/>
@@ -230,4 +208,4 @@
   <style name="xml:tag-match"             background="#rgba(153,0,85,0.07)"/>
   <style name="xml:tags"                  foreground="chameleon3"/>
 
-</style-scheme>
\ No newline at end of file
+</style-scheme>
diff --git a/data/style-schemes/meson.build b/data/style-schemes/meson.build
index 5e0c0751c..f1b37eab4 100644
--- a/data/style-schemes/meson.build
+++ b/data/style-schemes/meson.build
@@ -1,6 +1,4 @@
 install_data([
-  'builder.style-scheme.xml',
-  'builder-dark.style-scheme.xml',
-  'Adwaita.style-scheme.xml',
-  'Adwaita-dark.style-scheme.xml',
-], install_dir: join_paths(get_option('datadir'), 'gtksourceview-4/styles'))
+  'builder.xml',
+  'builder-dark.xml',
+], install_dir: join_paths(get_option('datadir'), 'gtksourceview-5/styles'))


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