Skip to content

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

],
[
'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.

@juliusknorr juliusknorr force-pushed the theming-support-for-apps branch from 87df041 to 5f4e88e Compare August 10, 2016 11:39
@MorrisJobke MorrisJobke mentioned this pull request Aug 10, 2016
67 tasks
@MorrisJobke MorrisJobke added this to the Nextcloud 11.0 milestone Aug 10, 2016
@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.

6 participants