~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/browser/listing.js

  • Committer: mattgiuca
  • Date: 2008-01-15 03:06:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:229
Images: Reduced "small" icons from 22x22 to 16x16. Reduced "large" icons from
    128x128 to 96x96.
Changed some of the icons for Subversion so they make a bit more sense.
    (Missing and deleted are now distinct).
Modified JavaScript and CSS so the interface flows with 16x16 icons instead of
22. This makes each file vertically a lot shorter.
Made the bands of colour in the file listing much closer together in colour.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
file_listing = null;
35
35
thisdir = null;
36
36
 
 
37
/** The width/height of filetype, svnstatus and publishstatus icons */
 
38
icon_size = 16;
 
39
 
37
40
/** ACTIONS **/
38
41
 
39
42
function action_rename(fromfilename)
141
144
        {
142
145
            p = document.createElement("p");
143
146
            p.appendChild(dom_make_img(svnstatus_to_icon(file.svnstatus),
144
 
                22, 22, svnstatus_to_string(file.svnstatus)));
 
147
                icon_size, icon_size, svnstatus_to_string(file.svnstatus)));
145
148
            sidepanel.appendChild(p);
146
149
            p = dom_make_text_elem("p", svnstatus_to_string(file.svnstatus));
147
150
            sidepanel.appendChild(p);
493
496
            td.setAttribute("class", "thincol");
494
497
            td.setAttribute("onclick", selection_string);
495
498
            td.appendChild(dom_make_img(mime_type_to_icon("text/directory"),
496
 
                22, 22, file.type_nice));
 
499
                icon_size, icon_size, file.type_nice));
497
500
            row.appendChild(td);
498
501
            td = document.createElement("td");
499
502
            td.setAttribute("class", "thincol");
500
503
            if (under_subversion)
501
504
                td.appendChild(dom_make_img(svnstatus_to_icon(file.svnstatus),
502
 
                    22, 22, svnstatus_to_string(file.svnstatus)));
 
505
                    icon_size, icon_size, svnstatus_to_string(file.svnstatus)));
503
506
            row.appendChild(td);
504
507
            /* Column 3: Filename */
505
508
            td = dom_make_link_elem("td", filename,
515
518
            td = document.createElement("td");
516
519
            td.setAttribute("class", "thincol");
517
520
            td.appendChild(dom_make_img(mime_type_to_icon(file.type),
518
 
                22, 22, file.type_nice));
 
521
                icon_size, icon_size, file.type_nice));
519
522
            row.appendChild(td);
520
523
            td = document.createElement("td");
521
524
            td.setAttribute("class", "thincol");
522
525
            if (under_subversion)
523
526
                td.appendChild(dom_make_img(svnstatus_to_icon(file.svnstatus),
524
 
                    22, 22, svnstatus_to_string(file.svnstatus)));
 
527
                    icon_size, icon_size, svnstatus_to_string(file.svnstatus)));
525
528
            row.appendChild(td);
526
529
            /* Column 3: Filename */
527
530
            td = dom_make_text_elem("td", filename);