summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4910 from nextcloud/make-the-logo-smaller-creamLukas Reschke2017-05-191-0/+2
|\ | | | | Fix logo being too big on log in page, fix #4585
| * Scale logo only for custom onesJulius Härtl2017-05-191-0/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #4888 from nextcloud/theming-fallback-iconsLukas Reschke2017-05-182-30/+52
|\ \ | | | | | | Fallback to default favicon
| * | Inject FileAccessHelper for proper testingJulius Härtl2017-05-181-7/+7
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Add proper Content-Type to iconsJulius Härtl2017-05-171-2/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Fallback to default faviconJulius Härtl2017-05-172-29/+51
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #4918 from nextcloud/theming-capabilities-plain-backgroundMorris Jobke2017-05-171-3/+12
|\ \ | | | | | | OCS Return color when theming uses no background image
| * | Return color when theming uses no background imageJulius Härtl2017-05-171-3/+12
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / Use appdata logo when generating iconsJulius Härtl2017-05-172-17/+30
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add function to request SVG or regular fallback imageLukas Reschke2017-05-081-2/+8
| | | | | | Fixes https://github.com/nextcloud/server/issues/4647 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix tests for theming backgroundColorJulius Härtl2017-05-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming app: Add plain background color optionJulius Haertl2017-05-082-0/+19
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Fix invalid theming URLsMorris Jobke2017-05-051-2/+4
| | | | | | | * logo and background image had the cache buster applied twice: background-image: url(http://192.168.99.100/server/core/img/logo.svg?v=0?v=0); Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Delete theming images when logo/background is reset to defaultJulius Härtl2017-04-301-0/+19
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Code cleanup and preview for undo actionsJulius Härtl2017-04-291-0/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make sure that ThemingDefaults uses the correct default values from \OC_DefaultsJulius Härtl2017-04-291-5/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use generated SCSS for theming previewJulius Härtl2017-04-291-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Logo and background URLs must be relativeJoas Schilling2017-04-251-5/+5
| | | | | | They are used way to often for such a change Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix theming testsJulius Härtl2017-04-251-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement scss variable injection by OC_DefaultsJulius Haertl2017-04-252-155/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net> Add Scss variables to example theme and theming app Signed-off-by: Julius Haertl <jus@bitgrid.net> Use SCSSCacher to build theming css Signed-off-by: Julius Härtl <jus@bitgrid.net> Update theming.scss Signed-off-by: Julius Härtl <jus@bitgrid.net> Code cleanup Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix tests Signed-off-by: Julius Härtl <jus@bitgrid.net> Inject SCSSCacher for easier testing Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix typehint Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Generate absolute URLs Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Fix tests to always use absolute urls for theming images Signed-off-by: Julius Härtl <jus@bitgrid.net> MailheaderColor -> ColorPrimary Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix theming testsJoas Schilling2017-04-201-4/+4
| | | | | | | Trying to configure method "shouldReplaceIcons" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling <coding@schilljs.com>
* ThemingDefaults append cacheBusterCounter to logo URL by defaultMorris Jobke2017-04-091-11/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-4/+4
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add support for themingLukas Reschke2017-04-071-13/+38
| | | | | | Add support for theming in generated emails and simplify API Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* rename confusing getMailHeaderColor to getColorPrimary, ref #3491Jan-Christoph Borchardt2017-03-295-9/+9
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Don't use private apiJoas Schilling2017-03-201-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correctly escape the footer description from themingJoas Schilling2017-03-171-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class in tests and correct importJulius Haertl2017-02-161-2/+2
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Add tests for theming migration stepJulius Haertl2017-02-161-7/+6
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Add repair step to move existing theming imagesJulius Haertl2017-02-161-0/+78
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Move theming images to AppDataJulius Haertl2017-02-162-26/+36
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #3176 from nextcloud/default-value-datadirblizzz2017-01-301-1/+1
|\ | | | | Add proper default value for datadir
| * Add proper default value for datadirMorris Jobke2017-01-191-1/+1
| | | | | | | | | | | | | | * better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3151 from nextcloud/navigation-iconsMorris Jobke2017-01-241-3/+18
|\ \ | |/ |/| add icons to navigation of personal & admin settings
| * Add the icons for shipped appsJoas Schilling2017-01-191-3/+18
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #3144 from nextcloud/use-data-download-responseMorris Jobke2017-01-191-2/+1
|\ \ | |/ |/| Use DataDownloadResponse
| * Use DataDownloadResponseLukas Reschke2017-01-181-2/+1
| | | | | | | | | | | | | | 1. As documented 2. No need to show this inline, downloading has security advantages Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | theme app navigation menu highlight colorMorris Jobke2017-01-181-0/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #2588 from nextcloud/theming-check-emptyBjörn Schießle2016-12-092-1/+4
|\ | | | | Check if image files for theming are empty
| * Check if image files for theming are emptyJulius Haertl2016-12-092-1/+4
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Add fallback to FILTER_LANCZOS for icon resizingJulius Haertl2016-12-091-1/+6
|/ | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Fix transparency of iconsJulius Haertl2016-12-041-0/+1
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Fix background border radiusJulius Haertl2016-12-041-1/+1
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Move sizing to renderAppIcon methodJulius Haertl2016-12-041-5/+6
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Workaround for PHP bug when calling imagescaleJulius Haertl2016-11-221-1/+3
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #840 from nextcloud/theming-icon-endpointMorris Jobke2016-11-186-1/+618
|\ | | | | Add dynamic icon creation
| * Use IAppManager instead of OC_AppJulius Haertl2016-11-182-33/+56
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Error handling and tests if file was not foundJulius Haertl2016-11-182-45/+57
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Sanitize input and small fixesJulius Haertl2016-11-184-35/+52
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Replace null return with NotFoundExceptionJulius Haertl2016-11-182-13/+14
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>