Skip to content
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

Merged
merged 2 commits into from
Aug 10, 2016
Merged

Theming support for apps #819

merged 2 commits into from
Aug 10, 2016

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Aug 10, 2016

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

  • Access theming variables from javascript

with nextcloud/notifications#9 this fixes notification icon in top left is white instead of black in #735

@mention-bot
Copy link

@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',
Copy link
Member

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.

Copy link
Member Author

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.

@MorrisJobke
Copy link
Member

Code looks good and works 👍

@schiessle
Copy link
Member

👍

@LukasReschke LukasReschke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 10, 2016
@LukasReschke LukasReschke merged commit 7249f13 into master Aug 10, 2016
@LukasReschke LukasReschke deleted the theming-support-for-apps branch August 10, 2016 14:11
@MorrisJobke
Copy link
Member

add documentation for app developers to https://github.com/nextcloud/documentation

I opened an issue in the documentation repo.

@MorrisJobke
Copy link
Member

@juliushaertl Could I ask you to open the backport PR for stable10? Thanks :)

@juliusknorr
Copy link
Member Author

@MorrisJobke done.

backport at #833

GitHubUser4234 pushed a commit to GitHubUser4234/server that referenced this pull request Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish feature: theming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants