feat: adds compatibility with TRMNL Design Framework v2

This commit is contained in:
Benjamin Nussbaum 2025-09-14 18:57:17 +02:00
parent f20977a822
commit 12c82e02d7
7 changed files with 27 additions and 12 deletions

View file

@ -24,4 +24,13 @@ final class DeviceModel extends Model
'offset_y' => 'integer',
'published_at' => 'datetime',
];
public function getColorDepthAttribute(): ?string
{
if (! $this->bit_depth){
return null;
}
return $this->bit_depth . 'bit';
}
}