use different badge color for highlight/notification
This commit is contained in:
parent
4fded85019
commit
f7abb3448e
3 changed files with 7 additions and 1 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue