summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix invalid theming URLsMorris Jobke2017-05-051-8/+19
| | | | | | | * 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/+50
| | | | 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-50/+31
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Mock itJoas Schilling2017-04-251-12/+39
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Logo and background URLs must be relativeJoas Schilling2017-04-251-6/+3
| | | | | | 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-29/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement scss variable injection by OC_DefaultsJulius Haertl2017-04-252-526/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-6/+6
| | | | | | | 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-4/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-3/+3
| | | | | | | | | | | | | * 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/+44
| | | | | | 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-13/+13
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add test for creating AppData folderJulius Haertl2017-02-201-13/+47
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Use createMockJulius Haertl2017-02-162-46/+25
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Use ::class in tests and correct importJulius Haertl2017-02-162-26/+32
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Add tests for theming migration stepJulius Haertl2017-02-161-0/+137
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Adapt ThemingController testsJulius Haertl2017-02-161-52/+81
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #3151 from nextcloud/navigation-iconsMorris Jobke2017-01-241-2/+16
|\ | | | | add icons to navigation of personal & admin settings
| * Fix app section testsJoas Schilling2017-01-191-2/+16
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #3144 from nextcloud/use-data-download-responseMorris Jobke2017-01-191-5/+2
|\ \ | |/ |/| Use DataDownloadResponse
| * Use DataDownloadResponseLukas Reschke2017-01-181-5/+2
| | | | | | | | | | | | | | 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/+4
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move sizing to renderAppIcon methodJulius Haertl2016-12-041-1/+1
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #840 from nextcloud/theming-icon-endpointMorris Jobke2016-11-1812-3/+694
|\ | | | | Add dynamic icon creation
| * Use IAppManager instead of OC_AppJulius Haertl2016-11-183-3/+25
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Error handling and tests if file was not foundJulius Haertl2016-11-182-6/+39
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Sanitize input and small fixesJulius Haertl2016-11-182-8/+7
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Replace null return with NotFoundExceptionJulius Haertl2016-11-182-8/+13
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Fix icon-folder cssJulius Haertl2016-11-181-5/+5
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Improve cachingJulius Haertl2016-11-182-10/+22
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Caching for icon files using AppDataJulius Haertl2016-11-183-73/+264
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Theming: Code cleanup and cache buster for mime iconsJulius Haertl2016-11-184-31/+15
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Check if dynamic icons can be usedJulius Haertl2016-11-181-17/+76
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Add IconBuilder class to encapsulate icon generationJulius Haertl2016-11-182-43/+151
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Improve unit tests for image generationJulius Haertl2016-11-189-72/+118
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Theming: Add IconController testsJulius Haertl2016-11-181-0/+201
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
| * Theming: Add colorized icon css from icons.cssJulius Haertl2016-11-181-0/+31
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Merge pull request #768 from nextcloud/s3-objectstoreRobin Appelman2016-11-181-20/+29
|\ \ | |/ |/| Add S3 objectstore backend
| * Fix themeing unit testsRoeland Jago Douma2016-11-161-20/+29
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Revert "Fix #1782"Julius Haertl2016-11-161-4/+4
|/ | | | | | This reverts commit bc5268bdc84c9c9f302914ebb1b5304b614dfc2e. Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Fix #1782John Molakvoæ2016-11-021-4/+4
| | | | | | | | Fix checkbox left margin glitch Fix tests fix unit tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* also fix log in button confirm arrow when theming, fix #1615Jan-Christoph Borchardt2016-10-251-0/+2
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* remove slight transparency of primary action button, ref #1615Jan-Christoph Borchardt2016-10-251-8/+0
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add image URLs and testsJoas Schilling2016-09-062-0/+215
|
* Fix ThemingDefaults getMock deprecationRoeland Jago Douma2016-08-311-5/+5
|
* Theming: fix primary button for bright colorsJulius Haertl2016-08-291-30/+58
|
* Update AdminTest.phpiamfool2016-08-291-3/+3
|
* Use temporary file as cacheLukas Reschke2016-08-271-2/+6
|
* Increase theming performanceLukas Reschke2016-08-271-0/+57
| | | | | | | | 1. Set proper caching headers (`Pragma: cache`) 2. Resize image proportionally to a max size of 1920px 3. Store images with progressive mode This resizes a previous 2.8 MB picture to 300kb and makes it rendering going down from 11 seconds to less than 1 here. And future requests won't have to download the file newly.
* Merge pull request #771 from nextcloud/theming-fixesRoeland Jago Douma2016-08-261-4/+97
|\ | | | | Theming: Fix missing color usage