 # We look for a few standard categories and display them in the Mailboxes
 # portion of the left sidebar. Note that these may not all be present on
 # a particular account.
-StandardCategoryNames = [
-  "inbox"
-  "important"
+StandardCategories = {
+  "inbox",
+  "important",
+  "sent",
+  "drafts",
+  "all",
+  "spam",
+  "archive",
+  "trash"
+}
+
+LockedCategories = {
   "sent"
-  "drafts"
-  "all"
-  "spam"
-  "archive"
-  "trash"
-]
+}
 
-LockedCategoryNames = [
-  "sent"
-]
-
-HiddenCategoryNames = [
+HiddenCategories = {
   "sent"
   "drafts"
   "all"
   "archive"
   "starred"
   "important"
-]
+}
 
 AllMailName = "all"
 

    hue = hue * (396.0/512.0)
    hue

module.exports = Category

    User: 'user'
    Hidden: 'hidden'

  @StandardCategoryNames: Object.keys(StandardCategories)
  @LockedCategoryNames: Object.keys(LockedCategories)
  @HiddenCategoryNames: Object.keys(HiddenCategories)

  constructor: ->
    super

  fromJSON: (json) ->
    super
    @

  hue: ->
    return 0 unless @displayName
