aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/light.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-05-22 12:37:38 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-05-22 12:37:38 -0400
commita5f6fefe13accd75de4ec8fa6a552fb32085f57b (patch)
treecb5386411d38027b3d0cd3d2ce74116dddc31736 /themes/light.lua
parent04730b609194f64081a99bf7f39909573a5e8b1d (diff)
Use 'font' and 'fontsize' properties for theme fonts.
Diffstat (limited to 'themes/light.lua')
-rw-r--r--themes/light.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/light.lua b/themes/light.lua
index 6ea1a292..25783a6b 100644
--- a/themes/light.lua
+++ b/themes/light.lua
@@ -51,15 +51,13 @@ property['color.light_red'] = 0x8080CC
--property['color.light_lavender'] = 0xFFCCCC
property['color.light_blue'] = 0xFFCC80
--- Default style.
-local font, size = 'Bitstream Vera Sans Mono', 10
+-- Default font.
+property['font'], property['fontsize'] = 'Bitstream Vera Sans Mono', 10
if WIN32 then
- font = 'Courier New'
+ property['font'] = 'Courier New'
elseif OSX then
- font, size = 'Monaco', 12
+ property['font'], property['fontsize'] = 'Monaco', 12
end
-property['style.default'] = 'font:'..font..',size:'..size..
- ',fore:$(color.light_black),back:$(color.white)'
-- Token styles.
property['style.nothing'] = ''
@@ -82,6 +80,8 @@ property['style.embedded'] = '$(style.tag),back:$(color.dark_white)'
property['style.identifier'] = '$(style.nothing)'
-- Predefined styles.
+property['style.default'] = 'font:$(font),size:$(fontsize)'..
+ ',fore:$(color.light_black),back:$(color.white)'
property['style.linenumber'] = 'fore:$(color.grey),back:$(color.white)'
property['style.bracelight'] = 'fore:$(color.light_blue)'
property['style.bracebad'] = 'fore:$(color.light_red)'