use chrome urls for configurable chrome.

This commit is contained in:
putterman%netscape.com 1999-04-16 22:05:07 +00:00
parent 8052fbe8a1
commit c18d8b68c8
15 changed files with 446 additions and 30 deletions

View File

@ -30,6 +30,7 @@ SAMPLES_DIR = $(DIST)/bin/res/mailnews/compose
EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/msgcompose.xul \
$(srcdir)/messengercompose.css \
$(srcdir)/msgcomposebody.html \
$(srcdir)/send.gif \
$(srcdir)/quote.gif \

View File

@ -23,6 +23,7 @@ include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) msgcompose.xul $(DIST)\bin\res\mailnews\compose
$(MAKE_INSTALL) messengercompose.css $(DIST)\bin\res\mailnews\compose
$(MAKE_INSTALL) msgcomposeBody.html $(DIST)\bin\res\mailnews\compose
$(MAKE_INSTALL) send.gif $(DIST)\bin\res\mailnews\compose
$(MAKE_INSTALL) quote.gif $(DIST)\bin\res\mailnews\compose
@ -34,6 +35,7 @@ install:: $(DLL)
clobber::
rm -f $(DIST)\bin\res\mailnews\compose\msgcompose.xul
rm -f $(DIST)\bin\res\mailnews\compose\messengercompose.css
rm -f $(DIST)\bin\res\mailnews\compose\msgcomposeBody.html
rm -f $(DIST)\bin\res\mailnews\compose\send.gif
rm -f $(DIST)\bin\res\mailnews\compose\quote.gif

View File

