mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 11:47:58 +01:00
Minor :downloads styling updates.
This commit is contained in:
@@ -508,7 +508,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
* @param {string} feature The feature name.
|
* @param {string} feature The feature name.
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
has: function (feature) config.features.indexOf(feature) >= 0,
|
has: function (feature) set.has(config.features, feature),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the URL of the specified help *topic* if it exists.
|
* Returns the URL of the specified help *topic* if it exists.
|
||||||
|
|||||||
@@ -36,8 +36,9 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
}
|
}
|
||||||
]]>);
|
]]>);
|
||||||
|
|
||||||
|
this.features.push = deprecated("set.add", function push(feature) set.add(this, feature));
|
||||||
if (util.haveGecko("2b"))
|
if (util.haveGecko("2b"))
|
||||||
this.features.push("Gecko2");
|
set.add(this.features, "Gecko2");
|
||||||
|
|
||||||
this.timeout(function () {
|
this.timeout(function () {
|
||||||
services["dactyl:"].pages.dtd = function () [null,
|
services["dactyl:"].pages.dtd = function () [null,
|
||||||
@@ -203,11 +204,11 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {[["string", "string"]]} A sequence of names and descriptions
|
* @property {Object} A mapping of names and descriptions
|
||||||
* of the autocommands available in this application. Primarily used
|
* of the autocommands available in this application. Primarily used
|
||||||
* for completion results.
|
* for completion results.
|
||||||
*/
|
*/
|
||||||
autocommands: [],
|
autocommands: {},
|
||||||
|
|
||||||
commandContainer: "browser-bottombox",
|
commandContainer: "browser-bottombox",
|
||||||
|
|
||||||
@@ -257,23 +258,22 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
cleanups: {},
|
cleanups: {},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {[["string", "string", "function"]]} An array of
|
* @property {Object} A map of dialogs available via the
|
||||||
* dialogs available via the :dialog command.
|
* :dialog command. Property names map dialog names to an array
|
||||||
* [0] name - The name of the dialog, used as the first
|
* as follows:
|
||||||
* argument to :dialog.
|
* [0] description - A description of the dialog, used in
|
||||||
* [1] description - A description of the dialog, used in
|
|
||||||
* command completion results for :dialog.
|
* command completion results for :dialog.
|
||||||
* [2] action - The function executed by :dialog.
|
* [1] action - The function executed by :dialog.
|
||||||
*/
|
*/
|
||||||
dialogs: [],
|
dialogs: {},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {string[]} A list of features available in this
|
* @property {set} A list of features available in this
|
||||||
* application. Used extensively in feature test macros. Use
|
* application. Used extensively in feature test macros. Use
|
||||||
* dactyl.has(feature) to check for a feature's presence
|
* dactyl.has(feature) to check for a feature's presence
|
||||||
* in this array.
|
* in this array.
|
||||||
*/
|
*/
|
||||||
features: [],
|
features: {},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {string} The file extension used for command script files.
|
* @property {string} The file extension used for command script files.
|
||||||
@@ -492,7 +492,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
HintActive;;* background-color: #88FF00 !important; color: black !important;
|
HintActive;;* background-color: #88FF00 !important; color: black !important;
|
||||||
HintImage;;* opacity: .5 !important;
|
HintImage;;* opacity: .5 !important;
|
||||||
|
|
||||||
Button display: inline-block; font-weight: bold; cursor: pointer;
|
Button display: inline-block; font-weight: bold; cursor: pointer; color: black;
|
||||||
Button:hover text-decoration: underline;
|
Button:hover text-decoration: underline;
|
||||||
Button[collapsed] visibility: collapse; width: 0;
|
Button[collapsed] visibility: collapse; width: 0;
|
||||||
Button::before content: "["; color: gray; text-decoration: none !important;
|
Button::before content: "["; color: gray; text-decoration: none !important;
|
||||||
@@ -504,6 +504,7 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
DownloadHead>*;;;DownloadCell display: table-cell;
|
DownloadHead>*;;;DownloadCell display: table-cell;
|
||||||
|
|
||||||
Download display: table-row;
|
Download display: table-row;
|
||||||
|
Download:not([active]) color: gray;
|
||||||
|
|
||||||
DownloadCell display: table-cell; padding: 0 1ex;
|
DownloadCell display: table-cell; padding: 0 1ex;
|
||||||
DownloadButtons;;;DownloadCell
|
DownloadButtons;;;DownloadCell
|
||||||
|
|||||||
@@ -133,6 +133,12 @@ var Download = Class("Download", {
|
|||||||
|
|
||||||
updateStatus: function updateStatus() {
|
updateStatus: function updateStatus() {
|
||||||
|
|
||||||
|
if (this.alive)
|
||||||
|
this.nodes.row.setAttribute("active", "true");
|
||||||
|
else
|
||||||
|
this.nodes.row.removeAttribute("active");
|
||||||
|
|
||||||
|
this.nodes.row.setAttribute("status", this.status);
|
||||||
this.nodes.state.textContent = util.capitalize(this.status);
|
this.nodes.state.textContent = util.capitalize(this.status);
|
||||||
for (let [command, enabled] in Iterator(this.allowed))
|
for (let [command, enabled] in Iterator(this.allowed))
|
||||||
this.nodes[command].collapsed = !enabled;
|
this.nodes[command].collapsed = !enabled;
|
||||||
|
|||||||
@@ -135,10 +135,10 @@ var Config = Module("config", ConfigBase, {
|
|||||||
titlestring: "Pentadactyl"
|
titlestring: "Pentadactyl"
|
||||||
},
|
},
|
||||||
|
|
||||||
features: [
|
features: set([
|
||||||
"bookmarks", "hints", "history", "marks", "quickmarks", "sanitizer",
|
"bookmarks", "hints", "history", "marks", "quickmarks", "sanitizer",
|
||||||
"session", "tabs", "tabs_undo", "windows"
|
"session", "tabs", "tabs_undo", "windows"
|
||||||
],
|
]),
|
||||||
|
|
||||||
guioptions: {
|
guioptions: {
|
||||||
m: ["Menubar", ["toolbar-menubar"]],
|
m: ["Menubar", ["toolbar-menubar"]],
|
||||||
|
|||||||
Reference in New Issue
Block a user