diff --git a/css/glowingbear.css b/css/glowingbear.css
index 9ba74c6..440b008 100644
--- a/css/glowingbear.css
+++ b/css/glowingbear.css
@@ -346,6 +346,15 @@ div.embed img.embed {
max-width: 100%;
}
+div.colourbox {
+ display: inline-block;
+ border-radius: 3px;
+ border: 1px solid #bbb;
+ width: 14px;
+ height: 14px;
+ margin-bottom: -2px;
+}
+
table.notimestamp td.time {
display: none !important;
diff --git a/index.html b/index.html
index 6178247..916e912 100644
--- a/index.html
+++ b/index.html
@@ -255,7 +255,7 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
|
-
+
|
diff --git a/js/glowingbear.js b/js/glowingbear.js
index 3f442a3..f682e0b 100644
--- a/js/glowingbear.js
+++ b/js/glowingbear.js
@@ -49,6 +49,22 @@ weechat.filter('irclinky', ['$filter', function($filter) {
};
}]);
+weechat.filter('inlinecolour', function() {
+ 'use strict';
+
+ return function(text) {
+ if (!text) {
+ return text;
+ }
+
+ // only match 6-digit colour codes, 3-digit ones have too many false positives (issue numbers, etc)
+ var hexColourRegex = /(^|[^&])\#([0-9a-f]{6})($|[^\w'"])/gmi;
+ var substitute = '$1#$2 $3';
+
+ return text.replace(hexColourRegex, substitute);
+ };
+});
+
weechat.factory('handlers', ['$rootScope', '$log', 'models', 'plugins', function($rootScope, $log, models, plugins) {
var handleBufferClosing = function(message) {