diff options
author | Daniel Drake <dsd@laptop.org> | 2009-11-27 11:34:59 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2009-12-01 17:57:49 (GMT) |
commit | d7263450798944f74a8717b4ecb2701c45f6aac8 (patch) | |
tree | e42377e973e4843e68961375597808de2981c4da /data | |
parent | d009af187b13268df9d4760c4ed2d1a6fc11e6cc (diff) |
Configure fonts through GConf (#1584)
Sugar currently configures fonts through gtkrc and through the
sugar.graphics.style class, both of which are hard to modify by
implementors/deployers.
Move this into GConf and apply these settings to the sugar shell
at startup.
In the longer term, Sayamindu's efforts to create a settings manager
will build on this work.
Diffstat (limited to 'data')
-rw-r--r-- | data/gtkrc.em | 1 | ||||
-rw-r--r-- | data/sugar.schemas.in | 23 |
2 files changed, 23 insertions, 1 deletions
diff --git a/data/gtkrc.em b/data/gtkrc.em index b9eeb7d..d4e1a7c 100644 --- a/data/gtkrc.em +++ b/data/gtkrc.em @@ -6,7 +6,6 @@ else: }@ gtk-theme-name = "sugar-@scaling" gtk-icon-theme-name = "sugar" -gtk-font-name = "Sans Serif 10" gtk-cursor-theme-name = "sugar" gtk-toolbar-style = GTK_TOOLBAR_ICONS gtk-icon-sizes = "@icon_sizes" diff --git a/data/sugar.schemas.in b/data/sugar.schemas.in index fba89ff..b58f2a8 100644 --- a/data/sugar.schemas.in +++ b/data/sugar.schemas.in @@ -181,5 +181,28 @@ </locale> </schema> + <schema> + <key>/schemas/desktop/sugar/font/default_face</key> + <applyto>/desktop/sugar/font/default_face</applyto> + <owner>sugar</owner> + <type>string</type> + <default>Sans Serif</default> + <locale name="C"> + <short>Default font face</short> + <long>Font face that is used throughout the desktop.</long> + </locale> + </schema> + <schema> + <key>/schemas/desktop/sugar/font/default_size</key> + <applyto>/desktop/sugar/font/default_size</applyto> + <owner>sugar</owner> + <type>float</type> + <default>10</default> + <locale name="C"> + <short>Default font size</short> + <long>Font size that is used throughout the desktop.</long> + </locale> + </schema> + </schemalist> </gconfschemafile> |