rmthemegen 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,6 @@ require File.dirname(__FILE__)+"/token_list"
17
17
  require File.dirname(__FILE__)+'/rgb_contrast_methods'
18
18
 
19
19
  module RMThemeGen
20
-
21
20
 
22
21
  class ThemeGenerator < RMThemeParent
23
22
 
@@ -32,18 +31,25 @@ module RMThemeGen
32
31
  # puts o.inspect
33
32
  s+= " .#{o[:name]} {color: \##{o[:value][0][:option][0][:value]};} "
34
33
  end #if
35
- end
34
+ end
35
+ #these options are all for background values so far (caret row color and selection background)
36
+ # so we will treat them all that way for now (see line 41: s+= " .#{o[:name]} {background-color: \##{o[:value]};} "
37
+
38
+ @xmlout[:scheme][0][:colors][0][:option].each do |o|
39
+ if @@tokens_for_css.include? o[:name]
40
+ s+= "#"+ @xmlout[:scheme][0][:name].to_s
41
+ # puts o.inspect
42
+ s+= " .#{o[:name]} {background-color: \##{o[:value]};} "
43
+ end #if
44
+ end
36
45
 
37
46
  s += ' </style> '
38
- y="<div id='#{@xmlout[:scheme][0][:name].to_s}'>"
39
- @xmlout[:scheme][0][:attributes][0][:option].each do |o|
40
- if @@tokens_for_css.include? o[:name]
41
- y+= "<span class='#{o[:name]}'>"+ o[:name]+"</span>"
42
- end #if
43
- end
44
- #fout.puts( s)
45
- #fout.puts( y)
46
- #fout.close
47
+ # y="<div id='#{@xmlout[:scheme][0][:name].to_s}'>"
48
+ # @xmlout[:scheme][0][:attributes][0][:option].each do |o|
49
+ # if @@tokens_for_css.include? o[:name]
50
+ # y+= "<span class='#{o[:name]}'>"+ o[:name]+"</span>"
51
+ # end #if
52
+ # end
47
53
  return s
48
54
  end
49
55
  end #class ThemeGenerator < RMThemeParent
@@ -1,3 +1,3 @@
1
1
  module Rmthemegen
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
data/rmthemegen.gemspec CHANGED
@@ -4,7 +4,7 @@ require "rmthemegen/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "rmthemegen"
7
- s.version = "0.0.26"
7
+ s.version = "0.0.27"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["David Heitzman"]
10
10
  s.email = ["evolvemeans@gmail.com"]
@@ -0,0 +1,17 @@
1
+ <?xml version='1.0' standalone='yes'?>
2
+ <plist version="1.0" />
3
+ <dict>
4
+ <array>
5
+ <dict>
6
+ <key>settings</key>
7
+ <dict>
8
+ <string>#000000</string>
9
+ <string>#FFFFFF</string>
10
+ <key>background</key>
11
+ <key>foreground</key>
12
+ </dict>
13
+ </dict>
14
+ </array>
15
+ <key>name</key>
16
+ <string>attractive_Taiwan</string>
17
+ </dict>
@@ -0,0 +1,17 @@
1
+ <?xml version='1.0' standalone='yes'?>
2
+ <plist version="1.0" />
3
+ <dict>
4
+ <array>
5
+ <dict>
6
+ <key>settings</key>
7
+ <dict>
8
+ <string>#000000</string>
9
+ <string>#FFFFFF</string>
10
+ <key>background</key>
11
+ <key>foreground</key>
12
+ </dict>
13
+ </dict>
14
+ </array>
15
+ <key>name</key>
16
+ <string>married_great-grandfather</string>
17
+ </dict>
@@ -0,0 +1,17 @@
1
+ <?xml version='1.0' standalone='yes'?>
2
+ <plist version="1.0" />
3
+ <dict>
4
+ <array>
5
+ <dict>
6
+ <key>settings</key>
7
+ <dict>
8
+ <string>#000000</string>
9
+ <string>#FFFFFF</string>
10
+ <key>background</key>
11
+ <key>foreground</key>
12
+ </dict>
13
+ </dict>
14
+ </array>
15
+ <key>name</key>
16
+ <string>wide_stone</string>
17
+ </dict>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmthemegen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 26
10
- version: 0.0.26
9
+ - 27
10
+ version: 0.0.27
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Heitzman
@@ -173,8 +173,10 @@ files:
173
173
  - test/index.html
174
174
  - test/krTheme.tmTheme
175
175
  - test/monoindustrial.tmTheme
176
+ - test/rmt_attractive_Taiwan.tmTheme
176
177
  - test/rmt_cruel_produce.tmTheme
177
- - test/rmt_cruel_produce.xml
178
+ - test/rmt_married_great-grandfather.tmTheme
179
+ - test/rmt_wide_stone.tmTheme
178
180
  - test/sample_ruby_source
179
181
  - test/test_generate_themes.rb
180
182
  - test/tm_token_to_scope_list