atom-material / atom-material-ui

A dynamic UI theme for Atom that follows Google's Material Design Guidelines
MIT License
817 stars 204 forks source link

Legacy preferences still appear in Settings #251

Closed nemoDreamer closed 8 years ago

nemoDreamer commented 8 years ago

I love all the work that's been done in "Settings", but I'm also still seeing duplicates for all the similarly names prefs: "Accent color" and "UI Accent Color", Multiple mutually excluding "Roboto" prefs, etc...

Could this be because one has to manually clean up one's own config.cson? Could this be done automatically?

material_ui_settings
  "atom-material-ui":
    altCmdPalette: false
    colors:
      abaseColor:
        red: 217
        green: 188
        blue: 128
        alpha: 1
      genAccent: true
    compactTreeView: false
    fonts:
      useRoboto: true
    panels:
      altCmdPalette: false
    rippleAccentColor: false
    tabs:
      compactTabs: true
      rippleAccentColor: true
      showTabIcons: "Show on all tabs"
    treeView:
      compactList: true
    ui:
      accentColor: "Cyan"
      slimScrollbar: true
    useRoboto: false
    useRobotoInUI: false
silvestreh commented 8 years ago

Yep, there used to be a piece of code that would reset a user's settings when upgrading from 0.x to 1.x but unfortunately it kept resetting their settings after upgrading because, for some reason, localStorage wasn't available.

Here's what you can do… open a dev console and type:

atom.config.set('atom-material-ui');

That should reset your settings and get rid of the old ones.

silvestreh commented 8 years ago

This is fixed by 2ed519514b3daf9c30a1900df73566361d8b6e4a :smile: