<NME> lib.js
<BEF> var pathLabel = nil

function ToolbarInventory () {}


function ToolbarInventory (panel) {
    this.panel = panel
    this.images = ViewInventory.returnButtonsImages()
    this.contentViewEmpty = ViewInventory.createEmptyPanel()


    var importViews = ViewInventory.createImportPanel()
    this.contentViewImport = importViews[0]
    this.pathLabel = importViews[1]
    this.selectionLabel = importViews[2]
    this.layersButton = importViews[3]
    this.statesButton = importViews[4]
    this.relativeButton = importViews[5]
    this.deviceAccessory = importViews[6]
    this.moreButtonImage = importViews[7]
    this.moreButton = importViews[8]
    this.emptySelectionView = importViews[9]
    this.expiredSelectionView = importViews[10]


    var sceneView = ViewInventory.createScenePanel()
    this.contentViewScene = sceneView[0]
    this.pathLabelScene = sceneView[1]
    this.selectionLabelScene = sceneView[2]
    this.deviceAccessoryScene = sceneView[3]
    this.sceneButton = sceneView[4]
    this.expiredSceneView = sceneView[5]

}




ToolbarInventory.prototype.returnPanel = function() {
    return this.panel
}


ToolbarInventory.setContentView = function() {
    var toolbar = ToolbarInventory.returnInstance()
    if (toolbar != nil) {
      var panel = toolbar.panel
      if (userDefaults.exportFramerFolder == "") {
        var view = toolbar.contentViewEmpty
        [panel setContentView:view]
      }
      else {
        if (panel.contentView() == toolbar.contentViewScene) {
          var view = toolbar.contentViewScene
          [panel setContentView:view]
        }
        else {
          var view = toolbar.contentViewImport
          [panel setContentView:view]
          SelectionInventory.asyncSelectionHandler(false)
        }
        ToolbarInventory.updateAccessoryControls();
      }
      ToolbarInventory.updatePathLabelStringValue()
    }
}

ToolbarInventory.changeContentView = function() {
    if (userDefaults.exportFramerFolder == "") { return }

    var toolbar = ToolbarInventory.returnInstance()
    if (toolbar != nil) {
      var panel = toolbar.panel

      if (panel.contentView() == toolbar.contentViewScene) {
        var view = toolbar.contentViewImport
        [panel setContentView:view]
      }
      else {
        var view = toolbar.contentViewScene
        [panel setContentView:view]
      }
      SelectionInventory.asyncSelectionHandler(false)
    }
}


ToolbarInventory.toolbarMode = function() {
      var toolbar = ToolbarInventory.returnInstance()
      if (toolbar != nil) {
          var panel = toolbar.panel
          if (panel.contentView() == toolbar.contentViewScene) { return Status.toolbarModeScene() }
          else if (panel.contentView() == toolbar.contentViewImport) { return Status.toolbarModeImport() }
          else { return Status.toolbarModeEmpty() }
      }
}


ToolbarInventory.removeInstance = function() {
    var threadIdentifier = "com.tilllur.framer-inventory"
    var threadDictionary = NSThread.mainThread().threadDictionary()
    threadDictionary.removeObjectForKey(threadIdentifier);
}

ToolbarInventory.returnInstance = function() {
    var threadIdentifier = "com.tilllur.framer-inventory"
    var threadDictionary = NSThread.mainThread().threadDictionary()
    return threadDictionary[threadIdentifier]
}

ToolbarInventory.updateClassInstance = function(toolbar) {
    if (toolbar != nil) { log(toolbar.returnPanel()) }
    var threadIdentifier = "com.tilllur.framer-inventory"
    var threadDictionary = NSThread.mainThread().threadDictionary()
    threadDictionary[threadIdentifier] = toolbar
}

// ToolbarInventory.setPathLabel = function(label) {
//   var toolbar = ToolbarInventory.returnInstance()
//   if (toolbar != nil) { toolbar.pathLabel = label }
// }

