Change colors

This commit is contained in:
notCharles 2024-04-29 21:34:27 -04:00
parent 549ab12048
commit fdc51e03ac
5 changed files with 10 additions and 17 deletions

View File

@ -27,11 +27,11 @@ enum ServerState: string
{
return match ($this) {
self::Normal => 'primary',
self::Installing => 'info',
self::Installing => 'primary',
self::InstallFailed => 'danger',
self::ReinstallFailed => 'danger',
self::Suspended => 'danger',
self::RestoringBackup => 'info',
self::Suspended => 'warning',
self::RestoringBackup => 'primary',
};
}
}

View File

@ -46,22 +46,19 @@ class Dashboard extends Page
CreateAction::make()
->label(trans('dashboard/index.sections.intro-developers.button_features'))
->icon('tabler-brand-github')
->url('https://github.com/pelican-dev/panel/discussions', true)
->color('primary'),
->url('https://github.com/pelican-dev/panel/discussions', true),
],
'nodeActions' => [
CreateAction::make()
->label(trans('dashboard/index.sections.intro-first-node.button_label'))
->icon('tabler-server-2')
->url(route('filament.admin.resources.nodes.create'))
->color('primary'),
->url(route('filament.admin.resources.nodes.create')),
],
'supportActions' => [
CreateAction::make()
->label(trans('dashboard/index.sections.intro-support.button_translate'))
->icon('tabler-language')
->url('https://crowdin.com/project/pelican-dev', true)
->color('info'),
->url('https://crowdin.com/project/pelican-dev', true),
CreateAction::make()
->label(trans('dashboard/index.sections.intro-support.button_donate'))
->icon('tabler-cash')
@ -72,13 +69,11 @@ class Dashboard extends Page
CreateAction::make()
->label(trans('dashboard/index.sections.intro-help.button_docs'))
->icon('tabler-speedboat')
->url('https://pelican.dev/docs', true)
->color('info'),
->url('https://pelican.dev/docs', true),
CreateAction::make()
->label(trans('dashboard/index.sections.intro-help.button_discord'))
->icon('tabler-brand-discord')
->url('https://discord.gg/pelican-panel', true)
->color('primary'),
->url('https://discord.gg/pelican-panel', true),
],
];
}

View File

@ -41,7 +41,6 @@ class CreateServer extends CreateRecord
->label('Display Name')
->suffixAction(Forms\Components\Actions\Action::make('random')
->icon('tabler-dice-' . random_int(1, 6))
->color('primary')
->action(function (Forms\Set $set, Forms\Get $get) {
$egg = Egg::find($get('egg_id'));
$prefix = $egg ? str($egg->name)->lower()->kebab() . '-' : '';

View File

@ -93,7 +93,6 @@ class EditServer extends EditRecord
->label('Display Name')
->suffixAction(Forms\Components\Actions\Action::make('random')
->icon('tabler-dice-' . random_int(1, 6))
->color('primary')
->action(function (Forms\Set $set, Forms\Get $get) {
$egg = Egg::find($get('egg_id'));
$prefix = $egg ? str($egg->name)->lower()->kebab() . '-' : '';

View File

@ -43,8 +43,8 @@ class AdminPanelProvider extends PanelProvider
->colors([
'danger' => Color::Red,
'gray' => Color::Zinc,
'info' => Color::Blue,
'primary' => Color::Sky,
'info' => Color::Sky,
'primary' => Color::Blue,
'success' => Color::Green,
'warning' => Color::Amber,
])