Files
papa-kind-treff.info/config/avatar.php
Lars Gebhardt-Kusche 0e73147886
All checks were successful
Deploy / deploy (push) Successful in 1m5s
Adsasd
2026-07-28 22:30:32 +02:00

236 lines
9.2 KiB
PHP

<?php
declare(strict_types=1);
return [
'dicebear' => [
'base_url' => 'https://api.dicebear.com',
'version' => '10.x',
'timeout' => 2,
'user_agent' => 'Papa-Kind-Treff/1.0',
],
'storage' => [
'cache_dir' => dirname(__DIR__) . '/public/assets/avatars/dicebear-cache',
'user_dir' => dirname(__DIR__) . '/public/assets/avatars/users',
'user_public_path' => '/assets/avatars/users',
],
'default_style' => 'lorelei',
'enabled_styles' => [
'lorelei',
'croodles',
],
'styles' => [
'lorelei' => [
'label' => 'Lorelei',
'class' => \App\Avatar\Lorelei::class,
'fixed_colors' => [],
'component_controls' => [
'eyesVariant',
'eyebrowsVariant',
'mouthVariant',
'glassesVariant',
'hairVariant',
'beardVariant',
'earringsVariant',
],
'color_controls' => [
'earringsColor' => [
'label' => 'Ohrringe',
'default' => '#d6b36b',
'samples' => ['#d6b36b', '#b08d57', '#d9d9d9', '#8c6c4a'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'eyebrowsColor' => [
'label' => 'Augenbrauen',
'default' => '#4a3227',
'samples' => ['#4a3227', '#6a4938', '#2c221d', '#8a6651'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'eyesColor' => [
'label' => 'Augen',
'default' => '#2a2522',
'samples' => ['#2a2522', '#3f4f66', '#6b4d35', '#1f3a5f'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'frecklesColor' => [
'label' => 'Sommersprossen',
'default' => '#b67852',
'samples' => ['#b67852', '#a16645', '#c48a66', '#8f5a3e'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'glassesColor' => [
'label' => 'Brille',
'default' => '#26313f',
'samples' => ['#26313f', '#4d5f73', '#1b1f27', '#7a5d42'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'hairColor' => [
'label' => 'Haare',
'default' => '#4b3128',
'samples' => ['#4b3128', '#6f4b38', '#221916', '#b38a52'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'hairAccessoriesColor' => [
'label' => 'Haar-Accessoires',
'default' => '#b96f54',
'samples' => ['#b96f54', '#c98664', '#8d5a9e', '#5e8aa8'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'mouthColor' => [
'label' => 'Mund',
'default' => '#9f5a56',
'samples' => ['#9f5a56', '#b66b66', '#804444', '#c98a7a'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'noseColor' => [
'label' => 'Nase',
'default' => '#a56f58',
'samples' => ['#a56f58', '#bf8569', '#8d5f49', '#d3a17b'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'skinColor' => [
'label' => 'Haut',
'default' => '#e7ba9a',
'samples' => ['#f4d2ba', '#e7ba9a', '#c98f69', '#8a5638'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'backgroundColor' => [
'label' => 'Hintergrund',
'default' => '#f5efe5',
'samples' => ['#f5efe5', '#e9dfd1', '#d7e6ef', '#efe2d2'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
],
'example_profile' => [
'seed' => 'pkt-demo-lorelei',
'components' => [
'eyesVariant' => 'variant08',
'eyebrowsVariant' => 'variant04',
'mouthVariant' => 'happy06',
'glassesVariant' => 'variant02',
'hairVariant' => 'variant18',
'beardVariant' => 'variant01',
'earringsVariant' => '',
],
'colors' => [
'skinColor' => '#e7ba9a',
'hairColor' => '#4b3128',
'eyesColor' => '#2a2522',
'backgroundColor' => '#f5efe5',
],
],
],
'croodles' => [
'label' => 'Croodles',
'class' => \App\Avatar\Croodles::class,
'fixed_colors' => [],
'component_controls' => [
'headVariant',
'eyesVariant',
'noseVariant',
'mouthVariant',
'topVariant',
'beardVariant',
'mustacheVariant',
],
'color_controls' => [
'baseColor' => [
'label' => 'Basisfarbe',
'default' => '#e7ba9a',
'samples' => ['#f4d2ba', '#e7ba9a', '#c98f69', '#8a5638'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'eyepatchColor' => [
'label' => 'Augenklappe',
'default' => '#283341',
'samples' => ['#283341', '#1a222d', '#4a5a6f', '#77583f'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'glassesColor' => [
'label' => 'Brille',
'default' => '#283341',
'samples' => ['#283341', '#4a5a6f', '#1a222d', '#74614a'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'topColor' => [
'label' => 'Top-Farbe',
'default' => '#4f6ea8',
'samples' => ['#4f6ea8', '#6d8fc2', '#36507a', '#6f8c55'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
'backgroundColor' => [
'label' => 'Hintergrund',
'default' => '#f2eadf',
'samples' => ['#f2eadf', '#e6dccd', '#d9e8ef', '#efe0d0'],
'allow_custom' => true,
'allow_fill' => true,
'allow_fill_stops' => true,
'allow_angle' => true,
],
],
'example_profile' => [
'seed' => 'pkt-demo-croodles',
'components' => [
'headVariant' => 'variant03',
'eyesVariant' => 'variant06',
'noseVariant' => 'variant04',
'mouthVariant' => 'variant09',
'topVariant' => 'variant11',
'beardVariant' => 'variant02',
'mustacheVariant' => '',
],
'colors' => [
'baseColor' => '#e7ba9a',
'topColor' => '#4f6ea8',
'glassesColor' => '#283341',
'backgroundColor' => '#f2eadf',
],
],
],
],
];