// ToolbarInventory.setSelectionLabel = function(label) {
//   var toolbar = ToolbarInventory.returnInstance()
//   if (toolbar != nil) { toolbar.selectionLabel = label }
// }

ToolbarInventory.updateSelectionLabelStringValue = function(value) {
  var toolbar = ToolbarInventory.returnInstance()
  if (toolbar != nil) {
    var localLabel = toolbar.selectionLabel
    [localLabel setStringValue:value]
  }
}

ToolbarInventory.updateSceneLabelStringValue = function(value) {
  // log("Gonna Update to: " + value)
  var toolbar = ToolbarInventory.returnInstance()
  if (toolbar != nil) {
    var localLabel = toolbar.selectionLabelScene
    [localLabel setStringValue:value]
  }
}

ToolbarInventory.updatePathLabelStringValue = function() {
  var toolbar = ToolbarInventory.returnInstance()
  if (toolbar != nil) {
    var localValue = PathInventory.returnProjectNameFromPath(userDefaults.exportFramerFolder)

    var localLabel = toolbar.pathLabel
    [localLabel setStringValue:localValue]

    var localLabelScene = toolbar.pathLabelScene
    [localLabelScene setStringValue:localValue]
  }
}


ToolbarInventory.updateAccessoryControls = function() {
  var toolbar = ToolbarInventory.returnInstance()
  if (toolbar != nil) {
      ViewInventory.updateRelativeButton(toolbar.relativeButton, toolbar.images)

      var localDeviceDropdown = toolbar.deviceAccessory
      localDeviceDropdown.selectItemAtIndex(ScaleInventory.deviceToSelect(userDefaults.myDevice))

      var localDeviceSceneDropdown = toolbar.deviceAccessoryScene
      localDeviceSceneDropdown.selectItemAtIndex(ScaleInventory.deviceToSelect(userDefaults.myDevice))

  }
}


ToolbarInventory.updateImportButtons = function(adoptID) {
  var toolbar = ToolbarInventory.returnInstance()
  if (toolbar != nil) {
      if (adoptID == 0) { ViewInventory.adoptButtonsNone(toolbar.layersButton, toolbar.statesButton, toolbar.images) }
      else if (adoptID == 1) { ViewInventory.adaptButtonsBase(toolbar.layersButton, toolbar.statesButton, toolbar.images) }
      else if (adoptID == 3) { ViewInventory.adaptButtonsSeveral(toolbar.layersButton, toolbar.statesButton, toolbar.images) }
      else if (adoptID == 2) { ViewInventory.adaptButtonsSelected(toolbar.layersButton, toolbar.statesButton, toolbar.images) }
      else if (adoptID == 4) { ViewInventory.adaptButtonsSelectedSeveral(toolbar.layersButton, toolbar.statesButton, toolbar.images) }

      if (adoptID == 0) {
        ViewInventory.adoptMoreNone(toolbar.moreButtonImage, toolbar.moreButton)
        ViewInventory.adoptEmptySelection(toolbar.emptySelectionView)
      }
      else {
        ViewInventory.adoptMore(toolbar.moreButtonImage, toolbar.moreButton)
        ViewInventory.adoptEmptySelectionNone(toolbar.emptySelectionView)
      }

      if (adoptID == 7) {
        ViewInventory.adoptMoreNone(toolbar.moreButtonImage, toolbar.moreButton)
        ViewInventory.adoptEmptySelectionNone(toolbar.emptySelectionView)
        ViewInventory.adoptExpiredSelection(toolbar.expiredSelectionView)
        ViewInventory.adoptButtonsNone(toolbar.layersButton, toolbar.statesButton, toolbar.images)
      }
      else {
        ViewInventory.adoptExpiredSelectionNone(toolbar.expiredSelectionView)
      }
  }
}

