forked from Archives/Athou_commafeed
apply theme
This commit is contained in:
@@ -710,6 +710,11 @@ module.controller('FeedListCtrl', [
|
|||||||
$scope.$emit('emitReload');
|
$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.limit = SettingsService.settings.viewMode == 'title' ? 10 : 5;
|
||||||
$scope.busy = false;
|
$scope.busy = false;
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ public class CommaFeedApplication extends Application<CommaFeedConfiguration> {
|
|||||||
UserSettingsDAO userSettingsDAO = new UserSettingsDAO(sessionFactory);
|
UserSettingsDAO userSettingsDAO = new UserSettingsDAO(sessionFactory);
|
||||||
FeedEntryStatusDAO feedEntryStatusDAO = new FeedEntryStatusDAO(sessionFactory, feedEntryDAO, feedEntryTagDAO, config);
|
FeedEntryStatusDAO feedEntryStatusDAO = new FeedEntryStatusDAO(sessionFactory, feedEntryDAO, feedEntryTagDAO, config);
|
||||||
|
|
||||||
|
// Queuing system
|
||||||
FeedQueues queues = new FeedQueues(feedDAO, config, metrics);
|
FeedQueues queues = new FeedQueues(feedDAO, config, metrics);
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
@@ -151,8 +152,6 @@ public class CommaFeedApplication extends Application<CommaFeedConfiguration> {
|
|||||||
UserService userService = new UserService(feedCategoryDAO, userDAO, userSettingsDAO, feedSubscriptionService, encryptionService,
|
UserService userService = new UserService(feedCategoryDAO, userDAO, userSettingsDAO, feedSubscriptionService, encryptionService,
|
||||||
config);
|
config);
|
||||||
StartupService startupService = new StartupService(sessionFactory, userDAO, userService);
|
StartupService startupService = new StartupService(sessionFactory, userDAO, userService);
|
||||||
|
|
||||||
// OPML
|
|
||||||
OPMLImporter opmlImporter = new OPMLImporter(feedCategoryDAO, feedSubscriptionService, cacheService);
|
OPMLImporter opmlImporter = new OPMLImporter(feedCategoryDAO, feedSubscriptionService, cacheService);
|
||||||
OPMLExporter opmlExporter = new OPMLExporter(feedCategoryDAO, feedSubscriptionDAO);
|
OPMLExporter opmlExporter = new OPMLExporter(feedCategoryDAO, feedSubscriptionDAO);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user