highlightColor now set correctly
This commit is contained in:
Vendored
+4
@@ -6070,6 +6070,7 @@
|
||||
notchSize = 10,
|
||||
maxWidth = 800,
|
||||
backgroundColor = '#EEE',
|
||||
highlightBackgroundColor = '#EEE',
|
||||
normalColor = '#444',
|
||||
highlightColor = 'black',
|
||||
notchPosition = 'bottomLeft',
|
||||
@@ -6081,6 +6082,7 @@
|
||||
this.switchPos = switchPos;
|
||||
this.spacing = spacing;
|
||||
this.highlightColor = highlightColor;
|
||||
this.highlightBackgroundColor = highlightBackgroundColor
|
||||
}
|
||||
|
||||
/** Setup menu with a dictionary of command labels and command functions.
|
||||
@@ -6140,6 +6142,7 @@
|
||||
update(key, highlight = false) {
|
||||
let text = this.items[key];
|
||||
text.style.color = (highlight) ? this.highlightColor : this.normalColor;
|
||||
text.style.background = (highlight) ? this.highlightBackgroundColor : this.backgroundColor;
|
||||
}
|
||||
|
||||
/** Mouse over handöer.
|
||||
@@ -6197,6 +6200,7 @@
|
||||
maxWidth = 800,
|
||||
keepWithin = null,
|
||||
backgroundColor = '#EEE',
|
||||
highlightBackgroundColor = '#EEE', highlightColor, highlightBackgroundColor,
|
||||
normalColor = '#444',
|
||||
autoClose = true } = {}) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user