ToolbarInventory.updateSceneButtons = function(adoptID) {
    var toolbar = ToolbarInventory.returnInstance()
    if (toolbar != nil) {
        if (adoptID == 5) { ViewInventory.adoptSceneButtons(toolbar.sceneButton, toolbar.images) }
        else if (adoptID == 6) { ViewInventory.adoptSceneButtonsSelected(toolbar.sceneButton, toolbar.images) }

        if (adoptID == 7) {
          // log("adoptation")
          ViewInventory.adoptExpiredScene(toolbar.expiredSceneView)
          ToolbarInventory.updateSceneLabelStringValue("")
        }
        else {
          ViewInventory.adoptExpiredSceneNone(toolbar.expiredSceneView)
          ToolbarInventory.updateSceneLabelStringValue(ViewInventory.placeHolderScene())
        }
    }
}


ToolbarInventory.updateContext = function() {
    methodStartTime = [NSDate date]
    if (NSDocumentController.sharedDocumentController() != nil && NSDocumentController.sharedDocumentController().currentDocument() != nil) {
      currentDocument = NSDocumentController.sharedDocumentController().currentDocument();
      currentSelection = NSDocumentController.sharedDocumentController().currentDocument().selectedLayers().layers();
      scaleInstance = new ScaleInventory()
    }
}









ToolbarInventory.createUIBar = function() {

    StatisticsInventory.setStatus(Status.waitingID())

    coscript.setShouldKeepAround(true);
    var toolbar = ToolbarInventory.returnInstance()

    if(!toolbar){

        var UIBar = NSPanel.alloc().init();
        UIBar.setStyleMask(NSTitledWindowMask + NSFullSizeContentViewWindowMask);
        UIBar.setBackgroundColor(ViewInventory.colorWindow())
        UIBar.setTitleVisibility(NSWindowTitleHidden);
        UIBar.setTitlebarAppearsTransparent(true);
        UIBar.setFrame_display(NSMakeRect(0, 0, ViewInventory.sizeWindowWidth(), ViewInventory.sizeWindowHeight()), false);
        UIBar.setMovableByWindowBackground(true);
        UIBar.setHasShadow(true);
        UIBar.setLevel(NSFloatingWindowLevel);


        toolbar = new ToolbarInventory(UIBar);
        ToolbarInventory.updateClassInstance(toolbar)
        ToolbarInventory.setContentView()

        UIBar.center()
        UIBar.makeKeyAndOrderFront(nil)

        ViewInventory.adoptButtonsNone(toolbar.layersButton, toolbar.statesButton, toolbar.images)
        SelectionInventory.asyncSelectionHandler(false)
    }
}
ToolbarInventory.getImage = function(size, name) {
    var isRetinaDisplay = (NSScreen.mainScreen().backingScaleFactor() > 1)? true: false;
    var suffix = (isRetinaDisplay)? "@2x": "";
    var imageURL = NSURL.fileURLWithPath(pluginPath + "/" + "/images" + "/uibar/" + name + suffix + ".png");
    var image = NSImage.alloc().initWithContentsOfURL(imageURL);
    return image
}


