From e98a7f1ed8a2746f8f7f1c28e96695b3b21af656 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Tue, 6 Aug 2002 03:17:24 +0000 Subject: [PATCH] *** empty log message *** --- .../prefwindow/content/pref-colors.js | 40 -------- .../prefwindow/content/pref-colors.xul | 96 ------------------- .../prefwindow/content/pref-fonts.js | 40 ++++++++ .../prefwindow/content/pref-fonts.xul | 58 ++++++++++- browser/components/prefwindow/jar.mn | 3 - 5 files changed, 97 insertions(+), 140 deletions(-) delete mode 100644 browser/components/prefwindow/content/pref-colors.js delete mode 100644 browser/components/prefwindow/content/pref-colors.xul diff --git a/browser/components/prefwindow/content/pref-colors.js b/browser/components/prefwindow/content/pref-colors.js deleted file mode 100644 index e80e658c3bde..000000000000 --- a/browser/components/prefwindow/content/pref-colors.js +++ /dev/null @@ -1,40 +0,0 @@ -function setColorWell(aPicker) -{ - var colorRef = aPicker.nextSibling; // colour value is held here - colorRef.setAttribute( "value", aPicker.color ); -} - - function setColorWellSr(menu,otherId,setbackground) - { - // Find the colorWell and colorPicker in the hierarchy. - var colorWell = menu.firstChild; - var colorPicker = menu.firstChild.nextSibling.nextSibling.firstChild; - var colorRef = menu.nextSibling; // colour value is held here - - // Extract color from colorPicker and assign to colorWell. - var color = colorPicker.getAttribute('color'); - // set colour values in the display - setColorFromPicker( colorWell, color ); - // set the colour value internally for use in prefwindow - colorRef.setAttribute( "value", color ); - } - - function getColorFromWellAndSetValue(aPickerId) - { - var picker = document.getElementById(aPickerId); - var colorRef = picker.nextSibling; - var color = colorRef.getAttribute("value"); - picker.color = color; - return color; - } - - function Startup() - { - getColorFromWellAndSetValue("foregroundtextmenu"); - getColorFromWellAndSetValue("backgroundmenu"); - getColorFromWellAndSetValue("unvisitedlinkmenu"); - getColorFromWellAndSetValue("visitedlinkmenu"); - - return true; - } - diff --git a/browser/components/prefwindow/content/pref-colors.xul b/browser/components/prefwindow/content/pref-colors.xul deleted file mode 100644 index f062c2b02424..000000000000 --- a/browser/components/prefwindow/content/pref-colors.xul +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - @@ -286,4 +287,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/browser/components/prefwindow/jar.mn b/browser/components/prefwindow/jar.mn index b85d2dde0da8..5d3ff86b352e 100644 --- a/browser/components/prefwindow/jar.mn +++ b/browser/components/prefwindow/jar.mn @@ -8,8 +8,6 @@ browser.jar: content/browser/pref/overrideHandler.js (content/overrideHandler.js) content/browser/pref/pref-cache.js (content/pref-cache.js) content/browser/pref/pref-cache.xul (content/pref-cache.xul) - content/browser/pref/pref-colors.js (content/pref-colors.js) - content/browser/pref/pref-colors.xul (content/pref-colors.xul) content/browser/pref/pref-download.xul (content/pref-download.xul) content/browser/pref/pref-help.js (content/pref-help.js) content/browser/pref/pref-themes.xul (content/pref-themes.xul) @@ -56,7 +54,6 @@ en-US.jar: locale/en-US/browser/pref/pref-applications-edit.dtd (locale/pref-applications-edit.dtd) locale/en-US/browser/pref/pref-cache.dtd (locale/pref-cache.dtd) locale/en-US/browser/pref/pref-charset.dtd (locale/pref-charset.dtd) - locale/en-US/browser/pref/pref-colors.dtd (locale/pref-colors.dtd) locale/en-US/browser/pref/pref-themes.dtd (locale/pref-themes.dtd) locale/en-US/browser/pref/pref-debug.dtd (locale/pref-debug.dtd) locale/en-US/browser/pref/pref-debug1.dtd (locale/pref-debug1.dtd)