partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 16f9108fd1edb4a0b55358eb14afd733696a8541
parent 1d2bf30ff13ac945c9d3db033fd1012671b60fca
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  4 Jan 2012 19:15:54 +0100

Added icons to the tabs of the part editor. Hell, I love this part ;)

Diffstat:
Msrc/frontend/js/Components/Part/Editor/PartEditor.js | 5+++++
Msrc/frontend/js/Components/Part/Editor/PartParameterGrid.js | 8++++----
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/frontend/js/Components/Part/Editor/PartEditor.js b/src/frontend/js/Components/Part/Editor/PartEditor.js @@ -83,24 +83,28 @@ Ext.define('PartKeepr.PartEditor', { // Creates the distributor grid this.partDistributorGrid = Ext.create("PartKeepr.PartDistributorGrid", { title: i18n("Distributors"), + iconCls: 'icon-lorry', layout: 'fit' }); // Creates the manufacturer grid this.partManufacturerGrid = Ext.create("PartKeepr.PartManufacturerGrid", { title: i18n("Manufacturers"), + iconCls: 'icon-building', layout: 'fit' }); // Creates the parameter grid this.partParameterGrid = Ext.create("PartKeepr.PartParameterGrid", { title: i18n("Parameters"), + iconCls: 'icon-table', layout: 'fit' }); // Creates the attachment grid this.partAttachmentGrid = Ext.create("PartKeepr.PartAttachmentGrid", { title: i18n("Attachments"), + iconCls: 'icon-attach', layout: 'fit' }); @@ -163,6 +167,7 @@ Ext.define('PartKeepr.PartEditor', { border: false, plain: true, items: [{ + iconCls: 'icon-brick', xtype: 'panel', border: false, autoScroll: true, diff --git a/src/frontend/js/Components/Part/Editor/PartParameterGrid.js b/src/frontend/js/Components/Part/Editor/PartParameterGrid.js @@ -25,20 +25,20 @@ Ext.define('PartKeepr.PartParameterGrid', { this.plugins = [ this.editing ]; this.deleteButton = Ext.create("Ext.button.Button", { - text: 'Delete', + text: i18n('Delete'), disabled: true, itemId: 'delete', scope: this, - icon: 'resources/silkicons/building_delete.png', + icon: 'resources/fugue-icons/icons/table--minus.png', handler: this.onDeleteClick }); this.dockedItems = [{ xtype: 'toolbar', items: [{ - text: 'Add', + text: i18n('Add'), scope: this, - icon: 'resources/silkicons/building_add.png', + icon: 'resources/fugue-icons/icons/table--plus.png', handler: this.onAddClick }, this.deleteButton] }];