Permalink
Browse files

added f-mode selected color option

  • Loading branch information...
k2nr committed Mar 30, 2012
1 parent 71f2a68 commit 6ee4dbaf39bdd93601ed50d9f34f020fd2222982
Showing with 15 additions and 9 deletions.
  1. +2 −2 coffee/mode.coffee
  2. +1 −0 coffee/options.coffee
  3. +1 −0 coffee/settings.coffee
  4. +0 −4 css/vichrome.css
  5. +3 −3 mode.js
  6. +6 −0 options.html
  7. +1 −0 options.js
  8. +1 −0 settings.js
View
@@ -419,10 +419,11 @@ class g.FMode extends g.Mode
hint.elem.find("span#vichromehintchar").remove()
for c in @currentInput
hint.elem = hint.elem.append( $('<span id="vichromehintchar" />')
- .addClass("vichromehint-selected")
+ .css("color", g.model.getSetting("hintColorSelected"))
.html(c) )
for c in hint.key.slice(@currentInput.length)
hint.elem = hint.elem.append( $('<span id="vichromehintchar" />')
+ .css("color", g.model.getSetting("hintColor"))
.html(c) )
if not hint.elem.is(':visible')
@showFunc.call( hint.elem )
@@ -453,7 +454,6 @@ class g.FMode extends g.Mode
.css("line-height", hintHeight)
.css("font-size", "" + g.model.getSetting("hintFontSize") + "px")
.css("background-color", g.model.getSetting("hintBackgroundColor"))
- .css("color", g.model.getSetting("hintColor"))
for hint in @hints
offset = hint.target._offset_
top = offset.top - 7
View
@@ -98,6 +98,7 @@ onSettings = (msg) ->
initInputText "fModeAvailableKeys"
initInputText "hintBackgroundColor"
initInputText "hintColor"
+ initInputText "hintColorSelected"
initCheckBox "disableAutoFocus"
initCheckBox "smoothScroll"
initCheckBox "enableCompletion"
View
@@ -36,6 +36,7 @@ g.SettingManager =
"hintFontSize" : 10
"hintBackgroundColor" : "rgba(255, 255, 80, 0.7)"
"hintColor" : "#007"
+ "hintColorSelected" : "#DD4848"
"useFModeAnimation" : true
"notifyUpdateSucceeded" : true
"keyMappingAndAliases" : "### Sample Settings\n
View
@@ -50,10 +50,6 @@
z-index: 99999;
}
-.vichromehint-selected {
- color: #DD4848 !important;
-}
-
.vichrome-statuslineinactive {
background-color: rgba(50, 50, 50, 0.8);
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -250,6 +250,12 @@ <h3>f-Mode</h3>
</span>
<input id="hintColor" type="text" />
</div>
+ <div>
+ <span class="option">
+ Selected Color
+ </span>
+ <input id="hintColorSelected" type="text" />
+ </div>
</div>
</section>
</div>
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 6ee4dba

Please sign in to comment.