         
         switch identifier {
         case NSTouchBarItemIdentifier.label:
-            let custom = NSCustomTouchBarItem(identifier: identifier)
-            let label = NSTextField.init(labelWithString: "Xnpm "+package.packageTitle)
-            custom.view = label
-            
-            return custom
+            return touchBarLabel(packageName:package.packageTitle!)
         case NSTouchBarItemIdentifier.icon:
-            let custom = NSCustomTouchBarItem(identifier: identifier)
-            let img = NSApp.applicationIconImage!
-            img.size = CGSize(width: 30.0, height: 30.0)
-            let imgview = NSImageView(image: img)
-            imgview.frame.size = CGSize(width: imgview.frame.width, height: 30.0)
-            imgview.imageScaling = .scaleProportionallyUpOrDown
-            custom.view = imgview
-            print("something")
-            return custom
+            return touchBarImageItem()
         case NSTouchBarItemIdentifier.button:
             let buttonItem = NSCustomTouchBarItem(identifier: identifier)
             var image = NSImage(named: NSImageNameTouchBarPlayTemplate)!

//

import Cocoa



extension NSTouchBarCustomizationIdentifier {

            }
            
        }
        
    }
    
    
