aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-2/+2
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-168-5/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Store scss variables under a different prefix for each theming config versionJulius Härtl2020-11-301-2/+3
| | | | | | | | | The main issue with using the general theming- prefix is that with APCu caching the cache is not shared between processes, so when trying to reset the cache through the CLI, e.g. when updating the theming config the old cache is never invalidated. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Optimize chek if background is themedJulius Härtl2020-11-231-8/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix setting images through occ for themingJulius Härtl2020-11-191-4/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* override default dashboard background with theming oneJulien Veyssier2020-11-135-10/+10
| | | | | | | | fix getAppValue default value in theming app fix cacheBuster value injection Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Shortcut to avoid file system setup when generating the logo URLMorris Jobke2020-11-091-5/+14
| | | | | | If an SVG is requested and the app config value for logoMime is set then the logo is there. Otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which needs to be called then). Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup ImageManager::getImage()Morris Jobke2020-11-041-6/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add gif to if-statement to not convertJacob Neplokh2020-11-021-1/+1
| | | | | | - SVGs are already there, so I just added it alongside it (as recommended by https://github.com/nextcloud/server/issues/16232#issuecomment-679920284) Signed-off-by: Jacob Neplokh <me@jacobneplokh.com>
* Enable theming background transparencyJohn Molakvoæ (skjnldsv)2020-10-251-1/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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>
* Allow setting favicon with a .ico fileGary Kim2020-10-141-0/+5
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-055-18/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add occ command to set theming valuesJulius Härtl2020-09-244-72/+207
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use IBootstrap for the app themingMorris Jobke2020-07-242-15/+97
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Precalculate the primary element color for dark mode tooJoas Schilling2020-06-262-4/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Set serverBackground if it is a custom background or default hubGretaD2020-06-081-2/+2
| | | | Signed-off-by: GretaD <gretadoci@gmail.com>
* Move theming js to initial stateRoeland Jago Douma2020-06-053-34/+85
| | | | | | | | 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-295-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Provide the proper language to the mailerRoeland Jago Douma2020-04-161-2/+2
| | | | | | | Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-107-26/+26
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-3/+3
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't try to resize a svg uploaded as background image.Daniel Kesselberg2020-03-011-2/+1
| | | | | | image* are gd functions without support for svg hence we are not able to resize svg. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Migrate leafo/scssphp to scssphp/scssphpChristoph Wurst2020-01-231-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use themed favicon-fbJulius Härtl2020-01-211-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 18Christoph Wurst2019-12-201-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0510-15/+37
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow inline styles for theming imagesJulius Härtl2019-11-271-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add var for theming images , advanced options (#16815)John Molakvoæ2019-11-262-2/+4
|\ | | | | add var for theming images , advanced options
| * Remove some whitespaceDaniel Kesselberg2019-11-241-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * add var for theming images , advanced optionsGuillaume COMPAGNON2019-11-242-3/+5
| | | | | | | | Signed-off-by: Guillaume COMPAGNON <gcompagnon@outlook.com>
* | Some php-cs fixesRoeland Jago Douma2019-11-225-11/+11
|/ | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove missed manual Application instance constructionsRobin Appelman2019-11-041-0/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Cleanup theming messRoeland Jago Douma2019-10-251-4/+1
| | | | | | | | | | * Do not do translations in the constructor. This gets called to early so there is no user yet. Which means we can't obtain the locale. Which means we store the wrong translation instance. * Same for the theming app magic. Just use the parent call when needed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* make sure that the urls for theming images are validRobin Appelman2019-10-181-4/+10
| | | | | | | | In some circumstances the url generation seems to fail, resulting in an empty image url which causes the browser to load the main page multiple times, leading to issues with state tokens Signed-off-by: Robin Appelman <robin@icewind.nl>
* Validate urls in theming settings and properly handle error messagesJulius Härtl2019-07-311-36/+32
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* The array and string offset access syntax using curly braces is deprecated.Daniel Kesselberg2019-07-211-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Only return link to themed icon if file existsJulius Härtl2019-06-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Properly theme folder icons that are accessed though imagePathJulius Härtl2019-06-111-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Darken element color and add exception for primary buttonsJulius Härtl2019-03-271-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Revert "Where is your data?"Roeland Jago Douma2019-03-201-0/+83
|
* Add guest navigation typeJulius Härtl2019-02-181-1/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move server info to theming sectionMichael Weimann2019-01-141-83/+0
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Don't require Same Site Cookies on assetsThomas Citharel2018-10-171-0/+2
| | | | | | | | Which can be used for public iframe embeeding See https://github.com/nextcloud/calendar/issues/169 Signed-off-by: Thomas Citharel <tcit@tcit.fr>