[gtksourceview/wip/font-scaling] Style schemes: enable font scaling for headings (not to merge)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/font-scaling] Style schemes: enable font scaling for headings (not to merge)
- Date: Sun, 5 Jan 2014 12:21:36 +0000 (UTC)
commit 11e84a1fa9efeadee2740232d290eec0f3a923cf
Author: Andreas Fuchs <anduchs gmail com>
Date: Fri May 31 10:37:06 2013 +0200
Style schemes: enable font scaling for headings (not to merge)
- Introduce properties def:heading0 to def:heading6 to style-files
- Map to use scale property
This commit will not be merged upstream as-is. We don't want font
scaling by default.
data/styles/classic.xml | 9 +++++++++
data/styles/cobalt.xml | 9 +++++++++
data/styles/kate.xml | 9 +++++++++
data/styles/oblivion.xml | 9 +++++++++
data/styles/tango.xml | 9 +++++++++
5 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/data/styles/classic.xml b/data/styles/classic.xml
index 0963243..1aaa0a4 100644
--- a/data/styles/classic.xml
+++ b/data/styles/classic.xml
@@ -81,6 +81,15 @@
<style name="def:note" foreground="blue" background="yellow" bold="true"/>
<style name="def:underlined" italic="true" underline="true"/>
+ <!-- Heading styles -->
+ <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..2d21319 100644
--- a/data/styles/cobalt.xml
+++ b/data/styles/cobalt.xml
@@ -102,6 +102,15 @@
<style name="def:net-address-in-comment" foreground="teal_blue" italic="false" underline="true"/>
<style name="def:preprocessor" foreground="light_grey"/>
+ <!-- Heading styles -->
+ <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..1491563 100644
--- a/data/styles/kate.xml
+++ b/data/styles/kate.xml
@@ -91,6 +91,15 @@
<style name="def:warning" foreground="brown" underline="true"/>
<style name="def:underlined" underline="true"/>
+ <!-- Heading styles -->
+ <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..57925de 100644
--- a/data/styles/oblivion.xml
+++ b/data/styles/oblivion.xml
@@ -103,6 +103,15 @@
<style name="def:note" background="butter1" foreground="aluminium4" bold="true"/>
<style name="def:underlined" italic="true" underline="true"/>
+ <!-- Heading styles -->
+ <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..a588320 100644
--- a/data/styles/tango.xml
+++ b/data/styles/tango.xml
@@ -94,6 +94,15 @@
<style name="def:note" background="orange1" bold="true"/>
<style name="def:underlined" italic="true" underline="true"/>
+ <!-- Heading styles -->
+ <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]