[gtksourceview: 10/10] Style schemes: add heading styles in comments



commit 6915a7dd81f1198e5ee12e3071fe0388648f4ab2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jan 30 19:40:13 2014 +0100

    Style schemes: add heading styles in comments
    
    We don't want font scaling for headings enabled by default. Users
    genarally expect the same font size everywhere. By adding the styles in
    comments, users can easily modify the style schemes to enable the
    feature.
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=723310
    for adding an option to easily enable or disable font scaling.

 data/styles/classic.xml  |   11 +++++++++++
 data/styles/cobalt.xml   |   13 ++++++++++++-
 data/styles/kate.xml     |   11 +++++++++++
 data/styles/oblivion.xml |   11 +++++++++++
 data/styles/tango.xml    |   11 +++++++++++
 5 files changed, 56 insertions(+), 1 deletions(-)
---
diff --git a/data/styles/classic.xml b/data/styles/classic.xml
index 0963243..96d0f98 100644
--- a/data/styles/classic.xml
+++ b/data/styles/classic.xml
@@ -81,6 +81,17 @@
   <style name="def:note"                    foreground="blue" background="yellow" bold="true"/>
   <style name="def:underlined"              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 styles -->
   <style name="diff:added-line"             foreground="#008B8B"/>
   <style name="diff:removed-line"           foreground="#6A5ACD"/>
diff --git a/data/styles/cobalt.xml b/data/styles/cobalt.xml
index cc0268a..cd2e2a3 100644
--- a/data/styles/cobalt.xml
+++ b/data/styles/cobalt.xml
@@ -101,7 +101,18 @@
   <style name="def:note"                    foreground="neon_pink" bold="true"/>
   <style name="def:net-address-in-comment"  foreground="teal_blue" italic="false" underline="true"/>
   <style name="def:preprocessor"            foreground="light_grey"/>
-    
+
+  <!-- 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"/>
+  -->
+
   <!-- Unknown? -->
   <style name="def:specials"                foreground="white" background="neon_pink"/>
   <style name="def:boolean"                 foreground="nail_polish_pink"/>
diff --git a/data/styles/kate.xml b/data/styles/kate.xml
index 0005a02..ca209b8 100644
--- a/data/styles/kate.xml
+++ b/data/styles/kate.xml
@@ -91,6 +91,17 @@
   <style name="def:warning"                 foreground="brown" underline="true"/>
   <style name="def:underlined"              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 styles -->
   <style name="c:preprocessor"              foreground="dark-green"/>
   <style name="c:included-file"             use-style="c:preprocessor"/>
diff --git a/data/styles/oblivion.xml b/data/styles/oblivion.xml
index 895d4ae..d705fce 100644
--- a/data/styles/oblivion.xml
+++ b/data/styles/oblivion.xml
@@ -103,6 +103,17 @@
   <style name="def:note"                    background="butter1" foreground="aluminium4" bold="true"/>
   <style name="def:underlined"              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="diff:added-line"             foreground="butter2"/>
   <style name="diff:removed-line"           foreground="skyblue1"/>
diff --git a/data/styles/tango.xml b/data/styles/tango.xml
index 391ffdb..ba40905 100644
--- a/data/styles/tango.xml
+++ b/data/styles/tango.xml
@@ -94,6 +94,17 @@
   <style name="def:note"                    background="orange1" bold="true"/>
   <style name="def:underlined"              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="diff:added-line"             foreground="chameleon3"/>
   <style name="diff:removed-line"           foreground="plum3"/>


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