ToolbarInventory.updatePathLabel = function() {
    log(" is updating?!")
    if (pathLabel != nil) {
      log("updating label!")
      log(userDefaults.myExportPath)
      [pathLabel setStringValue:userDefaults.myExportPath];
    }
}

    if(!UIBar){
        UIBar = NSPanel.alloc().init();
        UIBar.setStyleMask(NSTitledWindowMask + NSFullSizeContentViewWindowMask);
        UIBar.setBackgroundColor(NSColor.colorWithRed_green_blue_alpha(0.15, 0.15, 0.15, 1));
        UIBar.setTitleVisibility(NSWindowTitleHidden);
        UIBar.setTitlebarAppearsTransparent(true);
        UIBar.setFrame_display(NSMakeRect(0, 0, 640, 70), false);
        UIBar.setMovableByWindowBackground(true);
        UIBar.setHasShadow(true);
        UIBar.setLevel(NSFloatingWindowLevel);

        var contentView = UIBar.contentView()

        var closeButton = ToolbarInventory.addButton(NSMakeRect(20, 10, 30, 30), "close-control",
            function(sender){
                coscript.setShouldKeepAround(false);
                threadDictionary.removeObjectForKey(identifier);
            }
        )

        var topGuideB = ToolbarInventory.addButton( NSMakeRect(100, 10, 30, 30), "top-guide",
            function(sender){
                ToolbarInventory.updateContext();
                runSimulateKeynote()
        })
        var rightGuideB = ToolbarInventory.addButton( NSMakeRect(150, 10,30,30), "right-guide",
            function(sender){
                ToolbarInventory.updateContext();
                runGenerateStates()
        })
        var bottomGuideB = ToolbarInventory.addButton( NSMakeRect(200, 10,30,30), "bottom-guide",
            function(sender){
                ToolbarInventory.updateContext();
                runReplicateLayers()
        })
        var leftGuideB = ToolbarInventory.addButton( NSMakeRect(250, 10,30,30), "left-guide",
            function(sender){
                ToolbarInventory.updateContext();
                runSettings()
        })
        var vCenterGuideB = ToolbarInventory.addButton( NSMakeRect(330, 10,30,30), "v-center-guide",
            function(sender){
                ToolbarInventory.updateContext();
                FramerInventory.runSelectProjectFolder()
                ToolbarInventory.updatePathLabel()
        })
        var hCenterGuideB = ToolbarInventory.addButton( NSMakeRect(380, 10,30,30), "h-center-guide",
            function(sender){
                ToolbarInventory.updateContext();
                FramerInventory.runRemoveProjectFolder()
                ToolbarInventory.updatePathLabel()
        })
        var topBottomGuides = ToolbarInventory.addButton( NSMakeRect(460,10,30,30),"top-bottom-guides",
            function(sender){
                ToolbarInventory.updateContext();
                // currentSelection
        })
        var rightLeftGuides = ToolbarInventory.addButton ( NSMakeRect(510, 10, 30,30), "right-left-guides",
            function(sneder){
                ToolbarInventory.updateContext();
        })
        var removeAllGuidesB = ToolbarInventory.addButton( NSMakeRect(590, 10,30,30), "remove-all-guides",
            function(sender){
                ToolbarInventory.updateContext();
        })

        var separate1 = ToolbarInventory.addImage( NSMakeRect(70, 10, 10, 30), "separate")
        var separate2 = ToolbarInventory.addImage( NSMakeRect(300, 10, 10, 30), "separate")
        var separate3 = ToolbarInventory.addImage( NSMakeRect(430, 10, 10, 30), "separate")
        var separate4 = ToolbarInventory.addImage( NSMakeRect(560, 10, 10, 30), "separate")

        pathLabel = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 50, 400, 30)];
        [pathLabel setEditable:false];
        [pathLabel setBordered:false];
        [pathLabel setFont:[NSFont boldSystemFontOfSize:smallFontSize]];
        [pathLabel setTextColor:[NSColor colorWithRed:0.6 green:0.6 blue:0.6 alpha:1]];
        [pathLabel setDrawsBackground:false];
        [pathLabel setStringValue:userDefaults.myExportPath];
        [pathLabel sizeToFit];
        log("label DONE path-:P")

        contentView.addSubview(closeButton);
        contentView.addSubview(separate1);
        contentView.addSubview(topGuideB);
        contentView.addSubview(rightGuideB);
        contentView.addSubview(bottomGuideB);
        contentView.addSubview(leftGuideB);
        contentView.addSubview(separate2);
        contentView.addSubview(vCenterGuideB);
        contentView.addSubview(hCenterGuideB);
        contentView.addSubview(separate3);
        contentView.addSubview(topBottomGuides);
        contentView.addSubview(rightLeftGuides);
        contentView.addSubview(separate4);
        contentView.addSubview(removeAllGuidesB);
        contentView.addSubview(pathLabel);

        threadDictionary[identifier] = UIBar;
        UIBar.center();
        UIBar.makeKeyAndOrderFront(nil);
    }
}

