default color for avatar was changed

This commit is contained in:
Čarodej
2022-04-07 15:44:41 +02:00
parent 85d4f535eb
commit 6ed2efcc4e
3 changed files with 12 additions and 8 deletions

View File

@@ -10,12 +10,16 @@ return [
'is_admin_vuefilemanager_bar' => env('IS_ADMIN_VUEFILEMANAGER_BAR', true),
'colors' => [
'#9ad2bf',
'#9ad2cd',
'#d29a9a',
'#d2ce9a',
'#9aadd2',
'#c59ad2',
'#1BE7FF',
'#6eeb83',
'#e4ff1a',
'#E8AA14',
'#FF5714',
'#541388',
'#D90368',
'#F1E9DA',
'#2E294E',
'#FFD400',
],
'avatar_sizes' => [

View File

@@ -28,7 +28,7 @@
background: member.data.attributes.color ? member.data.attributes.color : '',
}"
>
<span :class="fontSize" class="font-extrabold uppercase dark:text-gray-800 text-gray-900">
<span :class="fontSize" class="font-extrabold uppercase text-white">
{{ letter }}
</span>
</div>

View File

@@ -102,7 +102,7 @@ class UserSetting extends Model
static::creating(function ($user) {
$user->id = Str::uuid();
$user->color = config('vuefilemanager.colors')[rand(0, 5)];
$user->color = config('vuefilemanager.colors')[rand(0, 9)];
$user->emoji_type = 'twemoji';
$user->theme_mode = 'system';
});