-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add theming information to capabilities for the client #1272
Conversation
@nickvergessen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @schiessle and @juliushaertl to be potential reviewers |
@@ -49,3 +49,6 @@ | |||
'src' => $linkToJs, | |||
], '' | |||
); | |||
|
|||
$app = new \OCP\AppFramework\App('theming'); | |||
$app->getContainer()->registerCapability(\OCA\Theming\Capabilities::class); |
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.
While backporting this needs to be made php 5.4 compatible
This is partly what #885 describes, right? Haven't looked into what capabilities exactly provide. Shouldn't we also add the background image and logo if they are set? |
@juliushaertl for theming information completeness yes, even though the server name and the graphics and colors are different issues client-feature-wise. |
Okay, well when we add the images (URLs? or full file?) then I guess a new route is better |
URL seems more flexible. |
ThemingDefaults::getLogo and ThemingDefaults::getBackground can be used there, they also return the URL for the default images if there are no custom ones set. |
Easy enough that a backport makes sense 👍 |
Added the image URLs and tests |
Tested and works 👍 |
LGTM |
Usefull for nextcloud/android#240
@AndyScherzinger @rullzer @MorrisJobke @schiessle
While this is an enhancement I would favor a backport, so the android app can use the name in 9 and 10 as well instead of having a useless "Nextcloud" in the title bar, to identfy the accounts. @karlitschek