aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
* chore: Use `IAppConfig` instead of `IConfig->getAppValue`Ferdinand Thiessen2024-09-101-28/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Use NavigationManager to handle default entriesprovokateurin2024-09-091-3/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(psalm): named attribute argumentMaxence Lange2024-07-291-1/+1
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* refactor(theming): Replace security annotations with respective attributesprovokateurin2024-07-273-33/+33
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-313-85/+6
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(theming): Allow to configure primary color separate from background in ↵Ferdinand Thiessen2024-05-212-12/+8
| | | | | | admin settings Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(theming): Separate background and primary colorFerdinand Thiessen2024-05-211-1/+2
| | | | | | | | | | | While the primary color is intended to highlight elements, it can not always be used as the background color. So now primary is independent from background a user set, the background color is, if not set directly, calculated as the mean color of the background image. That color is then used as a fallback if the background image could not be loaded and for calculating the color of the text used on the app menu and dashboard (they render directly on the background). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(manifest): Check if app exists instead of accessing null as an arrayJoas Schilling2024-01-172-13/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-233-12/+13
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* feat(theming): Allow to configure default apps and app order in frontend ↵Ferdinand Thiessen2023-10-201-0/+43
| | | | | | | | | settings * Also add API for setting the value using ajax. * Add cypress tests for app order and defaul apps Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix background removal checkJohn Molakvoæ2023-10-191-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add single status code descriptions for OpenAPIjld31032023-09-272-0/+4
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* theming: Add OpenAPI specjld31032023-07-103-20/+87
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* generate user themed favicon and touchiconSimon L2023-06-161-4/+6
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Refactors "strpos" calls in /apps/theming to improve code readability.Faraz Samapoor2023-06-021-2/+2
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Limit key names when uploading theme imagesVincent Petry2023-01-111-1/+14
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Invert header if primary is bright and background disabledJohn Molakvoæ2022-12-081-5/+7
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Faster theming tests, better colours comparison and properly follow admin ↵John Molakvoæ2022-11-302-0/+22
| | | | | | theming changes Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Extract colour from custom backgroundJohn Molakvoæ2022-11-291-5/+10
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to remove the background and select a custom colourJohn Molakvoæ2022-11-291-6/+19
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* generate user themed iconsSimon L2022-11-181-3/+4
| | | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Add admin user customization kill switchJohn Molakvoæ2022-10-191-0/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Improve cache buster for user backgroundsVincent Petry2022-10-141-2/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Scope the appdata theming storage for global and usersJohn Molakvoæ2022-10-141-3/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix excessive increase of cachebuster valueChristopher Ng2022-10-111-0/+6
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Move background settings from dashboard app to Appearance and accessibility ↵greta2022-09-141-2/+61
| | | | | | | settings Signed-off-by: greta <gretadoci@gmail.com> Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Allow to manually specify a theme to apply to a section of an appJohn Molakvoæ2022-08-161-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to override the default themeJohn Molakvoæ2022-04-301-13/+29
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Lint and psalm fixJohn Molakvoæ2022-04-211-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Font fixes and design update for theme pickerJohn Molakvoæ2022-04-211-3/+7
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Migrating themes to Theming appJohn Molakvoæ2022-04-211-0/+111
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix twofactor loading and public imageJohn Molakvoæ2022-04-211-0/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Start theming providersJoas Schilling2022-04-211-69/+40
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve caching policyCarl Schwan2022-02-161-1/+1
| | | | | | | | | | | | | | * Cache css with version in url. This makes most js and css requests to be cached by the browser * Force caching previews, the etag is in the url so that if the propfind gives a new etag, we will refresh it otherwise it's no use to try to fetch the new etag and do tons of DB queries Tested with firefox and 'debug' => false (important so that the js/css urls are generated with ?v= parameter) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add better error handlingCarl Schwan2022-01-271-2/+8
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix registerEventListener issuesCarl Schwan2022-01-271-2/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix psalm issues in theming appCarl Schwan2022-01-261-15/+8
| | | | | | | | After this change, we are down to only one psalm warning for this app and related to the Application.php. This also make composer psam:update-baseline not silently ignore new errors. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* App summary is optionalJoas Schilling2021-11-191-1/+1
| | | | | | | Fixing: Error: Undefined index: summary at /var/www/html/apps/theming/lib/Controller/ThemingController.php#392 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add support for Delegation Settings for more appsCarl Schwan2021-10-151-0/+3
| | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix translated app detailsJoas Schilling2021-09-301-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* improve webmanifestszaimen2021-08-241-2/+22
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* manifest to report correct favicon sizenhirokinet2020-10-161-1/+1
| | | | | | | | | In the environment where php-imagick with SVG support is correctly installed, this endpoint returns 512x512 image. https://github.com/nextcloud/server/blob/d9015a8c94bfd71fe484618a06d276701d3bf9ff/apps/theming/lib/Controller/IconController.php#L146 The problem is in the environment without php-imagick or without SVG support, this will fall back to original, whose default is 128x128; but I thought this is a separate problem. (For this, default image may be enlarged. Should I create another issue if this is important one?) Signed-off-by: nhirokinet <nhirokinet@nhiroki.net>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add occ command to set theming valuesJulius Härtl2020-09-241-60/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move theming js to initial stateRoeland Jago Douma2020-06-051-33/+0
| | | | | | | | A bit more elegant. Plus it will allow us to also write a proper @nextcloud/theming package. To make life easier down the line for all. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-3/+3
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>