Changeset 706

Show
Ignore:
Timestamp:
2008-01-04 06:10:39 (1 year ago)
Author:
MaierMan
Message:

Songbird support (to be continued)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome.manifest

    r704 r706  
    4949overlay chrome://dta/content/integration/songbird.xul chrome://dta/content/integration/elements.xul application=songbird@songbirdnest.com 
    5050style   chrome://songbird/content/xul/mainScriptsOverlay.xul    chrome://dta/skin/integration/style.css application=songbird@songbirdnest.com 
    51 style   chrome://dta/content/dta/manager.xul    chrome://dta/skin/manager/songbird.css application=songbird@songbirdnest.com 
     51style   chrome://dta/content/dta/manager.xul    chrome://dta/skin/common/songbird.css application=songbird@songbirdnest.com 
     52style   chrome://dta/content/dta/select.xul     chrome://dta/skin/common/songbird.css application=songbird@songbirdnest.com 
  • trunk/chrome/content/integration/elements.js

    r622 r706  
    209209                        var sel = document.commandDispatcher.focusedWindow.getSelection(); 
    210210                        if (sel.isCollapsed) { 
    211                                 windows.push(DTA_Mediator.getMostRecent().getBrowser().selectedBrowser.contentWindow.top); 
     211                                windows.push(gBrowser.selectedBrowser.contentWindow.top); 
    212212                        } 
    213213                        else { 
     
    216216                } 
    217217                else { 
    218                         var win = DTA_Mediator.getMostRecent().getBrowser(); 
    219                         win.browsers.forEach( 
     218                        gBrowser.browsers.forEach( 
    220219                                function(e) { 
    221220                                        windows.push(e.contentWindow.top); 
     
    241240                } 
    242241                return windows; 
     242        }, 
     243        _types: { 
     244                'mail:3pane': 'findWindowsMail', 
     245                'mail:messageWindow': 'findWindowsMail' 
    243246        }, 
    244247         
     
    272275                        } 
    273276 
    274                         var wt = document.documentElement.getAttribute('windowtype');  
    275                         var windows = ( 
    276                                 wt.match(/^mail:/) 
    277                                 ? this.findWindowsMail 
    278                                 : this.findWindowsNavigator 
    279                         )(all); 
     277                        var wt = document.documentElement.getAttribute('windowtype'); 
     278                        if (wt in this._types) { 
     279                                var windows = this[this._types[wt]](all); 
     280                        } 
     281                        else { 
     282                                var windows = this.findWindowsNavigator(all); 
     283                        } 
    280284                         
    281285                        var urls = []; 
     
    312316        findSingleLink: function(turbo) { 
    313317                try { 
     318                        // Songbird 
     319                        //if (!gContextMenu) { 
     320                        //      var gContextMenu = document.getElementById('contentAreaContextMenu'); 
     321                        //} 
    314322                        var win = document.commandDispatcher.focusedWindow.top; 
    315323 
     
    388396        onContextShowing: function(evt) { 
    389397                try { 
     398                        // Songbird 
     399                        if ('gContextMenu' in window) { 
     400                                var gContextMenu = evt.originalTarget; 
     401                        } 
    390402                         
    391403                        // get settings 
     
    571583} 
    572584 
    573 window.addEventListener("load", function() {DTA_ContextOverlay.init();}, false); 
     585addEventListener("load", function() {DTA_ContextOverlay.init();}, false); 
  • trunk/chrome/skin/common/songbird.css

    r705 r706  
    1717        color: windowText !important; 
    1818} 
    19 tree { 
    20         background-color: white !important; 
     19tree, 
     20treechildren::-moz-tree-row, 
     21treechildren::-moz-tree-row(even), 
     22treechildren::-moz-tree-row(odd) { 
     23        background-color: white; 
    2124} 
    22  
    23 toolbox { 
     25treechildren::-moz-tree-cell-text { 
     26        color: black;    
     27
     28toolbar *{ 
    2429        color: windowText !important; 
    2530} 
  • trunk/chrome/skin/manager/style.css

    r705 r706  
    11@import 'chrome://dta/skin/common/style.css'; 
    2 @import 'chrome://global/skin/tree.css'; 
    32@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 
    43@namespace html url("http://www.w3.org/1999/xhtml"); 
  • trunk/chrome/skin/select/style.css

    r395 r706  
    7777 
    7878treechildren::-moz-tree-row(manuallySelected) { 
    79         background-color: #FFFFB3
     79        background-color: #FFFFB3 !important
    8080} 
    8181treechildren::-moz-tree-row(manuallySelected, selected) { 
    82         background-color: #FFFF80
     82        background-color: #FFFF80 !important
    8383} 
    8484treechildren::-moz-tree-row(f0) { 
    85         background-color: #FFE8BB
     85        background-color: #FFE8BB !important
    8686} 
    8787treechildren::-moz-tree-row(f0, selected) { 
    88         background-color: #FFD88A
     88        background-color: #FFD88A !important
    8989} 
    9090treechildren::-moz-tree-row(f1) { 
    91         background-color: #ECFFB3
     91        background-color: #ECFFB3 !important
    9292} 
    9393treechildren::-moz-tree-row(f1, selected) { 
    94         background-color: #DFFF80
     94        background-color: #DFFF80 !important
    9595} 
    9696treechildren::-moz-tree-row(f2) { 
    97         background-color: #ECE8FF
     97        background-color: #ECE8FF !important
    9898} 
    9999treechildren::-moz-tree-row(f2, selected) { 
    100         background-color: #D5CCFF
     100        background-color: #D5CCFF !important
    101101} 
    102102treechildren::-moz-tree-row(f3) { 
    103         background-color: #DDF3FF
     103        background-color: #DDF3FF !important
    104104} 
    105105treechildren::-moz-tree-row(f3, selected) { 
    106         background-color: #C2EAFF
     106        background-color: #C2EAFF !important
    107107} 
    108108treechildren::-moz-tree-row(f4) { 
    109         background-color: #FDE8FF
     109        background-color: #FDE8FF !important
    110110} 
    111111treechildren::-moz-tree-row(f4, selected) { 
    112         background-color: #FBCCFF
     112        background-color: #FBCCFF !important
    113113} 
    114114treechildren::-moz-tree-row(f5) { 
    115         background-color: #DDFFF4
     115        background-color: #DDFFF4 !important
    116116} 
    117117treechildren::-moz-tree-row(f5, selected) { 
    118         background-color: #A8FFE4
     118        background-color: #A8FFE4 !important
    119119} 
    120120treechildren::-moz-tree-row(f6) { 
    121         background-color: #FEFFAF
     121        background-color: #FEFFAF !important
    122122} 
    123123treechildren::-moz-tree-row(f6, selected) { 
    124         background-color: #FDFF7A
     124        background-color: #FDFF7A !important
    125125} 
    126126treechildren::-moz-tree-row(f7) { 
    127         background-color: #FFF0B3
     127        background-color: #FFF0B3 !important
    128128} 
    129129treechildren::-moz-tree-row(f7, selected) { 
    130         background-color: #FFE680
     130        background-color: #FFE680 !important
    131131} 
    132132treechildren::-moz-tree-row(f8) { 
    133         background-color: #FFDBDB
     133        background-color: #FFDBDB !important
    134134} 
    135135treechildren::-moz-tree-row(f8, selected) { 
    136         background-color: #DFC2C2
     136        background-color: #DFC2C2 !important
    137137} 
  • trunk/install.rdf

    r704 r706  
    6262                                <id>songbird@songbirdnest.com</id> 
    6363                                <minVersion>0.4a</minVersion> 
    64                                 <maxVersion>0.4.*</maxVersion> 
     64                                <maxVersion>0.5pre</maxVersion> 
    6565                        </rdf:Description> 
    6666                </targetApplication>