From 0d2e00eb6ba78dd7830d7cd8e61b75bcf1eb56db Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 16 Sep 2008 16:09:14 +0000 Subject: [PATCH] use the hl-Title class for the completion widget title --- content/addressbook.js | 2 +- content/bookmarks.js | 8 ++++---- content/buffer.js | 4 ++-- content/commands.js | 2 +- content/liberator.js | 6 +++--- content/options.js | 4 ++-- content/ui.js | 2 +- skin/vimperator.css | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/content/addressbook.js b/content/addressbook.js index 96f3532d..7715a6fe 100644 --- a/content/addressbook.js +++ b/content/addressbook.js @@ -203,7 +203,7 @@ liberator.Addressbook = function () //{{{ else { var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - ""; + "
NameAddress
"; for (var i = 0; i < addresses.length; i++) { var displayName = liberator.util.escapeHTML(liberator.util.clip(addresses[i][0], 50)); diff --git a/content/bookmarks.js b/content/bookmarks.js index e8d86050..c34cea90 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -235,7 +235,7 @@ liberator.Bookmarks = function () //{{{ { var sh = getWebNavigation().sessionHistory; var list = ":" + (liberator.util.escapeHTML(liberator.commandline.getCommand()) || "jumps") + "
" + "
NameAddress
"; - list += ""; + list += ""; var num = -sh.index; for (var i = 0; i < sh.count; i++) @@ -501,7 +501,7 @@ liberator.Bookmarks = function () //{{{ var title, url, tags, keyword, extra; var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - "
jumptitleURI
jumptitleURI
"; + "
titleURL
"; for (var i = 0; i < items.length; i++) { title = liberator.util.escapeHTML(liberator.util.clip(items[i][1], 50)); @@ -805,7 +805,7 @@ liberator.History = function () //{{{ else { var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - "
titleURL
"; + "
titleURL
"; for (var i = 0; i < items.length; i++) { var title = liberator.util.escapeHTML(liberator.util.clip(items[i][1], 50)); @@ -983,7 +983,7 @@ liberator.QuickMarks = function () //{{{ } var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - "
titleURL
"; + "
QuickMarkURL
"; for (var i = 0; i < marks.length; i++) { diff --git a/content/buffer.js b/content/buffer.js index 67e84665..8e5df69c 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -1151,7 +1151,7 @@ liberator.Buffer = function () //{{{ // TODO: could this be useful for other commands? function createTable(data) { - var ret = "
QuickMarkURL
" + + var ret = ""; if (data.length - 1) @@ -1755,7 +1755,7 @@ liberator.Marks = function () //{{{ } var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - "
" + data[data.length - 1][0] + "
"; + "
marklinecolfile
"; for (var i = 0; i < marks.length; i++) { list += "" + diff --git a/content/commands.js b/content/commands.js index ae49a252..e2f75ce0 100644 --- a/content/commands.js +++ b/content/commands.js @@ -694,7 +694,7 @@ liberator.Commands = function () //{{{ if (cmdlist.length > 0) { var str = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - "
marklinecolfile
"; + "
NameArgsDefinition
"; for (var i = 0; i < cmdlist.length; i++) { // programmatically added user commands have a null replacementText diff --git a/content/liberator.js b/content/liberator.js index e700e1ea..d9bacb77 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -278,7 +278,7 @@ const liberator = (function () //{{{ var usage = "
NameArgsDefinition
"; for (let command in liberator.commands) { - usage += ""; } @@ -430,7 +430,7 @@ const liberator = (function () //{{{ var str = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + "
:" + + usage += "
:" + liberator.util.escapeHTML(command.name) + "" + liberator.util.escapeHTML(command.description) + "
" + - "" + + "" + "" + "" + "" + @@ -499,7 +499,7 @@ const liberator = (function () //{{{ var usage = "
Code execution summary
Code execution summary
Executed:" + count + "times
Average time:" + each.toFixed(2) + "" + eachUnits + "
Total time:" + total.toFixed(2) + "" + totalUnits + "
"; for (let mapping in liberator.mappings) { - usage += ""; } diff --git a/content/options.js b/content/options.js index 4eaa7e44..df67ea49 100644 --- a/content/options.js +++ b/content/options.js @@ -841,7 +841,7 @@ liberator.Options = function () //{{{ list: function (onlyNonDefault, scope) { var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - "
" + + usage += "
" + liberator.util.escapeHTML(mapping.names[0]) + "" + liberator.util.escapeHTML(mapping.description) + "
"; + "
--- Options ---
"; var name, value, def; if (!scope) @@ -893,7 +893,7 @@ liberator.Options = function () //{{{ var prefArray = prefService.getChildList("", { value: 0 }); prefArray.sort(); var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "
" + - "
--- Options ---
--- " + liberator.config.hostApplication + + ""; var name, value, defaultValue; diff --git a/content/ui.js b/content/ui.js index ea5f6c44..f30cc74c 100644 --- a/content/ui.js +++ b/content/ui.js @@ -1247,7 +1247,7 @@ liberator.ItemList = function (id) //{{{ var div = doc.createElement("div"); div.setAttribute("class", "ex-command-output hl-Normal"); - div.innerHTML = "Completions:"; + div.innerHTML = "Completions:"; var table = doc.createElement("table"); table.setAttribute("width", "100%"); table.setAttribute("style", "table-layout: fixed; width: 100%"); diff --git a/skin/vimperator.css b/skin/vimperator.css index fedb1997..2eb7d1c3 100644 --- a/skin/vimperator.css +++ b/skin/vimperator.css @@ -143,7 +143,7 @@ liberator-statusline-field-progress { .hl-Title { background-color: white; color: magenta; - font-weight: bold; + font-weight: bold !important; } .hl-Warning { background-color: white;
--- " + liberator.config.hostApplication + " Options ---