aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2018-01-17 09:34:20 +0100
committerArmin Kuster <akuster808@gmail.com>2018-01-17 13:52:21 -0800
commit86ebbb16c4e790932715a83ea34c3a8249f17ba5 (patch)
treec4280c20bbc4aac16d833ee86d6989024a4a7bd0
parentdc868a5a442db3d81e430ac3ddfe7674c5ebd2d9 (diff)
downloadmeta-openembedded-contrib-86ebbb16c4e790932715a83ea34c3a8249f17ba5.tar.gz
meta-openembedded-contrib-86ebbb16c4e790932715a83ea34c3a8249f17ba5.tar.bz2
meta-openembedded-contrib-86ebbb16c4e790932715a83ea34c3a8249f17ba5.zip
gtksourceview-classic-light: initial add 1.0
This theme is helpful when using dark themes as it keeps white background. Tested with: * oe-build gedit based on GTK2 * fedora's gedit based on GTK3 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light/classic-light.xml131
-rw-r--r--meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light_1.0.bb21
2 files changed, 152 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light/classic-light.xml b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light/classic-light.xml
new file mode 100644
index 0000000000..23b4b9a22b
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light/classic-light.xml
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Based on gtksourceview 'classic'
+
+ This file is part of GtkSourceView
+
+ Copyright (C) 2006-2007 GtkSourceView team
+ Author: Yevgen Muntyan <muntyan@tamu.edu>
+
+ 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="classic-light" _name="Classic-Light" version="1.0">
+ <author>GtkSourceView team</author>
+ <_description>Classic color scheme light</_description>
+
+ <!-- The scheme tries to look like the default GVim scheme,
+ since it is also what the hardwired GtkSourceView 1 color
+ scheme did -->
+
+ <!-- Palette -->
+ <color name="black" value="#000000"/>
+ <color name="white" value="#FFFFFF"/>
+ <color name="blue" value="#0000FF"/>
+ <color name="magenta" value="#FF00FF"/>
+ <color name="violet" value="#6A5ACD"/>
+ <color name="cyan" value="#008A8C"/>
+ <color name="gray" value="#BEBEBE"/>
+ <color name="lightgray" value="#E0E0E0"/>
+ <color name="green" value="#2E8B57"/>
+ <color name="bordeaux" value="#A52A2A"/>
+ <color name="red" value="#FF0000"/>
+ <color name="yellow" value="#FFFF00"/>
+ <color name="purple" value="#A020F0"/>
+
+ <!-- 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"/>
+ <style name="text" foreground="black" background="white"/>
+ <style name="selection" background="gray"/>
+ <style name="cursor" foreground="black"/>
+ <style name="line-numbers" foreground="black" background="gray"/>
+
+ <!-- Bracket Matching -->
+ <style name="bracket-match" foreground="white" background="gray"/>
+ <style name="bracket-mismatch" foreground="white" background="red"/>
+
+ <!-- Right Margin -->
+ <style name="right-margin" foreground="#000000" background="#000000"/>
+
+ <!-- Search Matching -->
+ <style name="search-match" background="yellow"/>
+
+ <!-- Comments -->
+ <style name="def:comment" foreground="blue"/>
+ <style name="def:shebang" foreground="blue" bold="true"/>
+ <style name="def:doc-comment-element" italic="true"/>
+
+ <!-- Constants -->
+ <style name="def:constant" foreground="magenta"/>
+ <style name="def:special-char" foreground="violet"/>
+
+ <!-- Identifiers -->
+ <style name="def:identifier" foreground="cyan"/>
+
+ <!-- Statements -->
+ <style name="def:statement" foreground="bordeaux" bold="true"/>
+
+ <!-- Types -->
+ <style name="def:type" foreground="green" bold="true"/>
+
+ <!-- Others -->
+ <style name="def:preprocessor" foreground="purple"/>
+ <style name="def:error" background="red" bold="true"/>
+ <style name="def:warning" background="yellow"/>
+ <style name="def:note" foreground="blue" background="yellow" bold="true"/>
+ <style name="def:underlined" italic="true" underline="single"/>
+
+ <!-- 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 styles -->
+ <style name="diff:added-line" foreground="#008B8B"/>
+ <style name="diff:removed-line" foreground="#6A5ACD"/>
+ <style name="diff:changed-line" use-style="def:preprocessor"/>
+ <style name="diff:special-case" use-style="def:constant"/>
+ <style name="diff:location" use-style="def:statement"/>
+ <style name="diff:diff-file" use-style="def:type"/>
+
+ <style name="xml:tags" foreground="cyan"/>
+ <style name="xml:attribute-name" foreground="violet"/>
+ <style name="xml:namespace" foreground="green" bold="true"/>
+
+ <style name="js:object" foreground="#2E8B57" bold="true"/>
+ <style name="js:constructors" foreground="#008B8B"/>
+
+ <style name="latex:display-math" foreground="#6A5ACD"/>
+ <style name="latex:command" foreground="#2E8B57" bold="true"/>
+ <style name="latex:include" use-style="def:preprocessor"/>
+
+ <style name="sh:variable" foreground="#6A5ACD"/>
+
+ <!-- legacy styles for old lang files -->
+ <style name="Others" foreground="#2E8B57" bold="true"/>
+ <style name="Others 2" foreground="#008B8B"/>
+ <style name="Others 3" foreground="#6A5ACD"/>
+
+</style-scheme>
diff --git a/meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light_1.0.bb b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light_1.0.bb
new file mode 100644
index 0000000000..e7dc0f865c
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview-classic-light_1.0.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Gtksourceview Classic-Light theme"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://classic-light.xml;beginline=6;endline=23;md5=2b4f75364fad00a4d752214dcbd7d7c3"
+
+inherit allarch
+
+SRC_URI = "file://classic-light.xml"
+
+S = "${WORKDIR}"
+
+do_install() {
+ install -d ${D}${datadir}/gtksourceview-2.0/styles
+ install -m 0644 ${WORKDIR}/classic-light.xml ${D}${datadir}/gtksourceview-2.0/styles/
+ install -d ${D}${datadir}/gtksourceview-3.0/styles
+ install -m 0644 ${WORKDIR}/classic-light.xml ${D}${datadir}/gtksourceview-3.0/styles/
+}
+
+FILES_${PN} = " \
+ ${datadir}/gtksourceview-2.0/styles \
+ ${datadir}/gtksourceview-3.0/styles \
+"