Got some new icons for the lists
Toolbar buttons are now icons
|
@ -107,13 +107,13 @@ var ScholarPane = new function()
|
||||||
|
|
||||||
itemsView = new Scholar.ItemTreeView(collection);
|
itemsView = new Scholar.ItemTreeView(collection);
|
||||||
document.getElementById('items-tree').view = itemsView;
|
document.getElementById('items-tree').view = itemsView;
|
||||||
document.getElementById('tb-rename').disabled = collection.isLibrary();
|
document.getElementById('tb-collection-rename').disabled = collection.isLibrary();
|
||||||
itemsView.selection.clearSelection();
|
itemsView.selection.clearSelection();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
document.getElementById('items-tree').view = itemsView = null;
|
document.getElementById('items-tree').view = itemsView = null;
|
||||||
document.getElementById('tb-rename').disabled = true;
|
document.getElementById('tb-collection-rename').disabled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
<hbox flex="1">
|
<hbox flex="1">
|
||||||
<vbox persist="width" width="200" style="min-width: 150px;">
|
<vbox persist="width" width="200" style="min-width: 150px;">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<toolbarbutton label="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
|
<toolbarbutton id="tb-collection-add" tooltiptext="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
|
||||||
<toolbarbutton id="tb-rename" label="&toolbar.renameCollection.label;" oncommand="ScholarPane.renameSelectedCollection();" disabled="true"/>
|
<toolbarbutton id="tb-collection-rename" tooltiptext="&toolbar.renameCollection.label;" oncommand="ScholarPane.renameSelectedCollection();" disabled="true"/>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<tree id="collections-tree" hidecolumnpicker="true" context="scholar-collectionmenu"
|
<tree id="collections-tree" hidecolumnpicker="true" context="scholar-collectionmenu"
|
||||||
onselect="ScholarPane.onCollectionSelected();" seltype="single"
|
onselect="ScholarPane.onCollectionSelected();" seltype="single"
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
<splitter id="scholar-tree-splitter" resizebefore="closest" resizeafter="closest"/>
|
<splitter id="scholar-tree-splitter" resizebefore="closest" resizeafter="closest"/>
|
||||||
<vbox persist="width" flex="1" style="min-width: 300px;">
|
<vbox persist="width" flex="1" style="min-width: 300px;">
|
||||||
<toolbar align="center">
|
<toolbar align="center">
|
||||||
<toolbarbutton id="tb-add" label="&toolbar.newItem.label;" type="menu">
|
<toolbarbutton id="tb-add" tooltiptext="&toolbar.newItem.label;" type="menu">
|
||||||
<menupopup/>
|
<menupopup/>
|
||||||
</toolbarbutton>
|
</toolbarbutton>
|
||||||
<spacer flex="1"/>
|
<spacer flex="1"/>
|
||||||
|
|
|
@ -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
|
#scholar-pane toolbar
|
||||||
{
|
{
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
After Width: | Height: | Size: 668 B |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 733 B |
BIN
chrome/chromeFiles/skin/default/scholar/toolbar-item-add.png
Normal file
After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 593 B |
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 555 B |