From aaf74efbb9a54a7f452d80e072d31d6c8d0d5e6a Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 29 May 2013 09:21:53 +0200 Subject: [PATCH] more on themes --- README.md | 4 ++-- src/main/resources/i18n/en.properties | 3 +++ src/main/webapp/js/controllers.js | 2 +- src/main/webapp/templates/settings.html | 9 ++++++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 63515de3..eebc59cf 100644 --- a/README.md +++ b/README.md @@ -97,11 +97,11 @@ When adding new translations, add them in en.properties then run `mvn -e groovy: Themes --------------------- -To create a theme, create a new file `src/main/webapp/sass/themes/_.scss`. Your styles should be wrapped in a `#theme-` element. +To create a theme, create a new file `src/main/webapp/sass/themes/_.scss`. Your styles should be wrapped in a `#theme-` element and use the [SCSS format](http://sass-lang.com/) which is a superset of CSS. Don't forget to reference your theme in `src/main/webapp/sass/app.scss` and in `src/main/webapp/js/controllers.js` (look for `$scope.themes`). -See _test.scss for an example. +See [_test.scss](https://github.com/Athou/commafeed/blob/master/src/main/webapp/sass/themes/_test.scss) for an example. Copyright and license diff --git a/src/main/resources/i18n/en.properties b/src/main/resources/i18n/en.properties index a2ce0253..fa8af3df 100644 --- a/src/main/resources/i18n/en.properties +++ b/src/main/resources/i18n/en.properties @@ -55,6 +55,9 @@ settings.general.language.contribute=Contribute with translations settings.general.show_unread=Show feeds and categories with no unread entries settings.general.social_buttons=Show social sharing buttons settings.general.scroll_marks=In expanded view, scrolling through entries mark them as read +settings.appearance=Appearance +settings.theme=Theme +settings.submit_your_theme=Submit your theme settings.custom_css=Custom CSS details.feed_details=Feed details diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index bb8ee8f8..fa3ad2e3 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -992,7 +992,7 @@ function($scope, $location, SettingsService, AnalyticsService, ServerService) { $scope.ServerService = ServerService.get(); - $scope.themes = ['default', 'test']; + $scope.themes = ['default']; $scope.settingsService = SettingsService; $scope.$watch('settingsService.settings', function(value) { diff --git a/src/main/webapp/templates/settings.html b/src/main/webapp/templates/settings.html index e41f12ab..fc5285de 100644 --- a/src/main/webapp/templates/settings.html +++ b/src/main/webapp/templates/settings.html @@ -10,7 +10,7 @@ ${settings.general}
  • - ${settings.custom_css} + ${settings.appearance}
  • @@ -56,9 +56,16 @@
    + + + + ${settings.submit_your_theme} + +
    +