Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

extract out Uv.theme_path ivar

  • Loading branch information...
commit 5591ac27784b783cd1a4dbe941f6e7f3a4eff65b 1 parent 64814c5
risk danger olson technoweenie authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 lib/uv.rb
5 lib/uv.rb
@@ -6,11 +6,12 @@
6 6
7 7 module Uv
8 8 class << self
9   - attr_accessor :render_path, :syntax_path, :default_style, :syntaxes
  9 + attr_accessor :render_path, :theme_path, :syntax_path, :default_style, :syntaxes
10 10 end
11 11
12 12 self.syntax_path = File.join(File.dirname(__FILE__), '..', 'syntax')
13 13 self.render_path = File.join(File.dirname(__FILE__), '..', 'render')
  14 + self.theme_path = File.join(render_path, 'xhtml', 'files', 'css')
14 15 self.default_style = 'mac_classic'
15 16 self.syntaxes = {}
16 17
@@ -48,7 +49,7 @@ def Uv.syntaxes
48 49 end
49 50
50 51 def Uv.themes
51   - Dir.glob( File.join(@render_path, 'xhtml', 'files', 'css', '*.css') ).collect do |f|
  52 + Dir.glob( File.join(@theme_path, '*.css') ).collect do |f|
52 53 File.basename(f, '.css')
53 54 end
54 55 end

0 comments on commit 5591ac2

Please sign in to comment.
Something went wrong with that request. Please try again.