Skip to content

Commit

Permalink
chore: move to -soft instead of -light
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Mar 16, 2024
1 parent f6fd9ae commit 3d4f73a
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions app/Models/Traits/HasKd.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public function getKdaAttribute(float $value): string
public function getKdColor(): string
{
return $this->kd >= 1
? 'has-background-success-light'
: 'has-background-danger-light';
? 'has-background-success-soft'
: 'has-background-danger-soft';
}

public function getKdaColor(): string
{
return $this->kda >= 1
? 'has-background-success-light'
: 'has-background-danger-light';
? 'has-background-success-soft'
: 'has-background-danger-soft';
}
}
12 changes: 6 additions & 6 deletions app/Models/Traits/HasPerformance.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public function getExpectedKillsColor(): string
}

return match (true) {
$this->kills > $this->expected_kills => 'has-background-success-light',
$this->kills < $this->expected_kills => 'has-background-danger-light',
$this->kills === $this->expected_kills => 'has-background-primary-light',
$this->kills > $this->expected_kills => 'has-background-success-soft',
$this->kills < $this->expected_kills => 'has-background-danger-soft',
$this->kills === $this->expected_kills => 'has-background-primary-soft',
default => ''
};
}
Expand All @@ -27,9 +27,9 @@ public function getExpectedDeathsColor(): string
}

return match (true) {
$this->deaths > $this->expected_deaths => 'has-background-danger-light',
$this->deaths < $this->expected_deaths => 'has-background-success-light',
$this->deaths === $this->expected_deaths => 'has-background-primary-light',
$this->deaths > $this->expected_deaths => 'has-background-danger-soft',
$this->deaths < $this->expected_deaths => 'has-background-success-soft',
$this->deaths === $this->expected_deaths => 'has-background-primary-soft',
default => ''
};
}
Expand Down
6 changes: 3 additions & 3 deletions app/Models/Traits/HasScoring.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public function getFormattedScoreAttribute(): string
public function getVictoryColor(): string
{
if ($this->outcome->is(Outcome::WIN())) {
return 'has-background-success-light';
return 'has-background-success-soft';
}

if ($this->outcome->is(Outcome::LOSS())) {
return 'has-background-warning-light';
return 'has-background-warning-soft';
}

if ($this->outcome->is(Outcome::LEFT())) {
return 'has-background-danger-light';
return 'has-background-danger-soft';
}

return '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<td class="{{ $game->personal->getKdaColor() }}">
{{ $game->personal->kda }}
</td>
<td class="has-background-{{ $game->personal->accuracy_color }}-light">
<td class="has-background-{{ $game->personal->accuracy_color }}-soft">
{{ $game->personal->accuracy }}%
</td>
<td>{{ $game->personal->rank }}</td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/game-history-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<td class="{{ $game->personal->getKdaColor() }}">
{{ $game->personal->kda }}
</td>
<td class="has-background-{{ $game->personal->accuracy_color }}-light">
<td class="has-background-{{ $game->personal->accuracy_color }}-soft">
{{ $game->personal->accuracy }}%
</td>
<td>{{ $game->personal->rank }}</td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/game-lan-history-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<td class="{{ $game->personal->getKdaColor() }}">
{{ $game->personal->kda }}
</td>
<td class="has-background-{{ $game->personal->accuracy_color }}-light">
<td class="has-background-{{ $game->personal->accuracy_color }}-soft">
{{ $game->personal->accuracy }}%
</td>
<td>{{ $game->personal->rank }}</td>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/player-card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
?>
<div>
@if ($player->is_bot)
<div class="card has-background-grey-light mb-2">
<div class="card has-background-grey-soft mb-2">
<div class="card-content">
<h1 class="title is-4">
<span class="tag is-dark">BOT</span>&nbsp;{{ $player->gamertag }}
Expand All @@ -12,7 +12,7 @@
</div>
</div>
@else
<div class="card {{ $player->is_cheater ? 'has-background-danger-light' : 'has-background-success-light' }} mb-2"
<div class="card {{ $player->is_cheater ? 'has-background-danger-soft' : 'has-background-success-soft' }} mb-2"
style="background-image: url({{ $player->backdrop_url }}); background-repeat: no-repeat; background-position: center top;"
>
@if ($player->rank?->largeIcon)
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/scrim-players.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<td class="{{ $gamePlayer->getKdaColor() }}">
{{ $gamePlayer->kda }}
</td>
<td class="has-background-{{ $gamePlayer->accuracy_color }}-light">
<td class="has-background-{{ $gamePlayer->accuracy_color }}-soft">
{{ number_format($gamePlayer->accuracy, 2) }}%
</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/game/team-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class="has-tooltip-arrow {{ $gamePlayer->team->tooltip_color ?? '' }}"
<td class="{{ $gamePlayer->getKdaColor() }}">
{{ $gamePlayer->kda }}
</td>
<td class="has-background-{{ $gamePlayer->accuracy_color }}-light">
<td class="has-background-{{ $gamePlayer->accuracy_color }}-soft">
{{ $gamePlayer->accuracy }}%
</td>
<td>{{ $gamePlayer->formatted_score }}</td>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/hcs/bracket_table/4v4.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</thead>
<tbody>
@foreach ($matchups as $matchup)
<tr class="{{ $matchup->isCancelled() ? 'has-background-danger-light' : null }}">
<tr class="{{ $matchup->isCancelled() ? 'has-background-danger-soft' : null }}">
<td style="opacity: {{ $matchup->team1?->id === $matchup->loser?->id ? '40%' : '100%' }}">
<article class="media">
<figure class="media-left">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/hcs/team_snippet/4v4.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
@endif
@foreach ($team->players as $player)
<div class="card has-background-{{ $color }}-light">
<div class="card has-background-{{ $color }}-soft">
<div class="card-content">
<div class="media">
<div class="media-left">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/hcs/team_snippet/ffa.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
?>
@foreach ($matchup->matchupTeams->sortBy('points') as $matchupTeam)
<?php $player = $matchupTeam->getPlayer(); ?>
<div class="card has-background-{{ $matchupTeam->isWinner() ? 'success' : 'dark' }}-light">
<div class="card has-background-{{ $matchupTeam->isWinner() ? 'success' : 'dark' }}-soft">
<div class="card-content">
<div class="media">
<div class="media-left">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/playlist/sidebar-list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Playlists
</p>
@foreach ($playlists as $p)
<a class="panel-block is-block <?= $p->id === $playlist->id ? 'has-background-link-light' : ''; ?>"
<a class="panel-block is-block <?= $p->id === $playlist->id ? 'has-background-link-soft' : ''; ?>"
href="<?= route('playlist', [$p]); ?>"
>
{{ $p->name }}
Expand Down

0 comments on commit 3d4f73a

Please sign in to comment.