apply theme

This commit is contained in:
Athou
2014-08-09 19:21:59 +02:00
parent cf96a0a84e
commit afbbd07a13
2 changed files with 6 additions and 2 deletions

View File

@@ -710,6 +710,11 @@ module.controller('FeedListCtrl', [
$scope.$emit('emitReload');
}
});
$scope.$watch('settingsService.settings.theme', function(newValue, oldValue) {
if (newValue) {
angular.element('html').attr('id', 'theme-' + newValue);
}
});
$scope.limit = SettingsService.settings.viewMode == 'title' ? 10 : 5;
$scope.busy = false;