initial theme implementation

This commit is contained in:
Athou
2013-05-28 22:40:54 +02:00
parent 9379cf8567
commit eb996560c2
9 changed files with 60 additions and 8 deletions

View File

@@ -987,6 +987,8 @@ function($scope, $location, SettingsService, AnalyticsService, ServerService) {
$scope.ServerService = ServerService.get();
$scope.themes = ['default', 'test'];
$scope.settingsService = SettingsService;
$scope.$watch('settingsService.settings', function(value) {
$scope.settings = angular.copy(value);

View File

@@ -1,10 +1,11 @@
@import "generic/misc";
@import "components/admin-panel";
@import "components/toolbar";
@import "components/entry-list";
@import "components/subscription-list";
@import "components/help";
@import "mobile/mobile";
@import "mobile/mobile";
@import "themes/test";

View File

@@ -0,0 +1,5 @@
#theme-test {
body {
background-color: black
}
}

View File

@@ -55,8 +55,13 @@
</div>
</div>
<div class="tab-pane" ng-class="{active: tab == 'css'}">
<textarea ng-model="settings.customCss" class="input-block-level" rows="20">
</textarea>
<div>
<select ng-model="settings.theme" ng-options="theme for theme in themes"></select>
</div>
<div>
<textarea ng-model="settings.customCss" class="input-block-level" rows="20">
</textarea>
</div>
</div>
</div>
</div>