From 02d0c25c12e155dde4bde85e3f176b31c16b20a7 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Mon, 7 Oct 2013 00:12:44 +0200 Subject: [PATCH] handle pagetitle, use better background color --- css/glowingbear.css | 2 +- index.html | 9 +++++++-- js/websockets.js | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/css/glowingbear.css b/css/glowingbear.css index 54c312b..54e6ad8 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -1,6 +1,6 @@ body { - background-color: black; color: white; + background-color: #222; padding: 5px; } .bufferlines { diff --git a/index.html b/index.html index b7eaedd..922bf6a 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,11 @@ - + + + + + + @@ -54,7 +59,7 @@
diff --git a/js/websockets.js b/js/websockets.js index e90e832..feb0e8f 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -534,6 +534,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', 'connection $scope.setActiveBuffer = function(key) { $rootScope.buffers[key]['notification'] = false; $rootScope.activeBuffer = $rootScope.buffers[key]; + $rootScope.pageTitle = $rootScope.activeBuffer['short_name'] + ' | ' + $rootScope.activeBuffer['title']; }; $scope.sendMessage = function() {