mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
add pref-mailnews.js, which has the necessary (but currently not working) JS for the color picker.
rewrite the xul so that the html select heeds the quote prefs. (#15230) use a color picker instead of an empty html select.
This commit is contained in:
parent
1df3f9eb17
commit
534108fcd8
@ -27,6 +27,7 @@ am-copies.js
|
||||
am-advanced.xul
|
||||
am-smtp.xul
|
||||
pref-mailnews.xul
|
||||
pref-mailnews.js
|
||||
pref-winsetting.xul
|
||||
pref-receipts.xul
|
||||
custreceipt.xul
|
||||
|
@ -36,6 +36,7 @@ EXPORT_RESOURCE_SAMPLES = \
|
||||
am-advanced.xul \
|
||||
am-smtp.xul \
|
||||
pref-mailnews.xul \
|
||||
pref-mailnews.js \
|
||||
pref-winsetting.xul \
|
||||
pref-receipts.xul \
|
||||
custreceipt.xul \
|
||||
|
@ -31,6 +31,7 @@ install::
|
||||
$(MAKE_INSTALL) am-advanced.xul $(DIST)\bin\chrome\messenger\content\default
|
||||
$(MAKE_INSTALL) am-smtp.xul $(DIST)\bin\chrome\messenger\content\default
|
||||
$(MAKE_INSTALL) pref-mailnews.xul $(DIST)\bin\chrome\messenger\content\default
|
||||
$(MAKE_INSTALL) pref-mailnews.js $(DIST)\bin\chrome\messenger\content\default
|
||||
$(MAKE_INSTALL) pref-winsetting.xul $(DIST)\bin\chrome\messenger\content\default
|
||||
$(MAKE_INSTALL) pref-receipts.xul $(DIST)\bin\chrome\messenger\content\default
|
||||
$(MAKE_INSTALL) custreceipt.xul $(DIST)\bin\chrome\messenger\content\default
|
||||
@ -66,6 +67,7 @@ clobber::
|
||||
rm -f $(DIST)\chrome\messenger\content\default\aw-accname.xul
|
||||
rm -f $(DIST)\chrome\messenger\content\default\aw-done.xul
|
||||
rm -f $(DIST)\chrome\messenger\content\default\pref-mailnews.xul
|
||||
rm -f $(DIST)\chrome\messenger\content\default\pref-mailnews.js
|
||||
rm -f $(DIST)\chrome\messenger\content\default\pref-winsetting.xul
|
||||
rm -f $(DIST)\chrome\messenger\content\default\pref-receipts.xul
|
||||
rm -f $(DIST)\chrome\messenger\content\default\custreceipt.xul
|
||||
|
10
mailnews/base/prefs/resources/content/pref-mailnews.js
Normal file
10
mailnews/base/prefs/resources/content/pref-mailnews.js
Normal file
@ -0,0 +1,10 @@
|
||||
function setColorWell(menu)
|
||||
{
|
||||
// Find the colorWell and colorPicker in the hierarchy.
|
||||
var colorWell = menu.firstChild.nextSibling;
|
||||
var colorPicker = menu.firstChild.nextSibling.nextSibling.firstChild;
|
||||
|
||||
// Extract color from colorPicker and assign to colorWell.
|
||||
var color = colorPicker.getAttribute('color');
|
||||
colorWell.style.backgroundColor = color;
|
||||
}
|
@ -8,6 +8,7 @@
|
||||
onload="StartUp('Mailnews-Main')" >
|
||||
|
||||
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
|
||||
<html:script language="javascript" src="chrome://messenger/content/pref-mailnews.js"/>
|
||||
|
||||
<html:div flex="100%">
|
||||
<html:div id="top">
|
||||
@ -18,24 +19,29 @@
|
||||
<html:form>
|
||||
<html:table>
|
||||
<html:tr><html:td>&style.label;
|
||||
<html:select>
|
||||
<html:option>®ular.label;</html:option>
|
||||
<html:option>&bold.label;</html:option>
|
||||
<html:option>&italic.label;</html:option>
|
||||
<html:option>&boldItalic.label;</html:option>
|
||||
<html:select id="pref:int:mail.quoted_style">
|
||||
<html:option value="0" label="®ular.label;"/>
|
||||
<html:option value="1" label="&bold.label;"/>
|
||||
<html:option value="2" label="&italic.label;"/>
|
||||
<html:option value="3" label="&boldItalic.label;"/>
|
||||
</html:select>
|
||||
</html:td></html:tr>
|
||||
<html:tr><html:td>&size.label;
|
||||
<html:select>
|
||||
<html:option>®ular.label;</html:option>
|
||||
<html:option>&bigger.label;</html:option>
|
||||
<html:option>&smaller.label;</html:option>
|
||||
<html:select id="pref:int:mail.quoted_style">
|
||||
<html:option value="0" label="®ular.label;"/>
|
||||
<html:option value="1" label="&bigger.label;"/>
|
||||
<html:option value="2" label="&smaller.label;"/>
|
||||
</html:select>
|
||||
</html:td></html:tr>
|
||||
<html:tr><html:td>&color.label;
|
||||
<html:select>
|
||||
<html:option></html:option>
|
||||
</html:select>
|
||||
<html:tr><html:td>
|
||||
<!-- heeding and setting the "mail.citation_color" pref still needs work... -->
|
||||
<menu>
|
||||
<titledbutton value="&color.label;" class="popup" align="right"/>
|
||||
<html:div style="width:30px; background-color:white"/>
|
||||
<menupopup>
|
||||
<colorpicker palettename="standard" onclick="setColorWell(this.parentNode.parentNode);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</html:td></html:tr>
|
||||
</html:table>
|
||||
</html:form>
|
||||
|
Loading…
x
Reference in New Issue
Block a user