Skip to content

Commit c3a0ddc

Browse files
fix(dashboard-icons): use dark icon asset in status widgets
Switch dashboard widgets to app-dark.svg and align unit tests/assets so icon rendering stays consistent in dark and dashboard contexts. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8aed1d7 commit c3a0ddc

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

img/app-dark.svg

Lines changed: 8 additions & 0 deletions
Loading

lib/Dashboard/AdminGlobalStatusWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getIconClass(): string {
4141
}
4242

4343
public function getIconUrl(): string {
44-
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath(Application::APP_ID, 'app.svg'));
44+
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg'));
4545
}
4646

4747
public function getUrl(): ?string {

lib/Dashboard/EmployeeStatusWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getIconClass(): string {
4848
}
4949

5050
public function getIconUrl(): string {
51-
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath(Application::APP_ID, 'app.svg'));
51+
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg'));
5252
}
5353

5454
public function getUrl(): ?string {

lib/Dashboard/ManagerTeamStatusWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getIconClass(): string {
4141
}
4242

4343
public function getIconUrl(): string {
44-
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath(Application::APP_ID, 'app.svg'));
44+
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg'));
4545
}
4646

4747
public function getUrl(): ?string {

tests/Unit/Dashboard/EmployeeStatusWidgetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function setUp(): void {
2828
);
2929

3030
$this->urlGenerator = $this->createMock(IURLGenerator::class);
31-
$this->urlGenerator->method('imagePath')->willReturn('/apps/arbeitszeitcheck/img/app.svg');
31+
$this->urlGenerator->method('imagePath')->willReturn('/apps/arbeitszeitcheck/img/app-dark.svg');
3232
$this->urlGenerator->method('linkToRoute')->willReturn('/apps/arbeitszeitcheck/dashboard');
3333
$this->urlGenerator->method('getAbsoluteURL')->willReturnCallback(
3434
static fn (string $v): string => 'https://example.local' . $v

0 commit comments

Comments
 (0)