Changeset 0db812


Ignore:
Timestamp:
Dec 3, 2008, 11:51:30 AM (11 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
42de65
Parents:
3db050
Message:

colorized dialogs to differentiate them, like [449]

Location:
chrome
Files:
4 edited

Legend:

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

    r3db050 r0db812  
    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);
  • chrome/content/v_identity/vI_Dialog.xul

    r3db050 r0db812  
    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

    r3db050 r0db812  
    209209   
    210210    __getWarning : function(warningCase, recipient, compareMatrix) {
    211         var warning = { title: null, recLabel : null, recipient : null, warning : null, css: null, query : null };
     211        var warning = { title: null, recLabel : null, recipient : null, warning : null, css: null, query : null, class : null };
    212212        warning.title = vI.elements.strings.getString("vident." + warningCase + ".title")
    213213        warning.recLabel = vI.elements.strings.getString("vident." + warningCase + ".recipient") + " (" + recipient.recType + "):"
     
    221221            "</table>"
    222222        warning.css = "vI_DialogBrowser.css";
    223         warning.query = vI.elements.strings.getString("vident." + warningCase + ".query")
     223        warning.query = vI.elements.strings.getString("vident." + warningCase + ".query");
     224        warning.class = warningCase;
    224225        return warning;
    225226    },
  • chrome/skin/classic/v_identity/vI_Dialog.css

    r3db050 r0db812  
    1 #vi_Dialog {
     1#vI_Dialog {
    22    width: 550px;
    33    height: 320px;
    4 }
     4    padding: 0;
     5}
     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
     
    3450    font-size: medium;
    3551    font-weight:bold;
    36     margin-top:2em;
     52    margin: 1em 0pt 0pt;
     53    padding: 1em 5px 1px 6px;
    3754}
Note: See TracChangeset for help on using the changeset viewer.