forked from Archives/Athou_commafeed
initial theme implementation
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
5
src/main/webapp/sass/themes/_test.scss
Normal file
5
src/main/webapp/sass/themes/_test.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
#theme-test {
|
||||
body {
|
||||
background-color: black
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user