aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
Commit message (Collapse)AuthorAgeFilesLines
* Theming: Add tests for mimetype and upload error checksJulius Härtl2017-10-031-11/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: Check valid image format also for logoJulius Härtl2017-10-031-0/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: Handle errors on uploaded files properlyJulius Härtl2017-10-031-1/+22
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #5398 from nextcloud/theming-page-titleMorris Jobke2017-09-131-2/+8
|\ | | | | Fallback to "getTitle" / "getEntity" of filesystem theme in theming app
| * Use theme methods "getTitle" and "getEntity" as fallback if name is not themed.Joachim Bauch2017-09-131-2/+8
| | | | | | | | | | | | | | | | This fixes an issue with custom filesystem themes that can define title, name and entity differently, but the theming app was only using the name as fallback (see #5374). Signed-off-by: Joachim Bauch <bauch@struktur.de>
* | Merge pull request #6457 from nextcloud/theming-favicon-invert-appsMorris Jobke2017-09-131-4/+13
|\ \ | |/ |/| Invert themed favicons on bright colors
| * Theming: Invert app icon in favicon for bright backgroundsJulius Härtl2017-09-121-0/+11
| | | | | | | | | | | | fixes #5650 Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Theming: Use png32 for generated iconsJulius Härtl2017-09-121-4/+2
| | | | | | | | | | | | fixes #4796 Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Use IAppManager instead of private APIJulius Härtl2017-09-121-7/+17
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add themed manifest.json to theming appJulius Härtl2017-09-121-0/+35
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Move theming related imagePath logic to ThemingDefaultsJulius Härtl2017-09-121-0/+30
|/ | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Use separate element color in themingJulius Härtl2017-09-041-0/+1
| | | | | | This way we can use a grey color when the primary color is to bright Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Change invertion threshold to 55%Julius Härtl2017-09-021-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update background image to the one used on the websiteJan-Christoph Borchardt2017-08-291-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add the primary font color to the capabilities as wellJoas Schilling2017-08-151-1/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provide "server.css" URL in ThemingController responseDaniel Calviño Sánchez2017-08-101-3/+10
| | | | | | | | | | | | | | Pull request #5429 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist. The "server.css" URL must be known by the Theming app in order to update the stylesheets when previewing the changes to the theme, so the DataResponse from the controller now provides the full URL to the "server.css" file that has to be reloaded (if any). The "server.css" URL provided by the response will be taken into account by the JavaScript front-end in a following commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use same lightness calculation as the SCSS compiler for themingJulius Härtl2017-08-011-4/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add Android and iOS URLs to theming appMorris Jobke2017-07-191-0/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow overwriting of IOS theming valuesRoeland Jago Douma2017-07-191-1/+20
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #5070 from nextcloud/theming-vs-themesJoas Schilling2017-07-131-0/+13
|\ | | | | Prefer custom theme over the theming app
| * Prefer custom theme over theming appJulius Härtl2017-07-121-0/+13
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Expose theming capabilities to publicJulius Härtl2017-06-301-2/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>