示例#1
0
void Settings_init() {
  // first, check if we have any saved settings
  // int settingsVersion = persist_read_int(SETTINGS_VERSION_KEY);

  // load all settings
  Settings_loadFromStorage();
}
示例#2
0
void Settings_init() {
  // first, check if we have any saved settings
  int settingsVersion = persist_read_int(SETTINGS_VERSION_KEY);

  // load all settings
  Settings_loadFromStorage();

  // for BW watches, reset colors to defaults
  #ifndef PBL_COLOR
    if(settingsVersion < CURRENT_SETTINGS_VERSION) {
      globalSettings.timeColor      = GColorWhite;
      globalSettings.sidebarColor   = GColorWhite;
      globalSettings.timeBgColor      = GColorBlack;
      globalSettings.sidebarTextColor = GColorBlack;
    }
  #endif
}