summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move to more generic image handling and add extra imagesJulius Härtl2018-04-195-166/+183
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #8993 from nextcloud/theming-allow-ui-with-themeRoeland Jago Douma2018-03-271-1/+1
|\ | | | | Show UI when using a custom theme
| * Show UI when using a custom themeJulius Härtl2018-03-261-1/+1
| | | | | | | | | | | | Do not hide the theming app UI when using a custom theme besides it, but warn the users about some settings being overwritten by that. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Clear any theming prefixed cache on cache buster increaseJulius Härtl2018-03-261-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update ThemingController.phprakekniven2018-03-191-1/+1
| | | Changed file according to discussion on PR.
* Update ThemingController.phprakekniven2018-03-161-3/+3
| | | | Changed wording according to discussion at Transifex. See https://www.transifex.com/nextcloud/nextcloud/translate/#de/$/121491259?issue=yes Aligned ending of error messages
* Update ThemingController.phprakekniven2018-03-101-1/+1
| | | | Improved translation string. Reported at Transifex. See https://www.transifex.com/nextcloud/nextcloud/translate/#de/$/121491256?issue=yes
* Use cache prefix for theming as wellJulius Härtl2018-03-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix tests to use ICacheFactoryJulius Härtl2018-03-071-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move base url from global cache prefix to frontend related onesJulius Härtl2018-03-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove null checkKyle Fazzari2018-02-251-7/+2
| | | | Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* theming: handle not being in the serverrootKyle Fazzari2018-02-201-3/+15
| | | | | | | | | | | | | | Currently, the theming app assumes it's in the serverroot. However, with Nextcloud's flexibility regarding configurable app paths, this is not a safe assumption to make. If it happens to be an incorrect assumption, the theming app fails to work. Instead of relying on the serverroot, just use the path from the AppManager and utilize relative paths for assets from there. Fix #8462 Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
* Remove unused import statementsMorris Jobke2018-02-142-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8078 from nextcloud/theming-validate-scssMorris Jobke2018-01-291-2/+2
|\ | | | | SCSS hardening
| * Do not rewrite absolute URLsJulius Härtl2018-01-261-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Remove theming migrationJulius Härtl2018-01-261-77/+0
|/ | | | | | Those images are alredy migrated after the instance has been updated to NC12 Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: adjust background image resizingJulius Härtl2018-01-191-6/+4
| | | | | | | | Support high resolution login images by resizing only images that are wider than 4096px fixes #7459 Signed-off-by: Julius Härtl <jus@bitgrid.net>
* More detailed theming capabilitiesJulius Härtl2018-01-103-12/+17
| | | | | | This will allow clients to easily check if a custom background is used Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #7705 from nextcloud/theming-calc-adjustMorris Jobke2018-01-091-8/+27
|\ | | | | Adjust theming color calculations using sRGB luma
| * Adjust theming color calculations using sRGB lumaJulius Härtl2018-01-081-8/+27
| | | | | | | | | | | | based on https://robots.thoughtbot.com/closer-look-color-lightness Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix SCSS processing when undoing theming valuesJulius Härtl2018-01-091-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix faulty path in theming scss generationJulius Härtl2018-01-051-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Also replace all other occurencesMorris Jobke2017-12-181-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix email buttons for white themeMorris Jobke2017-12-112-7/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Theming: Fix tests for favicon containing multiple sizesJulius Härtl2017-11-131-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: Generate favicon sizes to avoid resizing issues done by the browserJulius Härtl2017-11-131-2/+23
| | | | | | fixes #5193 Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Merge pull request #7112 from nextcloud/theming-imagemagick-hintMorris Jobke2017-11-091-0/+2
|\ | | | | Theming: add hint about favicon generation
| * Theming: add hint about favicon generationJulius Härtl2017-11-081-0/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #6788 from staabm/masterLukas Reschke2017-11-081-1/+1
|\ \ | |/ |/| Prevent XSS in links which open a new browser window
| * Prevent XSS in links which open a new browser windowMarkus Staab2017-10-191-1/+1
| |
* | Theming: expose element color though capabilities APIJulius Härtl2017-11-072-5/+5
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headersMorris Jobke2017-11-0610-33/+64
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | 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>