Skip to content

Commit bdde13e

Browse files
committed
Clean up status bar in dark mode
1 parent d172c3a commit bdde13e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

resources/views/components/status-bar.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<div {{ $attributes->class(['rounded-md p-4 bg-custom-200 dark:bg-custom-400 border border-custom-400'])->style([
1+
<div {{ $attributes->class(['rounded-md p-4 bg-custom-200 dark:bg-custom-400/40 border border-custom-400'])->style([
22
Illuminate\Support\Arr::toCssStyles([
33
\Filament\Support\get_color_css_variables(
44
$status->getColor(),
5-
shades: [100, 200, 400, 800],
5+
shades: [200, 400, 800],
66
),
77
]),
88
]) }}>
99
<div class="flex sm:items-center gap-3">
10-
@svg($status->getIcon(), 'size-5 text-custom-800')
10+
@svg($status->getIcon(), 'size-5 text-custom-800 dark:text-custom-200')
1111
<div class="flex flex-1 justify-between items-center">
12-
<p class="text-sm md:text-base text-custom-800">{{ $status->getLabel() }}</p>
12+
<p class="text-sm md:text-base text-custom-800 dark:text-custom-200">{{ $status->getLabel() }}</p>
1313
{{-- <p class="mt-2 sm:mt-3 text-xs sm:text-sm md:ml-6 md:mt-0 text-custom-800">--}}
1414
{{-- Updated <time datetime="2008-02-14 20:00" title="2008-02-14 20:00" class="underline decoration-dotted underline-offset-2 cursor-help">10 minutes</time> ago--}}
1515
{{-- </p>--}}

src/Enums/SystemStatusEnum.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
enum SystemStatusEnum implements HasColor, HasIcon, HasLabel
1111
{
1212
case operational;
13-
case performance_issues;
1413
case partial_outage;
1514
case major_outage;
1615

@@ -38,7 +37,6 @@ public function getIcon(): ?string
3837
self::operational => 'heroicon-m-check-circle',
3938
self::partial_outage => 'cachet-component-partial-outage',
4039
self::major_outage => 'cachet-component-major-outage',
41-
default => 'cachet-unknown',
4240
};
4341
}
4442
}

0 commit comments

Comments
 (0)