(css) Respect theme in time picker and freebusy

Fixes #4500
This commit is contained in:
Francis Lachapelle
2018-08-23 12:00:19 -04:00
parent df78658621
commit c3271dd2a5
6 changed files with 64 additions and 26 deletions
@@ -11,8 +11,20 @@
/**
* @ngInject
*/
configure.$inject = ['$stateProvider', '$urlServiceProvider'];
function configure($stateProvider, $urlServiceProvider) {
configure.$inject = ['$stateProvider', '$urlServiceProvider', '$mdThemingProvider'];
function configure($stateProvider, $urlServiceProvider, $mdThemingProvider) {
// Register custom stylesheet
$mdThemingProvider.registerStyles([
'[ui-view=calendars] .hours {',
' color: \'{{primary-700}}\';',
'}',
'.attendees .busy {',
' background-color: \'{{background-1000}}\';',
'}',
'.attendees .event {',
' background-color: \'{{primary-300}}\';',
'}'
].join(''));
$stateProvider
.state('calendars', {
url: '/calendar',