mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-25 02:11:25 +02:00
Be nicer to color blind people.
This commit is contained in:
@@ -29,7 +29,7 @@ Highlights.prototype.CSS = <![CDATA[
|
|||||||
Object color: maroon;
|
Object color: maroon;
|
||||||
String color: green;
|
String color: green;
|
||||||
|
|
||||||
Enabled color: green;
|
Enabled color: blue;
|
||||||
Disabled color: red;
|
Disabled color: red;
|
||||||
|
|
||||||
Normal color: black; background: white;
|
Normal color: black; background: white;
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ function setCharPref(name, value)
|
|||||||
|
|
||||||
function loadPref(name, store, type)
|
function loadPref(name, store, type)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
if (store)
|
if (store)
|
||||||
var pref = getCharPref(name);
|
var pref = getCharPref(name);
|
||||||
if (!pref && storage.infoPath)
|
if (!pref && storage.infoPath)
|
||||||
@@ -149,6 +151,8 @@ function loadPref(name, store, type)
|
|||||||
}
|
}
|
||||||
if (result instanceof type)
|
if (result instanceof type)
|
||||||
return result;
|
return result;
|
||||||
|
}
|
||||||
|
catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
function savePref(obj)
|
function savePref(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user