-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theming support for apps #819
Conversation
@juliushaertl, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @schiessle and @nickvergessen to be potential reviewers |
@@ -55,5 +55,10 @@ | |||
'url' => '/loginbackground', | |||
'verb' => 'GET', | |||
], | |||
[ | |||
'name' => 'Theming#getJavascript', | |||
'url' => '/js/theming.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This did cause problems with some Nginx configs in the past. I'd advociate to keep the .js
out at the end. Just to be on the safe side. As long as the mimetype is correct this shouldn't harm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed the update. Thanks for the hint.
87df041
to
5f4e88e
Compare
Code looks good and works 👍 |
👍 |
I opened an issue in the documentation repo. |
@juliushaertl Could I ask you to open the backport PR for stable10? Thanks :) |
@MorrisJobke done. backport at #833 |
Theming support for apps
This pr provides the following enhancements for app developers, who want to add support for theming:
CSS classes:
.nc-theming-main-background Background in theming color
.nc-theming-main-text Text in theming color
.nc-theming-contrast Text in white/black to be shown in front of the theming color
JavaScript Object OCA.Theming
with nextcloud/notifications#9 this fixes notification icon in top left is white instead of black in #735