From 2cf47c616163f236cffc88ff2fe5b7b0e18ff034 Mon Sep 17 00:00:00 2001 From: Lorenz H-S Date: Tue, 17 Dec 2013 14:37:22 +0000 Subject: [PATCH 1/2] Visually highlight highlights --- css/glowingbear.css | 5 +++++ js/models.js | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/css/glowingbear.css b/css/glowingbear.css index 983c98d..4a37e45 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -311,3 +311,8 @@ li.notification { img.embed { max-height: 300px; } + +.highlight { + color: yellow; + font-weight: bold; +} diff --git a/js/models.js b/js/models.js index 3f88c31..5aa8f17 100644 --- a/js/models.js +++ b/js/models.js @@ -187,6 +187,12 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter) var content = weeChat.Protocol.rawText2Rich(message['message']); addClasses(content); + if (highlight) { + prefix.forEach(function(textEl) { + textEl.classes.push('highlight'); + }); + } + var rtext = ""; if(content[0] != undefined) { rtext = content[0]['text']; From 815f3f4a13f78286bdaa6cd01eefc8b60e8af3e2 Mon Sep 17 00:00:00 2001 From: Lorenz H-S Date: Tue, 17 Dec 2013 14:44:19 +0000 Subject: [PATCH 2/2] Move highlight style to correct file --- css/glowingbear.css | 5 ----- css/style.css | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/css/glowingbear.css b/css/glowingbear.css index 4a37e45..983c98d 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -311,8 +311,3 @@ li.notification { img.embed { max-height: 300px; } - -.highlight { - color: yellow; - font-weight: bold; -} diff --git a/css/style.css b/css/style.css index 59b84b8..85c5826 100644 --- a/css/style.css +++ b/css/style.css @@ -1,3 +1,9 @@ +/* highlight messages */ +.highlight { + color: yellow; + font-weight: bold; +} + /* style options, foreground */ .cof-separator { color: #68b5d4;