Got some new icons for the lists

Toolbar buttons are now icons
This commit is contained in:
David Norton 2006-06-20 17:08:30 +00:00
parent 09d79d6dd7
commit 6b002f7566
11 changed files with 25 additions and 5 deletions

View file

@ -107,13 +107,13 @@ var ScholarPane = new function()
itemsView = new Scholar.ItemTreeView(collection);
document.getElementById('items-tree').view = itemsView;
document.getElementById('tb-rename').disabled = collection.isLibrary();
document.getElementById('tb-collection-rename').disabled = collection.isLibrary();
itemsView.selection.clearSelection();
}
else
{
document.getElementById('items-tree').view = itemsView = null;
document.getElementById('tb-rename').disabled = true;
document.getElementById('tb-collection-rename').disabled = true;
}
}

View file

@ -43,8 +43,8 @@
<hbox flex="1">
<vbox persist="width" width="200" style="min-width: 150px;">
<toolbar>
<toolbarbutton label="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
<toolbarbutton id="tb-rename" label="&toolbar.renameCollection.label;" oncommand="ScholarPane.renameSelectedCollection();" disabled="true"/>
<toolbarbutton id="tb-collection-add" tooltiptext="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
<toolbarbutton id="tb-collection-rename" tooltiptext="&toolbar.renameCollection.label;" oncommand="ScholarPane.renameSelectedCollection();" disabled="true"/>
</toolbar>
<tree id="collections-tree" hidecolumnpicker="true" context="scholar-collectionmenu"
onselect="ScholarPane.onCollectionSelected();" seltype="single"
@ -65,7 +65,7 @@
<splitter id="scholar-tree-splitter" resizebefore="closest" resizeafter="closest"/>
<vbox persist="width" flex="1" style="min-width: 300px;">
<toolbar align="center">
<toolbarbutton id="tb-add" label="&toolbar.newItem.label;" type="menu">
<toolbarbutton id="tb-add" tooltiptext="&toolbar.newItem.label;" type="menu">
<menupopup/>
</toolbarbutton>
<spacer flex="1"/>

View file

@ -26,6 +26,26 @@ tree #items-tree
}
#tb-collection-add
{
list-style-image: url('chrome://scholar/skin/toolbar-collection-add.png');
}
#tb-collection-rename
{
list-style-image: url('chrome://scholar/skin/toolbar-collection-edit.png');
}
#tb-collection-rename[disabled="true"]
{
list-style-image: url('chrome://scholar/skin/toolbar-collection-edit-gray.png');
}
#tb-add
{
list-style-image: url('chrome://scholar/skin/toolbar-item-add.png');
}
#scholar-pane toolbar
{
border-bottom: none;

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

After

Width:  |  Height:  |  Size: 555 B