From f7abb3448e984d8eb7c9ff7771f19aaa6828d53c Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Mon, 7 Oct 2013 12:04:28 +0200 Subject: [PATCH] use different badge color for highlight/notification --- css/glowingbear.css | 4 ++++ index.html | 2 +- js/websockets.js | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/css/glowingbear.css b/css/glowingbear.css index a068f2f..d013eee 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -23,6 +23,10 @@ body { color: deepskyblue; } +.danger { + background-color: rgb(217, 83, 79); +} + .color-28 { color: greenyellow; } diff --git a/index.html b/index.html index 4dabe2c..6bb10a6 100644 --- a/index.html +++ b/index.html @@ -70,7 +70,7 @@ diff --git a/js/websockets.js b/js/websockets.js index 891b0d5..7e3b1cc 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -312,6 +312,7 @@ weechat.factory('handlers', ['$rootScope', 'colors', 'pluginManager', function($ if(!initial && (highlight || _.contains(tags_array, 'notify_private')) ) { $rootScope.createHighlight(prefix, text, message, buffer, additionalContent); + $rootScope.buffers[buffer]['highlight'] = true; } } } @@ -552,6 +553,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', 'connection $scope.setActiveBuffer = function(key) { $rootScope.activeBuffer['active'] = false; $rootScope.buffers[key]['active'] = true; + $rootScope.buffers[key]['highlight'] = false; $rootScope.buffers[key]['unread'] = ''; $rootScope.activeBuffer = $rootScope.buffers[key]; $rootScope.pageTitle = $rootScope.activeBuffer['short_name'] + ' | ' + $rootScope.activeBuffer['title'];