@ -0,0 +1,205 @@
/** this should only contain XUL widget defaults. Defaults for widgets of
a particular application should be in that application's style sheet.
For example style definitions for navigator can be found in navigator.css
**/
box {
display: block;
}
box[debug] box {
border: 5px solid blue;
margin: 1px;
padding: 1px;
}
box[debug] box[align="vertical"] {
border: 5px solid red;
}
spring {
display: block;
}
box[debug] spring {
background-color: green;
}
toolbar {
display:block;
background-color: #CCCCCC;
border-bottom: solid darkGray 1px;
border-top: solid white 1px;
border-left: solid white 1px;
border-right: solid darkGray 1px;
font: 10pt sans-serif;
min-height: 20px;
}
toolbar[collapsed="true"] {
display:none;
}
toolbar[hidden="true"] {
display:none;
}
toolbox {
background-color:darkgray;
display: block;
}
:toolbox-normal {
background-color: #666699;
background-image: url("resource:/res/toolbar/TB_Tab.gif");
background-repeat: no-repeat;
color: lightgray;
border-bottom: solid darkGray 1px;
border-top: solid white 0px;
border-left: solid white 0px;
border-right: solid darkGray 1px;
}
:toolbox-rollover {
background-color: #ccccff;
background-image: url("resource:/res/toolbar/TB_Tab_mo.gif");
background-repeat: no-repeat;
color: green;
border-bottom: solid darkGray 1px;
border-top: solid white 0px;
border-left: solid white 0px;
border-right: solid darkGray 1px;
}
window {
background-color:#CCCCCC;
display: block;
overflow: hidden;
}
broadcaster {
display: none;
}
observes {
display: none;
}
menubar {
display: none;
}
menu {
display: none;
}
menuitem {
display: none;
}
progressmeter {
display:inline;
border: 1px #666699;
color : #9999CC;
}
:progressmeter-stripe {
color: #BBBBCC;
}
titledbutton {
display: inline;
}
toolbar titledbutton {
display: inline;
color:black;
padding: 2px;
margin: 2px;
font: 2.5mm sans-serif;
}
toolbar titledbutton[pseudoclass~="hover"] {
border: 1px outset white;
color:blue;
//text-decoration:underline;
padding: 1px;
}
toolbar titledbutton[pseudoclass~="hover"]:-moz-outline {
border : 1px solid black;
}
toolbar titledbutton[pseudoclass~="active"] {
text-decoration:none;
border: 1px inset;
padding-left: 2px;
padding-right: 0px;
padding-top: 2px;
padding-bottom: 0px;
}
toolbar titledbutton[pseudoclass~="active"]:-moz-outline {
border : 1px solid black;
}
toolbar titledbutton[disabled] {
opacity: 0.5;
}
titledbutton[class=push] {
display: inline;
vertical-align: bottom;
cursor: default;
border: 2px outset rgb(156, 154, 156);
background-color: rgb(206, 207, 206);
color:black;
padding: 1px;
}
titledbutton[class=push][pseudoclass~="active"] {
border-style: inset;
padding-left: 2px;
padding-right: 0px;
padding-top: 2px;
padding-bottom: 0px;
}
titledbutton[class=push][pseudoclass~="hover"] {
}
titledbutton[class=push][pseudoclass~="active"]:-moz-outline {
border : 1px solid black;
}
titledbutton[class=push][pseudoclass~="hover"]:-moz-outline {
border : 1px solid black;
}
titledbutton[class=push][disabled] {
border-style: solid;
}
titledbutton[class=push]:-moz-focus-inner {
padding-left : 2px;
padding-right : 2px;
padding-top : 1px;
padding-bottom: 1px;
margin: 0px;
}
titledbutton[class=push][pseudoclass~="focus"]:-moz-focus-inner {
padding-left : 1px;
padding-right : 1px;
padding-top : 0px;
padding-bottom: 0px;
margin: 0px;
border : 1px dotted black;
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="chrome://messengercompose/skin/" type="text/css"?>
<!DOCTYPE window
[
@ -59,19 +59,19 @@
<!ENTITY checkSpellCmd.label ".Check Spelling...">
<!-- Toolbar items -->
<!ENTITY sendButton.img "resource:/res/mailnews/compose/send.gif">
<!ENTITY sendButton.img "chrome://messengercompose/skin/send.gif">
<!ENTITY sendButton.label "Send">
<!ENTITY quoteButton.img "resource:/res/mailnews/compose/quote.gif">
<!ENTITY quoteButton.img "chrome://messengercompose/skin/quote.gif">
<!ENTITY quoteButton.label "Quote">
<!ENTITY addressButton.img "resource:/res/mailnews/compose/address.gif">
<!ENTITY addressButton.img "chrome://messengercompose/skin/address.gif">
<!ENTITY addressButton.label "Address">
<!ENTITY attachButton.img "resource:/res/mailnews/compose/attach.gif">
<!ENTITY attachButton.img "chrome://messengercompose/skin/attach.gif">
<!ENTITY attachButton.label "Attach">
<!ENTITY spellingButton.img "resource:/res/mailnews/compose/spelling.gif">
<!ENTITY spellingButton.img "chrome://messengercompose/skin/spelling.gif">
<!ENTITY spellingButton.label "Spelling">
<!ENTITY saveButton.img "resource:/res/mailnews/compose/save.gif">
<!ENTITY saveButton.img "chrome://messengercompose/skin/save.gif">
<!ENTITY saveButton.label "Save">
<!ENTITY stopButton.img "resource:/res/mailnews/compose/stop.gif">
<!ENTITY stopButton.img "chrome://messengercompose/skin/stop.gif">
<!ENTITY stopButton.label "Stop">
<!ENTITY throbberButton.img "resource:/res/throbber/anims00.gif">
<!ENTITY throbberButton.url "http://www.mozilla.org/">

View File

@ -2,11 +2,11 @@
<FRAMESET COLS="30%,70%">
<FRAME NAME=folder SRC="folderPane.xul">
<FRAME NAME=folder SRC="chrome://messenger/content/folderPane.xul">
<FRAMESET ROWS="50%,50%">
<FRAME NAME=thread SRC="threadPane.xul">
<FRAME NAME=messagepane SRC="messagePane.xul">
<FRAME NAME=thread SRC="chrome://messenger/content/threadPane.xul">
<FRAME NAME=messagepane SRC="chrome://messenger/content/messagePane.xul">
</FRAMESET>

View File

@ -30,6 +30,7 @@ SAMPLES_DIR = $(DIST)/bin/res/mailnews/messenger
EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/mailshell.xul \
$(srcdir)/messenger.css \
$(srcdir)/folderPane.xul \
$(srcdir)/folderPane.css \
$(srcdir)/threadPane.xul \

View File

@ -40,7 +40,7 @@ function ComposeMessage(tree, nodeList, msgAppCore, type)
var appCore = FindComposeAppCore();
if (appCore != null) {
appCore.SetWindow(window);
appCore.NewMessage("resource:/res/mailnews/compose/msgcompose.xul", tree,
appCore.NewMessage("chrome://messengercompose/content/", tree,
nodeList, msgAppCore, type);
}
}

View File

@ -46,33 +46,33 @@ treehead treeitem treecell {
treeitem > treecell > titledbutton {
height: 16px;
width: 16px;
list-style-image: url("resource:/res/mailnews/messenger/closedMailFolder.gif");
list-style-image: url("chrome://messenger/skin/closedMailFolder.gif");
}
treeitem[open="true"] > treecell > titledbutton {
height: 16px;
width: 16px;
list-style-image: url("resource:/res/mailnews/messenger/openMailFolder.gif");
list-style-image: url("chrome://messenger/skin/openMailFolder.gif");
}
treeitem[SpecialFolder="Inbox"] > treecell > titledbutton {
vertical-align: bottom;
height: 16px;
width: 16px;
list-style-image: url("resource:/res/mailnews/messenger/closedInbox.gif");
list-style-image: url("chrome://messenger/skin/closedInbox.gif");
}
treeitem[SpecialFolder="Trash"] > treecell > titledbutton {
vertical-align: bottom;
height: 16px;
width: 16px;
list-style-image: url("resource:/res/mailnews/messenger/closedTrash.gif");
list-style-image: url("chrome://messenger/skin/closedTrash.gif");
}
treeitem[SpecialFolder="Unsent Messages"] > treecell > titledbutton {
vertical-align: bottom;
height: 16px;
width: 16px;
list-style-image: url("resource:/res/mailnews/messenger/closedOutbox.gif");
list-style-image: url("chrome://messenger/skin/closedOutbox.gif");
}

View File

@ -1,12 +1,12 @@
<?xml version="1.0"?>
<?xml-stylesheet href="folderPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY nameColumn.label "Name">
<!ENTITY unreadColumn.label "Unread">
<!ENTITY totalColumn.label "Total">
<!ENTITY localMailHost.img "resource:/res/mailnews/messenger/localMailHost.gif">
<!ENTITY localMailHost.img "chrome://messenger/skin/localMailHost.gif">
<!ENTITY localMailHost.label "Local Mail">
]>

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
<!DOCTYPE window
[
@ -10,17 +10,17 @@
<!-- File menu items -->
<!-- Toolbar items -->
<!ENTITY getMsgButton.img "resource:/res/mailnews/messenger/getmsg.gif">
<!ENTITY getMsgButton.img "chrome://messenger/skin/getmsg.gif">
<!ENTITY getMsgButton.label "Get Msg">
<!ENTITY newMsgButton.img "resource:/res/mailnews/messenger/newmsg.gif">
<!ENTITY newMsgButton.img "chrome://messenger/skin/newmsg.gif">
<!ENTITY newMsgButton.label "New Msg">
<!ENTITY replyButton.img "resource:/res/mailnews/messenger/reply.gif">
<!ENTITY replyButton.img "chrome://messenger/skin/reply.gif">
<!ENTITY replyButton.label "Reply">
<!ENTITY forwardButton.img "resource:/res/mailnews/messenger/forward.gif">
<!ENTITY forwardButton.img "chrome://messenger/skin/forward.gif">
<!ENTITY forwardButton.label "Forward">
<!ENTITY deleteButton.img "resource:/res/mailnews/messenger/delete.gif">
<!ENTITY deleteButton.img "chrome://messenger/skin/delete.gif">
<!ENTITY deleteButton.label "Delete">
<!ENTITY getNewsButton.img "resource:/res/mailnews/messenger/getmsg.gif">
<!ENTITY getNewsButton.img "chrome://messenger/skin/getmsg.gif">
<!ENTITY getNewsButton.label "Load News">
<!ENTITY throbber.img "resource:/res/throbber/anims00.gif">
<!ENTITY throbber.url "http://www.mozilla.org/">

View File

@ -25,6 +25,7 @@ include <$(DEPTH)\config\rules.mak>
install::
$(MAKE_INSTALL) mailshell.xul $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) messenger.css $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) folderPane.xul $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) folderPane.css $(DIST)\bin\res\mailnews\messenger
$(MAKE_INSTALL) threadPane.xul $(DIST)\bin\res\mailnews\messenger
@ -51,6 +52,7 @@ install::
clobber::
rm -f $(DIST)\res\mailnews\messenger\mailshell.xul
rm -f $(DIST)\res\mailnews\messenger\messenger.css
rm -f $(DIST)\res\mailnews\messenger\folderPane.xul
rm -f $(DIST)\res\mailnews\messenger\folderPane.css
rm -f $(DIST)\res\mailnews\messenger\threadPane.xul

