grapper & statisrtik combo boxes color

This commit is contained in:
salam committed 2026-07-13 07:56:08 +02:00
1 parent f4f01a58fa
commit 24ecf97268
4 files changed
+39 -36

No files matched your search

+11 -8
View File
@@ -127,6 +127,7 @@ class Statistic extends BaseDashboard
->prefix('TP')
->prefixAction(
Action::make('iconInfo')
->color('success')
->icon('phosphor-question-fill')
->tooltip(fn() => 'Team Position')
)
@@ -183,11 +184,12 @@ class Statistic extends BaseDashboard
->hiddenLabel()
->prefix('SPM')
->placeholder('Similar Past Matches')
->prefixIconColor('primary')
->suffix(fn(Get $get): string|HtmlString => $get('similar_past_matches') != 'none' ? new HtmlString('<div class="text-center w-24 font-bold rounded p-1 bg-blue-600 dark:bg-blue-700 text-white dark:text-gray-300">± ' . $get('accuracy') . '</div>') : '')
->prefixAction(
Action::make('iconInfo')
->icon('phosphor-question-fill')
// ->color(fn(Get $get): string => $get('similar_past_matches') != 'none' ? 'success' : 'primary')
->color('success')
->tooltip(fn() => $this->tooltip_similar_past_matches())
)
->default('none')
@@ -236,7 +238,7 @@ class Statistic extends BaseDashboard
->prefixIcon('phosphor-watch-fill')
->default('all')
->hidden(fn(Get $get) => ! $get('tm_player_id'))
->prefixIconColor('primary')
->prefixIconColor('success')
->selectablePlaceholder(false)
// ->afterStateUpdated(function (callable $set) {
// // $set('team_id', null);
@@ -276,8 +278,9 @@ class Statistic extends BaseDashboard
->columns(2)
->hiddenLabel()
->multiple()
->placeholder('Season')
->prefixIconColor(fn(Get $get): string => $get('season') ? 'success' : 'danger')
->placeholder('All Seasons')
->prefixIconColor('success')
// ->prefixIconColor(fn(Get $get): string => $get('season') ? 'success' : 'primary')
->hidden(fn(Get $get) => $get('season_or_date') == 'date')
->prefixIcon('phosphor-calendar-star-fill')
->preload()
@@ -289,8 +292,8 @@ class Statistic extends BaseDashboard
->hiddenLabel()
->hidden(fn(Get $get) => $get('season_or_date') == 'season')
->native(false)
->prefixIconColor('primary')
->prefixIcon('phosphor-calendar')
->prefixIconColor(fn(Get $get): string => $get('start_date') ? 'success' : 'primary')
->prefixIcon('phosphor-calendar-fill')
->prefix('Start')
->suffixAction(
Action::make('clear_start')
@@ -303,8 +306,8 @@ class Statistic extends BaseDashboard
->hiddenLabel()
->hidden(fn(Get $get) => $get('season_or_date') == 'season')
->native(false)
->prefixIconColor('primary')
->prefixIcon('phosphor-calendar')
->prefixIconColor(fn(Get $get): string => $get('end_date') ? 'success' : 'primary')
->prefixIcon('phosphor-calendar-fill')
->prefix('End')
->suffixAction(
Action::make('clear_end')