Changeset 0f5a47


Ignore:
Timestamp:
Nov 14, 2008, 11:32:37 AM (13 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
8f0e36
Parents:
a502e7
Message:

colorized dialogs to differentiate them

Location:
chrome
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_Dialog.js

    ra502e7 r0f5a47  
    3030
    3131    init : function(warning) {
     32        document.getElementById("vI_Dialog").setAttribute("class", warning.class);
     33        // refresh window contents through resizing
     34        window.resizeTo( window.outerWidth, window.outerHeight);
    3235        vI_Dialog.setDescription(document.getElementById("vI_Dialog_title"), warning.title);
    3336        vI_Dialog.setDescription(document.getElementById("vI_Dialog_recLabel"), warning.recLabel);
    3437        vI_Dialog.setDescription(document.getElementById("vI_Dialog_recipient"), warning.recipient);
    35         vI_htmlTextBox.init("vI_Dialog_browser", null, warning.warning, warning.css);       
     38        vI_htmlTextBox.init("vI_Dialog_browser", null, warning.warning, warning.css);
    3639        vI_Dialog.setDescription(document.getElementById("vI_Dialog_query"), warning.query);
    3740    }
  • chrome/content/v_identity/vI_Dialog.xul

    ra502e7 r0f5a47  
    2929<!DOCTYPE overlay SYSTEM "chrome://v_identity/locale/v_identity.dtd">
    3030
    31 <dialog id="vi_Dialog" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     31<dialog id="vI_Dialog" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    3232    buttons="accept,cancel"
    3333        title="Virtual Identity"
  • chrome/content/v_identity/vI_storage.js

    ra502e7 r0f5a47  
    463463   
    464464    __getWarning : function(warningCase, recipient, compareMatrix) {
    465         var warning = { title: null, recLabel : null, recipient : null, warning : null, css: null, query : null };
     465        var warning = { title: null, recLabel : null, recipient : null, warning : null, css: null, query : null, class : null };
    466466        warning.title = vI.elements.strings.getString("vident." + warningCase + ".title")
    467467        warning.recLabel = vI.elements.strings.getString("vident." + warningCase + ".recipient") +  " (" + recipient.recType + "):"
     
    475475            "</table>"
    476476        warning.css = "vI_DialogBrowser.css";
    477         warning.query = vI.elements.strings.getString("vident." + warningCase + ".query")
     477        warning.query = vI.elements.strings.getString("vident." + warningCase + ".query");
     478        warning.class = warningCase;
    478479        return warning;
    479480    },
  • chrome/skin/classic/v_identity/vI_Dialog.css

    ra502e7 r0f5a47  
    1 #vi_Dialog {
     1#vI_Dialog {
    22    width: 550px;
    33    height: 320px;
     4    padding: 0;
    45}
     6
     7.dialog-button-box {
     8    padding: 0pt 10px 10px;
     9}
     10
     11.replaceVIdentity .dialog-content-box { border: 10px solid #d8e0e8; }
     12.replaceVIdentity .dialog-button-box,
     13.replaceVIdentity #vI_Dialog_title,
     14.replaceVIdentity #vI_Dialog_query { background-color: #d8e0e8; }
     15
     16.updateStorage .dialog-content-box { border: 10px solid infobackground; }
     17.updateStorage .dialog-button-box,
     18.updateStorage #vI_Dialog_title,
     19.updateStorage #vI_Dialog_query { background-color: infobackground; }
    520
    621#vI_Dialog_title {
    722    font-size: medium;
    823    font-weight:bold;
    9     margin-bottom:2em;
     24    margin: 0pt 0pt 1em;
     25    padding: 1px 5px 2em 6px;
    1026}
    1127
     
    3046    font-size: medium;
    3147    font-weight:bold;
    32     margin-top:2em;
     48    margin: 1em 0pt 0pt;
     49    padding: 1em 5px 1px 6px;
    3350}
Note: See TracChangeset for help on using the changeset viewer.