Changeset 122

Show
Ignore:
Timestamp:
2007-02-13 23:19:09 (2 years ago)
Author:
MaierMan
Message:

fix ups for that dialogheader thingie.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/addurl.xul

    r94 r122  
    5555        </keyset> 
    5656         
    57         <dialogheader id="logo"> 
    58                 <label control="URLaddress" value="&add.value;" /> 
    59                 <spacer flex="1"/> 
    60         </dialogheader> 
     57        <dialogheader id="logo" title="&add.value;" /> 
    6158 
    6259        <description class="header" id="descr">&desc.value; <html:span id="batcheslabel">&desc.batches.value;</html:span></description> 
  • trunk/chrome/content/dta/info.js

    r108 r122  
    3737                                $('renaming').value = d.mask; 
    3838                                $('directory').value = d.originalDirSave; 
    39                                 $("image").setAttribute("src", getIcon(d.fileName, 'isMetaLink' in d, 32)); 
    40                                 this.item; 
     39                                var caption = document.getAnonymousNodes($("logo"))[0]; 
     40                                caption.style.backgroundImage = 'url(' + getIcon(d.fileName, 'isMetaLink' in d, 32) + ')'; 
     41                                caption.style.paddingLeft = '37px'; 
     42                                this.item = d; 
    4143                                Dialog.draw(); 
    4244                                return; 
     
    117119                 
    118120                var c = d.firstChunk; 
     121                var canvas = this.canvas; 
     122                 
    119123                canvas.clearRect(0,0,300,20); 
    120124 
  • trunk/chrome/content/dta/info.xul

    r61 r122  
    4646        </keyset> 
    4747         
    48         <dialogheader id="logo"> 
    49                 <hbox> 
    50                         <image id="image" style="max-height:32px; max-width:32px; display:block; padding-right: 4px;" /> 
    51                         <label value="&info.label;" /> 
    52                 </hbox> 
    53                 <spacer flex="1"/> 
    54         </dialogheader>  
     48        <dialogheader id="logo" title="&info.label;" /> 
     49 
    5550        <grid style="padding:5px 10px;"> 
    5651                <columns> 
  • trunk/chrome/content/dta/renamingmask.xul

    r61 r122  
    3535        </keyset> 
    3636         
    37         <dialogheader id="logo"> 
    38                 <label control="URLaddress" value="&title;" style="padding-left: 35px; background: url('chrome://dta/skin/select/mask.png') no-repeat left center;" /> 
    39                 <spacer flex="1"/> 
    40         </dialogheader> 
     37        <dialogheader id="logo" title="&title;" class="renamingmask" /> 
    4138 
    4239        <vbox id="renamingbox" style="margin:8px;" > 
  • trunk/chrome/skin/add/style.css

    r43 r122  
    66        width: 28px; 
    77} 
    8 dialogheader label
    9         padding-left: 35px
    10         background: url('chrome://dta/skin/add/add.png') no-repeat left center
     8dialogheader .dialogheader-title
     9        padding-left: 30px !important
     10        background-image: url('chrome://dta/skin/add/add.png') !important
    1111} 
    1212textbox[readonly], textbox[readonly] * { 
  • trunk/chrome/skin/common/style.css

    r92 r122  
    1414        height: 42px !important; 
    1515        overflow: hidden; 
     16        padding: 3px !important; 
     17        padding-left: 7px !important; 
     18        margin: 0 !important; 
    1619} 
    1720dialogheader#logo label { 
    18         padding-top: 4px; 
     21        padding: 0; 
     22
     23dialogheader#logo .dialogheader-title { 
     24        padding-top: 2px; 
    1925        font-weight: bold; 
    2026        margin-top: auto; 
    2127        margin-bottom: auto; 
     28        background: transparent left center no-repeat; 
     29} 
     30dialogheader#logo.renamingmask .dialogheader-title { 
     31        padding-left: 30px !important; 
     32        background-image: url('chrome://dta/skin/select/mask.png') !important; 
    2233} 
    2334