mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix highcontrast theme icons
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
0e41530b80
commit
c9a372034f
4 changed files with 10 additions and 10 deletions
|
|
@ -29,7 +29,7 @@ use OCA\Theming\ITheme;
|
|||
class HighContrastTheme extends DefaultTheme implements ITheme {
|
||||
|
||||
public function getId(): string {
|
||||
return 'highcontrast';
|
||||
return 'light-highcontrast';
|
||||
}
|
||||
|
||||
public function getMediaQuery(): string {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class UserThemeControllerTest extends TestCase {
|
|||
'default' => $this->createMock(DefaultTheme::class),
|
||||
'light' => $this->createMock(LightTheme::class),
|
||||
'dark' => $this->createMock(DarkTheme::class),
|
||||
'highcontrast' => $this->createMock(HighContrastTheme::class),
|
||||
'light-highcontrast' => $this->createMock(HighContrastTheme::class),
|
||||
'dark-highcontrast' => $this->createMock(DarkHighContrastTheme::class),
|
||||
'opendyslexic' => $this->createMock(DyslexiaFont::class),
|
||||
];
|
||||
|
|
@ -102,7 +102,7 @@ class UserThemeControllerTest extends TestCase {
|
|||
['default'],
|
||||
['light'],
|
||||
['dark'],
|
||||
['highcontrast'],
|
||||
['light-highcontrast'],
|
||||
['dark-highcontrast'],
|
||||
['opendyslexic'],
|
||||
['', OCSBadRequestException::class],
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class ThemesServiceTest extends TestCase {
|
|||
'default',
|
||||
'light',
|
||||
'dark',
|
||||
'highcontrast',
|
||||
'light-highcontrast',
|
||||
'dark-highcontrast',
|
||||
'opendyslexic',
|
||||
];
|
||||
|
|
@ -98,7 +98,7 @@ class ThemesServiceTest extends TestCase {
|
|||
['dark', [], ['dark']],
|
||||
['dark', ['dark'], ['dark']],
|
||||
['opendyslexic', ['dark'], ['dark', 'opendyslexic']],
|
||||
['dark', ['highcontrast', 'opendyslexic'], ['opendyslexic', 'dark']],
|
||||
['dark', ['light-highcontrast', 'opendyslexic'], ['opendyslexic', 'dark']],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ class ThemesServiceTest extends TestCase {
|
|||
['dark', [], []],
|
||||
['dark', ['dark'], []],
|
||||
['opendyslexic', ['dark', 'opendyslexic'], ['dark'], ],
|
||||
['highcontrast', ['opendyslexic'], ['opendyslexic']],
|
||||
['light-highcontrast', ['opendyslexic'], ['opendyslexic']],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ class ThemesServiceTest extends TestCase {
|
|||
['dark', [], false],
|
||||
['dark', ['dark'], true],
|
||||
['opendyslexic', ['dark', 'opendyslexic'], true],
|
||||
['highcontrast', ['opendyslexic'], false],
|
||||
['light-highcontrast', ['opendyslexic'], false],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -302,7 +302,7 @@ class ThemesServiceTest extends TestCase {
|
|||
$this->config,
|
||||
$l10n,
|
||||
),
|
||||
'highcontrast' => new HighContrastTheme(
|
||||
'light-highcontrast' => new HighContrastTheme(
|
||||
$util,
|
||||
$this->themingDefaults,
|
||||
$urlGenerator,
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ class PersonalTest extends TestCase {
|
|||
$this->formatThemeForm('default'),
|
||||
$this->formatThemeForm('light'),
|
||||
$this->formatThemeForm('dark'),
|
||||
$this->formatThemeForm('highcontrast'),
|
||||
$this->formatThemeForm('light-highcontrast'),
|
||||
$this->formatThemeForm('dark-highcontrast'),
|
||||
$this->formatThemeForm('opendyslexic'),
|
||||
]],
|
||||
|
|
@ -162,7 +162,7 @@ class PersonalTest extends TestCase {
|
|||
$config,
|
||||
$l10n,
|
||||
),
|
||||
'highcontrast' => new HighContrastTheme(
|
||||
'light-highcontrast' => new HighContrastTheme(
|
||||
$util,
|
||||
$themingDefaults,
|
||||
$urlGenerator,
|
||||
|
|
|
|||
Loading…
Reference in a new issue