@@ -29,55 +29,55 @@ |
||
29 | 29 | |
30 | 30 | class AccessibilityProvider { |
31 | 31 | |
32 | - /** @var string */ |
|
33 | - protected $appName; |
|
32 | + /** @var string */ |
|
33 | + protected $appName; |
|
34 | 34 | |
35 | - /** @var IURLGenerator */ |
|
36 | - private $urlGenerator; |
|
35 | + /** @var IURLGenerator */ |
|
36 | + private $urlGenerator; |
|
37 | 37 | |
38 | - /** @var IL10N */ |
|
39 | - private $l; |
|
38 | + /** @var IL10N */ |
|
39 | + private $l; |
|
40 | 40 | |
41 | - /** |
|
42 | - * Account constructor. |
|
43 | - * |
|
44 | - * @param string $appName |
|
45 | - * @param IURLGenerator $urlGenerator |
|
46 | - * @param IL10N $l |
|
47 | - */ |
|
48 | - public function __construct(string $appName, |
|
49 | - IURLGenerator $urlGenerator, |
|
50 | - IL10N $l) { |
|
51 | - $this->appName = $appName; |
|
52 | - $this->urlGenerator = $urlGenerator; |
|
53 | - $this->l = $l; |
|
54 | - } |
|
41 | + /** |
|
42 | + * Account constructor. |
|
43 | + * |
|
44 | + * @param string $appName |
|
45 | + * @param IURLGenerator $urlGenerator |
|
46 | + * @param IL10N $l |
|
47 | + */ |
|
48 | + public function __construct(string $appName, |
|
49 | + IURLGenerator $urlGenerator, |
|
50 | + IL10N $l) { |
|
51 | + $this->appName = $appName; |
|
52 | + $this->urlGenerator = $urlGenerator; |
|
53 | + $this->l = $l; |
|
54 | + } |
|
55 | 55 | |
56 | - public function getThemes() { |
|
57 | - return array( |
|
58 | - [ |
|
59 | - 'id' => 'themehighcontrast', |
|
60 | - 'img' => $this->urlGenerator->imagePath($this->appName, 'theme-highcontrast.jpg'), |
|
61 | - 'title' => $this->l->t('High contrast theme'), |
|
62 | - 'text' => $this->l->t('A high contrast theme to ease your navigation. Visual quality will be reduced but clarity will be increased.') |
|
63 | - ], [ |
|
64 | - 'id' => 'themedark', |
|
65 | - 'img' => $this->urlGenerator->imagePath($this->appName, 'theme-dark.jpg'), |
|
66 | - 'title' => $this->l->t('Dark theme (beta)'), |
|
67 | - 'text' => $this->l->t('A dark theme to ease your eyes by reducing the overall luminosity and brightness. It is still under development, so please report any issues you may find.') |
|
68 | - ] |
|
69 | - ); |
|
70 | - } |
|
56 | + public function getThemes() { |
|
57 | + return array( |
|
58 | + [ |
|
59 | + 'id' => 'themehighcontrast', |
|
60 | + 'img' => $this->urlGenerator->imagePath($this->appName, 'theme-highcontrast.jpg'), |
|
61 | + 'title' => $this->l->t('High contrast theme'), |
|
62 | + 'text' => $this->l->t('A high contrast theme to ease your navigation. Visual quality will be reduced but clarity will be increased.') |
|
63 | + ], [ |
|
64 | + 'id' => 'themedark', |
|
65 | + 'img' => $this->urlGenerator->imagePath($this->appName, 'theme-dark.jpg'), |
|
66 | + 'title' => $this->l->t('Dark theme (beta)'), |
|
67 | + 'text' => $this->l->t('A dark theme to ease your eyes by reducing the overall luminosity and brightness. It is still under development, so please report any issues you may find.') |
|
68 | + ] |
|
69 | + ); |
|
70 | + } |
|
71 | 71 | |
72 | - public function getFonts() { |
|
73 | - return array( |
|
74 | - [ |
|
75 | - 'id' => 'fontdyslexic', |
|
76 | - 'img' => $this->urlGenerator->imagePath($this->appName, 'font-opendyslexic.jpg'), |
|
77 | - 'title' => $this->l->t('Dyslexia font'), |
|
78 | - 'text' => $this->l->t('OpenDyslexic is a free typeface/font designed to mitigate some of the common reading errors caused by dyslexia. The typeface was created by Abelardo Gonzalez, who released it through an open-source license.') |
|
79 | - ] |
|
80 | - ); |
|
81 | - } |
|
72 | + public function getFonts() { |
|
73 | + return array( |
|
74 | + [ |
|
75 | + 'id' => 'fontdyslexic', |
|
76 | + 'img' => $this->urlGenerator->imagePath($this->appName, 'font-opendyslexic.jpg'), |
|
77 | + 'title' => $this->l->t('Dyslexia font'), |
|
78 | + 'text' => $this->l->t('OpenDyslexic is a free typeface/font designed to mitigate some of the common reading errors caused by dyslexia. The typeface was created by Abelardo Gonzalez, who released it through an open-source license.') |
|
79 | + ] |
|
80 | + ); |
|
81 | + } |
|
82 | 82 | |
83 | 83 | } |