View File

@ -0,0 +1,205 @@
/** this should only contain XUL widget defaults. Defaults for widgets of
a particular application should be in that application's style sheet.
For example style definitions for navigator can be found in navigator.css
**/
box {
display: block;
}
box[debug] box {
border: 5px solid blue;
margin: 1px;
padding: 1px;
}
box[debug] box[align="vertical"] {
border: 5px solid red;
}
spring {
display: block;
}
box[debug] spring {
background-color: green;
}
toolbar {
display:block;
background-color: #CCCCCC;
border-bottom: solid darkGray 1px;
border-top: solid white 1px;
border-left: solid white 1px;
border-right: solid darkGray 1px;
font: 10pt sans-serif;
min-height: 20px;
}
toolbar[collapsed="true"] {
display:none;
}
toolbar[hidden="true"] {
display:none;
}
toolbox {
background-color:darkgray;
display: block;
}
:toolbox-normal {
background-color: #666699;
background-image: url("resource:/res/toolbar/TB_Tab.gif");
background-repeat: no-repeat;
color: lightgray;
border-bottom: solid darkGray 1px;
border-top: solid white 0px;
border-left: solid white 0px;
border-right: solid darkGray 1px;
}
:toolbox-rollover {
background-color: #ccccff;
background-image: url("resource:/res/toolbar/TB_Tab_mo.gif");
background-repeat: no-repeat;
color: green;
border-bottom: solid darkGray 1px;
border-top: solid white 0px;
border-left: solid white 0px;
border-right: solid darkGray 1px;
}
window {
background-color:#CCCCCC;
display: block;
overflow: hidden;
}
broadcaster {
display: none;
}
observes {
display: none;
}
menubar {
display: none;
}
menu {
display: none;
}
menuitem {
display: none;
}
progressmeter {
display:inline;
border: 1px #666699;
color : #9999CC;
}
:progressmeter-stripe {
color: #BBBBCC;
}
titledbutton {
display: inline;
}
toolbar titledbutton {
display: inline;
color:black;
padding: 2px;
margin: 2px;
font: 2.5mm sans-serif;
}
toolbar titledbutton[pseudoclass~="hover"] {
border: 1px outset white;
color:blue;
//text-decoration:underline;
padding: 1px;
}
toolbar titledbutton[pseudoclass~="hover"]:-moz-outline {
border : 1px solid black;
}
toolbar titledbutton[pseudoclass~="active"] {
text-decoration:none;
border: 1px inset;
padding-left: 2px;
padding-right: 0px;
padding-top: 2px;
padding-bottom: 0px;
}
toolbar titledbutton[pseudoclass~="active"]:-moz-outline {
border : 1px solid black;
}
toolbar titledbutton[disabled] {
opacity: 0.5;
}
titledbutton[class=push] {
display: inline;
vertical-align: bottom;
cursor: default;
border: 2px outset rgb(156, 154, 156);
background-color: rgb(206, 207, 206);
color:black;
padding: 1px;
}
titledbutton[class=push][pseudoclass~="active"] {
border-style: inset;
padding-left: 2px;
padding-right: 0px;
padding-top: 2px;
padding-bottom: 0px;
}
titledbutton[class=push][pseudoclass~="hover"] {
}
titledbutton[class=push][pseudoclass~="active"]:-moz-outline {
border : 1px solid black;
}
titledbutton[class=push][pseudoclass~="hover"]:-moz-outline {
border : 1px solid black;
}
titledbutton[class=push][disabled] {
border-style: solid;
}
titledbutton[class=push]:-moz-focus-inner {
padding-left : 2px;
padding-right : 2px;
padding-top : 1px;
padding-bottom: 1px;
margin: 0px;
}
titledbutton[class=push][pseudoclass~="focus"]:-moz-focus-inner {
padding-left : 1px;
padding-right : 1px;
padding-top : 0px;
padding-bottom: 0px;
margin: 0px;
border : 1px dotted black;
}

View File

@ -42,7 +42,7 @@ function NavigatorWindow()
if (toolkitCore)
{
toolkitCore.ShowWindow("resource:/res/samples/navigator.xul",
toolkitCore.ShowWindow("chrome://navigator/content/",
window);
}

View File

@ -51,12 +51,12 @@ icon {
display: list-item;
height: 16px;
width: 16px;
list-style-image: url("resource:/res/mailnews/messenger/closedMailFolder.gif");
list-style-image: url("chrome://messenger/skin/closedMailFolder.gif");
}
treeitem > treecell > titledbutton {
vertical-align: bottom;
height: 16px;
width: 16px;
list-style-image: url("resource:/res/mailnews/messenger/mailMessage.gif");
list-style-image: url("chrome://messenger/skin/mailMessage.gif");
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="threadPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/threadPane.css" type="text/css"?>
<!DOCTYPE window
[