(function() {
  'use strict';

  angular.module('app', [
    'app.config',
    'app.core',
    'app.feature',
    'ngMaterial'
  ]);

  angular.module('app').config([
    '$logProvider', 'LOG', '$locationProvider',
    function($logProvider, log, $locationProvider) {
      // Enable or disable debug logging
      $logProvider.debugEnabled(log.ENABLE_DEBUG);

      $locationProvider.html5Mode(false);
    }
  ]);

  // CONFIG SETTINGS
  angular.module('app.config', [])
    // Log settings
    .constant('LOG', {
      ENABLE_DEBUG: true
    })
    .constant('WEATHER_SETTINGS', {
      OPEN_WEATHER_MAP: {
        BASE_URI: 'http://api.openweathermap.org/data/2.5',
        API_KEY: '<api-key>',
        CITY_ID: '2925550',
        LANGUAGE_ID: 'de',
        UNITS: 'metric'
      }
    });
})();

(function() {
  'use strict';

  angular.module('app', [
    'app.config',
    'app.core',
    'app.feature',
    'ngMaterial'
  ]);

  angular.module('app').config([
    '$logProvider', 'LOG', '$locationProvider', '$mdThemingProvider',
    function($logProvider, log, $locationProvider, $mdThemingProvider) {
      // Enable or disable debug logging
      $logProvider.debugEnabled(log.ENABLE_DEBUG);

      $locationProvider.html5Mode(false);
      var mmBlack = $mdThemingProvider.extendPalette('grey', {
        '50': '000000',
        '100': '000000',
        '200': '000000',
        '300': '000000',
        '400': '000000',
        '500': '000000',
        '600': '000000',
        '700': '000000',
        '800': '000000',
        '900': '000000',
        'A100': '000000',
        'A200': '000000',
        'A400': '000000',
        'A700': '000000'
      });

      $mdThemingProvider.definePalette('mm-black', mmBlack);

      $mdThemingProvider.theme('default')
        .dark()
        .backgroundPalette('mm-black');
    }
  ]);

  // CONFIG SETTINGS
  angular.module('app.config', [])
    // Log settings
    .constant('LOG', {
      ENABLE_DEBUG: true
    })
    .constant('WEATHER_SETTINGS', {
      OPEN_WEATHER_MAP: {
        BASE_URI: 'http://api.openweathermap.org/data/2.5',
        API_KEY: '<api-key>',
        CITY_ID: '2925550',
        LANGUAGE_ID: 'de',
        UNITS: 'metric'
      }
    });
})();

Apply custom dark theming with a black background and white foreground
Apply custom dark theming with a black background and white foreground