<MSG> Updated UI to be "like Sketch"

<DFF> @@ -1,4 +1,5 @@
 var pathLabel = nil
+var defaultPathLabel = "Please, select Framer folder"
 
 function ToolbarInventory () {}
 
@@ -451,7 +452,7 @@ ToolbarInventory.updateContext = function() {
 ToolbarInventory.getImage = function(size, name) {
     var isRetinaDisplay = (NSScreen.mainScreen().backingScaleFactor() > 1)? true: false;
     var suffix = (isRetinaDisplay)? "@2x": "";
-    var imageURL = NSURL.fileURLWithPath(pluginPath + "/" + "/images" + "/uibar/" + name + suffix + ".png");
+    var imageURL = NSURL.fileURLWithPath(pluginPath + "/" + "/images" + "/toolbar/" + name + suffix + ".png");
     var image = NSImage.alloc().initWithContentsOfURL(imageURL);
     return image
 }
@@ -478,11 +479,12 @@ ToolbarInventory.addImage = function(rect, name) {
 
 
 ToolbarInventory.updatePathLabel = function() {
-    log(" is updating?!")
     if (pathLabel != nil) {
-      log("updating label!")
-      log(userDefaults.myExportPath)
-      [pathLabel setStringValue:userDefaults.myExportPath];
+      var pathComps = userDefaults.myExportPath.split("/");
+      pathComps.pop();
+      log("RE ->>>>>>>")
+      var localLabel = pathComps.pop()
+      [pathLabel setStringValue:localLabel];
     }
 }
 
@@ -497,17 +499,17 @@ ToolbarInventory.createUIBar = function() {
     if(!UIBar){
         UIBar = NSPanel.alloc().init();
         UIBar.setStyleMask(NSTitledWindowMask + NSFullSizeContentViewWindowMask);
-        UIBar.setBackgroundColor(NSColor.colorWithRed_green_blue_alpha(0.15, 0.15, 0.15, 1));
+        UIBar.setBackgroundColor(NSColor.colorWithRed_green_blue_alpha(0.84, 0.84, 0.84, 1));
         UIBar.setTitleVisibility(NSWindowTitleHidden);
         UIBar.setTitlebarAppearsTransparent(true);
-        UIBar.setFrame_display(NSMakeRect(0, 0, 640, 70), false);
+        UIBar.setFrame_display(NSMakeRect(0, 0, 440, 70), false);
         UIBar.setMovableByWindowBackground(true);
         UIBar.setHasShadow(true);
         UIBar.setLevel(NSFloatingWindowLevel);
 
         var contentView = UIBar.contentView()
 
-        var closeButton = ToolbarInventory.addButton(NSMakeRect(20, 10, 30, 30), "close-control",
+        var closeButton = ToolbarInventory.addButton(NSMakeRect(418, 48, 12, 12), "close",
             function(sender){
                 coscript.setShouldKeepAround(false);
                 threadDictionary.removeObjectForKey(identifier);
@@ -515,85 +517,154 @@ ToolbarInventory.createUIBar = function() {
             }
         )
 
-        var topGuideB = ToolbarInventory.addButton( NSMakeRect(100, 10, 30, 30), "top-guide",
+        var topGuideB = ToolbarInventory.addButton( NSMakeRect(10, 6, 26, 26), "simulate",
             function(sender){
                 ToolbarInventory.updateContext();
                 runSimulateKeynote()
         })
-        var rightGuideB = ToolbarInventory.addButton( NSMakeRect(150, 10,30,30), "right-guide",
+        var rightGuideB = ToolbarInventory.addButton( NSMakeRect(68, 6, 26, 26), "generate",
             function(sender){
                 ToolbarInventory.updateContext();
                 runGenerateStates()
         })
-        var bottomGuideB = ToolbarInventory.addButton( NSMakeRect(200, 10,30,30), "bottom-guide",
+        var bottomGuideB = ToolbarInventory.addButton( NSMakeRect(102, 6, 26,26), "replicate",
             function(sender){
                 ToolbarInventory.updateContext();
                 runReplicateLayers()
         })
-        var leftGuideB = ToolbarInventory.addButton( NSMakeRect(250, 10,30,30), "left-guide",
+        var leftGuideB = ToolbarInventory.addButton( NSMakeRect(402, 48, 12, 12), "settings",
             function(sender){
                 ToolbarInventory.updateContext();
                 runSettings()
         })
-        var vCenterGuideB = ToolbarInventory.addButton( NSMakeRect(330, 10,30,30), "v-center-guide",
+        var vCenterGuideB = ToolbarInventory.addButton( NSMakeRect(26, 48,12,12), "add",
             function(sender){
                 ToolbarInventory.updateContext();
                 FramerInventory.runSelectProjectFolder()
                 ToolbarInventory.updatePathLabel()
         })
-        var hCenterGuideB = ToolbarInventory.addButton( NSMakeRect(380, 10,30,30), "h-center-guide",
+        var hCenterGuideB = ToolbarInventory.addButton( NSMakeRect(10, 48,12,12), "remove",
             function(sender){
                 ToolbarInventory.updateContext();
                 FramerInventory.runRemoveProjectFolder()
                 ToolbarInventory.updatePathLabel()
         })
-        var topBottomGuides = ToolbarInventory.addButton( NSMakeRect(460,10,30,30),"top-bottom-guides",
+        var topBottomGuides = ToolbarInventory.addButton( NSMakeRect(228, 6, 56, 26), "relative",
             function(sender){
                 ToolbarInventory.updateContext();
-                // currentSelection
+                // ToolbarInventory.nextLayerState(true)
+
         })
-        var rightLeftGuides = ToolbarInventory.addButton ( NSMakeRect(510, 10, 30,30), "right-left-guides",
+        var rightLeftGuides = ToolbarInventory.addButton ( NSMakeRect(292, 6, 26, 26), "density",
             function(sneder){
                 ToolbarInventory.updateContext();
+                // ToolbarInventory.nextLayerState(false)
         })
-        var removeAllGuidesB = ToolbarInventory.addButton( NSMakeRect(590, 10,30,30), "remove-all-guides",
+        var removeAllGuidesB = ToolbarInventory.addButton( NSMakeRect(326, 6, 104, 26), "device",
             function(sender){
                 ToolbarInventory.updateContext();
         })
 
-        var separate1 = ToolbarInventory.addImage( NSMakeRect(70, 10, 10, 30), "separate")
-        var separate2 = ToolbarInventory.addImage( NSMakeRect(300, 10, 10, 30), "separate")
-        var separate3 = ToolbarInventory.addImage( NSMakeRect(430, 10, 10, 30), "separate")
-        var separate4 = ToolbarInventory.addImage( NSMakeRect(560, 10, 10, 30), "separate")
+        // var separate1 = ToolbarInventory.addImage( NSMakeRect(70, 10, 10, 30), "separate")
+        // var separate2 = ToolbarInventory.addImage( NSMakeRect(300, 10, 10, 30), "separate")
+        // var separate3 = ToolbarInventory.addImage( NSMakeRect(430, 10, 10, 30), "separate")
+        // var separate4 = ToolbarInventory.addImage( NSMakeRect(560, 10, 10, 30), "separate")
+        var breaker = ToolbarInventory.addImage( NSMakeRect(10, 38, 420, 2), "breaker")
 
-        pathLabel = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 50, 400, 30)];
+        pathLabel = [[NSTextField alloc] initWithFrame:NSMakeRect(46, 47, 300, 20)];
         [pathLabel setEditable:false];
         [pathLabel setBordered:false];
-        [pathLabel setFont:[NSFont boldSystemFontOfSize:smallFontSize]];
+        // [pathLabel setFont:[NSFont boldSystemFontOfSize:smallFontSize]];
+        [pathLabel setFont:[NSFont fontWithName:@"System" size:12]];
         [pathLabel setTextColor:[NSColor colorWithRed:0.6 green:0.6 blue:0.6 alpha:1]];
         [pathLabel setDrawsBackground:false];
-        [pathLabel setStringValue:userDefaults.myExportPath];
+
+        [pathLabel setStringValue:defaultPathLabel];
         [pathLabel sizeToFit];
-        log("label DONE path-:P")
 
-        contentView.addSubview(closeButton);
-        contentView.addSubview(separate1);
+        // ToolbarInventory.updatePathLabel();
+
+        contentView.addSubview(breaker);
+
         contentView.addSubview(topGuideB);
         contentView.addSubview(rightGuideB);
         contentView.addSubview(bottomGuideB);
-        contentView.addSubview(leftGuideB);
-        contentView.addSubview(separate2);
+
+        // contentView.addSubview(separate2);
         contentView.addSubview(vCenterGuideB);
         contentView.addSubview(hCenterGuideB);
-        contentView.addSubview(separate3);
+        // contentView.addSubview(separate3);
         contentView.addSubview(topBottomGuides);
         contentView.addSubview(rightLeftGuides);
-        contentView.addSubview(separate4);
+        // contentView.addSubview(separate4);
         contentView.addSubview(removeAllGuidesB);
+
         contentView.addSubview(pathLabel);
+        contentView.addSubview(leftGuideB);
+        contentView.addSubview(closeButton);
 
         threadDictionary[identifier] = UIBar;
         UIBar.center();
         UIBar.makeKeyAndOrderFront(nil);
+
+        ToolbarInventory.updatePathLabel()
     }
 }
+
+
+//
+// ToolbarInventory.getForwardArtboards = function() {
+//     return [[currentDocument currentPage] artboards];
+// }
+//
+// ToolbarInventory.getBackwardArtboards = function() {
+//     return [[[[currentDocument currentPage] artboards] reverseObjectEnumerator] allObjects];
+// }
+//
+// ToolbarInventory.nextLayerState = function(isForwardOrder) {
+//   log("-> Next Layer")
+//   if ([currentSelection count] == 0) { return }
+//   var currentLayer = [currentSelection objectAtIndex: 0]
+//   var parentArtboard = TypeInventory.findParentArtboard(currentLayer)
+//   var parentName = [parentArtboard name]
+//
+//   var needNextArtboard = false
+//   var nextArtboard = nil
+//
+//   var baseArtboards = nil
+//   if (isForwardOrder) { baseArtboards = ToolbarInventory.getForwardArtboards() }
+//   else { baseArtboards = ToolbarInventory.getBackwardArtboards() }
+//
+//   var artboards = NSMutableArray.new()
+//   for (var i = 0; i < [baseArtboards count]; i++) {
+//       [artboards addObject:[baseArtboards objectAtIndex: i]]
+//   }
+//   for (var i = 0; i < [baseArtboards count]; i++) {
+//       [artboards addObject:[baseArtboards objectAtIndex: i]]
+//   }
+//
+//   for (var i = 0; i < artboards.count(); i++) {
+//      var artboard = [artboards objectAtIndex: i]
+//      if (needNextArtboard) {
+//         nextArtboard = artboard
+//         break
+//      }
+//
+//      if ([[parentArtboard objectID] isEqualToString:[artboard objectID]]) {
+//         needNextArtboard = true
+//      }
+//   }
+//
+//   var artboardLayers = nil
+//   if (nextArtboard) {
+//       FramerInventory.deselectLayers()
+//       artboardLayers = nextArtboard.children()
+//       for (var i = 0; i < artboardLayers.count(); i++) {
+//           var currentChild = [artboardLayers objectAtIndex: i]
+//           var currentChildName = [currentChild name]
+//           if ([currentChildName isEqualToString: [currentLayer name]]) {
+//               [currentChild select:true byExpandingSelection:true]
+//           }
+//       }
+//   }
+// }

Updated UI to be "like Sketch"