Commit Graph

53 Commits

Author SHA1 Message Date
Christoph Wurst 58b8b00798
Use \OCP\IContainer::injectFn to boot the Accessibility app
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-07-03 14:37:53 +02:00
Joas Schilling 220423e0a5
Fix dark mode for guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-23 19:54:41 +02:00
Joas Schilling 64f5a20aea
Merge pull request #21366 from nextcloud/feature/noid/respect-prefers-color-scheme
Respect "prefers-color-scheme" media selector for guests
2020-06-22 15:56:11 +02:00
Roeland Jago Douma c30bab34e6
Move accessibility js route to static js and initial state
Yet again another js file that doesn't have to be served via nextcloud.
But can just be done via the webbrowser.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-17 19:37:37 +02:00
Christoph Wurst 0587010dff
Migrate Accessibility app to new bootstrap mechanism
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-17 09:22:21 +02:00
Joas Schilling 291640273d
Respect "prefers-color-scheme" media selector for guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-10 23:47:01 +02:00
Christoph Wurst cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-29 11:57:22 +02:00
Christoph Wurst caff1023ea
Format control structures, classes, methods and function
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>
2020-04-10 14:19:56 +02:00
Christoph Wurst afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 13:54:22 +02:00
Christoph Wurst 2fbad1ed72
Fix (array) indent style to always use one tab
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 10:16:08 +02:00
Christoph Wurst 1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31 14:52:54 +02:00
Christoph Wurst 463b388589
Merge pull request #20170 from nextcloud/techdebt/remove-unused-imports
Remove unused imports
2020-03-27 17:14:08 +01:00
Christoph Wurst b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-26 16:34:56 +01:00
Christoph Wurst 74936c49ea
Remove unused imports
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-25 22:08:08 +01:00
Joas Schilling 150082397e
FIx logging in accessibility controller
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-20 15:45:38 +01:00
Joas Schilling 16482efc27
Do not use translation-concatenation
it's as bad as the word itself sounds

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-12 15:34:00 +01:00
Christoph Wurst 30d985b639
Migrate leafo/scssphp to scssphp/scssphp
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-01-23 14:52:16 +01:00
Christoph Wurst 5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05 15:38:45 +01:00
Roeland Jago Douma 68748d4f85
Some php-cs fixes
* 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>
2019-11-22 20:52:10 +01:00
John Molakvoæ (skjnldsv) 836e7305d0
Fix accessibility
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-11-20 19:42:52 +01:00
Janis Köhr d75fbab5d2
Removed duplicate defintion of app name and rebased/rebuilt.
Signed-off-by: Janis Köhr <janis.koehr@novatec-gmbh.de>
2019-09-16 21:14:11 +02:00
Janis Köhr 4a1ce95464
Added copyright for contribution
Signed-off-by: Janis Köhr <janis.koehr@novatec-gmbh.de>
2019-09-16 21:04:19 +02:00
Janis Köhr adb3e59a01
Change name of high contrast theme to high contrast mode
Signed-off-by: Janis Köhr <janis.koehr@novatec-gmbh.de>
2019-09-16 21:04:19 +02:00
Janis Köhr ae9523c6ce
Add highcontrast style for dark mode
Signed-off-by: Janis Köhr <janis.koehr@novatec-gmbh.de>
2019-09-16 21:04:19 +02:00
Janis Köhr 9872154e01
Changed highcontrast from array (theme) to object (flag/filter)
Signed-off-by: Janis Köhr <janis.koehr@novatec-gmbh.de>
2019-09-16 21:04:19 +02:00
Janis Köhr df246f1110
Added migration step
Signed-off-by: Janis Köhr <janis.koehr@novatec-gmbh.de>
2019-09-16 21:04:18 +02:00
Janis Köhr 567b224df4
Add theme class for selected theme to body, fix for accessibility theme selection and separated highcontrast theme
Signed-off-by: Janis Köhr <janis.koehr@novatec-gmbh.de>
2019-09-16 21:04:18 +02:00
Greta Doci ddbdc21ccf Remove beta from dark theme name ref #16076
Signed-off-by: Greta Doci <gretadoci@gmail.com>
2019-07-05 14:34:21 +02:00
John Molakvoæ (skjnldsv) 3bb2c87648
Do not cut full color on accessibility svg color invert
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-03-04 11:24:23 +01:00
Jan-Christoph Borchardt 4b88ac4d2a
Accessibility: Simplify design, more obvious selectability
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2019-02-21 16:22:24 +01:00
Thomas Citharel f383a961f0
Don't require Same Site Cookies on accessibility assets
Follows https://github.com/nextcloud/server/pull/11878
2018-11-26 16:22:48 +01:00
Julius Härtl 4b7ef668a4
Adjust accessibility app color replacement
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-10-29 12:09:44 +01:00
Julius Härtl d21ded67a7
Keep list of icons in a separate file for use in the accessibility app
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-10-25 12:16:10 +02:00
Morris Jobke 2ec5d2a6de
Merge pull request #11533 from nextcloud/accessibility-cache-fixes
Added cache override to ensure an always up-to-date accessibility css
2018-10-24 15:04:29 +02:00
Roeland Jago Douma 3ac15a45ea
If there is no UID do not explode accessibility javascript
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-10-22 11:26:21 +02:00
Alexey Pyltsyn 30cbd137e8 Fix illegible text color in columns Size and Modified on dark theme: rework after review
Signed-off-by: Alexey Pyltsyn <lex61rus@gmail.com>
2018-10-18 20:49:46 +03:00
John Molakvoæ (skjnldsv) cf06e313ee
Added cache override to ensure an always up-to-date accessibility css
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-10-02 09:46:05 +02:00
Julius Härtl e8938df198
Move SCSS variable fetching before the variables.scss to properly calculate color values
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-29 16:47:39 +02:00
John Molakvoæ (skjnldsv) a7c426aa5c
Add default theming into accessibility compiler
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-08-15 07:25:31 +02:00
John Molakvoæ (skjnldsv) cd6f00a102
Only dark
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-07-19 08:16:59 +02:00
John Molakvoæ (skjnldsv) a24cad1a1c
Fix accessibility invert
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-07-19 08:16:58 +02:00
John Molakvoæ (skjnldsv) 9e5885963c
Fixed icons detection and caching
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-07-19 08:16:58 +02:00
John Molakvoæ (skjnldsv) 8977c71f88
Mixin scss icon api
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-07-19 08:16:58 +02:00
Jan-Christoph Borchardt 82047f2d43
Clarify beta state of dark theme
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-07-17 13:41:23 +02:00
John Molakvoæ (skjnldsv) 6806c589d0
Merging highcontrast themes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-25 17:12:28 +02:00
John Molakvoæ (skjnldsv) 1de8f6dd37
Fix webroot
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-25 17:12:28 +02:00
John Molakvoæ (skjnldsv) 2e08cc958c
Compliance
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-25 17:12:28 +02:00
John Molakvoæ (skjnldsv) fc0e62185c
Fixed webroot detection
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-25 17:12:28 +02:00
John Molakvoæ (skjnldsv) 95f06d071d
Fix css url
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-25 17:12:27 +02:00
John Molakvoæ (skjnldsv) b2c21dbb14
OpenSans font contrast option
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2018-06-25 17:12:27 +02:00