Nick list colors now also work without background color
This commit is contained in:
parent
c46979088a
commit
216da6fdab
1 changed files with 2 additions and 2 deletions
|
@ -401,13 +401,13 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo
|
||||||
'coa-' + colorName
|
'coa-' + colorName
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
if (color.match(/^[a-zA-Z]+[:$]/)) {
|
if (color.match(/^[a-zA-Z]+(:|$)/)) {
|
||||||
// WeeChat color name (foreground)
|
// WeeChat color name (foreground)
|
||||||
var cwfcolor = color.match(/^[a-zA-Z]+/)[0];
|
var cwfcolor = color.match(/^[a-zA-Z]+/)[0];
|
||||||
colorClasses = [
|
colorClasses = [
|
||||||
'cwf-' + cwfcolor
|
'cwf-' + cwfcolor
|
||||||
];
|
];
|
||||||
} else if (color.match(/^[0-9]+[:$]/)) {
|
} else if (color.match(/^[0-9]+(:|$)/)) {
|
||||||
// extended color (foreground)
|
// extended color (foreground)
|
||||||
var cefcolor = color.match(/^[0-9]+/)[0];
|
var cefcolor = color.match(/^[0-9]+/)[0];
|
||||||
colorClasses = [
|
colorClasses = [
|
||||||
|
|
Loading…
Reference in a new issue