From 88cf80cbb71205b42a58c8f582a9f294a4a4863c Mon Sep 17 00:00:00 2001 From: "rginda%netscape.com" Date: Fri, 12 May 2000 22:30:53 +0000 Subject: [PATCH] * Makefile.in, makefile.win install new file. * command-manager.js handle exact match case. * chatzilla.css remove old styles. * output-default.css darker bg on QUIT messages. --- extensions/irc/Makefile.in | 1 + extensions/irc/js/lib/command-manager.js | 6 ++- extensions/irc/makefile.win | 1 + extensions/irc/xul/skin/chatzilla.css | 44 +++++++++++----------- extensions/irc/xul/skin/output-default.css | 2 +- 5 files changed, 30 insertions(+), 24 deletions(-) diff --git a/extensions/irc/Makefile.in b/extensions/irc/Makefile.in index 4722f226e89..296794ba77d 100644 --- a/extensions/irc/Makefile.in +++ b/extensions/irc/Makefile.in @@ -56,6 +56,7 @@ CONTENTFILES = \ $(srcdir)/xul/content/handlers.js \ $(srcdir)/xul/content/readprefs.js \ $(srcdir)/xul/content/static.js \ + $(srcdir)/xul/content/rdf.js \ $(NULL) SKINFILES = \ diff --git a/extensions/irc/js/lib/command-manager.js b/extensions/irc/js/lib/command-manager.js index 19266cc039c..b1cd0b9247c 100644 --- a/extensions/irc/js/lib/command-manager.js +++ b/extensions/irc/js/lib/command-manager.js @@ -65,7 +65,11 @@ function cmgr_list (partialName) for (var i in this.commands) { if (this.commands[i].name.indexOf(partialName) == 0) - ary.push (this.commands[i]); + if (partialName.length == this.commands[i].name.length) + /* exact match */ + return [this.commands[i]]; + else + ary.push (this.commands[i]); } return ary; diff --git a/extensions/irc/makefile.win b/extensions/irc/makefile.win index 63040ffeabe..c7bbf2ba638 100644 --- a/extensions/irc/makefile.win +++ b/extensions/irc/makefile.win @@ -53,6 +53,7 @@ CONTENTFILES = \ .\xul\content\handlers.js \ .\xul\content\readprefs.js \ .\xul\content\static.js \ + .\xul\content\rdf.js \ $(NULL) SKINFILES = \ diff --git a/extensions/irc/xul/skin/chatzilla.css b/extensions/irc/xul/skin/chatzilla.css index 7f6a7879748..2379350cc8d 100644 --- a/extensions/irc/xul/skin/chatzilla.css +++ b/extensions/irc/xul/skin/chatzilla.css @@ -106,6 +106,14 @@ window { } +.status-box { + + padding-top: 2px; + padding-bottom: 2px; + padding-right: 10px; + +} + .status-label { text-align: right; @@ -135,37 +143,29 @@ window { } -/* Listbox on left of UI (aka QuickList) */ +/* op image column */ +.op-image[state="true"] { -.quick-list { - - border: thin silver inset; - background: #dddddd; - overflow: auto; + list-style-image: url(chrome://chatzilla/skin/images/is-op.gif) } +.op-image[state="false"] { -/* common container for individual quicklist items */ -.list-option { - - margin: 2px; + list-style-image: url(chrome://chatzilla/skin/images/isnt-op.gif) } -/* JG: Selection colors, in accord with standard mozilla chrome colors */ -.list-option[selected="true"] { - background: rgb(51,102,153); - font-weight: bold; - color: white; -} +/* voice image column */ +.voice-image[state="true"] { + + list-style-image: url(chrome://chatzilla/skin/images/is-voice.gif) -/* text in the quicklist */ -.option-text { - font-weight: bold; - align: right; } -/* graphic in the quicklist */ -.option-graphic { +.voice-image[state="false"] { + + list-style-image: url(chrome://chatzilla/skin/images/isnt-voice.gif) + } +< diff --git a/extensions/irc/xul/skin/output-default.css b/extensions/irc/xul/skin/output-default.css index 69977bff800..4de426a6a9a 100644 --- a/extensions/irc/xul/skin/output-default.css +++ b/extensions/irc/xul/skin/output-default.css @@ -229,7 +229,7 @@ a { .msg-data[msgtype="QUIT"] { - background: lightgrey; + background: #222222; color: brown; }