Clarify photo matte color config

This commit is contained in:
Sam Becker 2025-05-23 17:15:54 -05:00
parent 87915875c7
commit 2888fd9318
2 changed files with 14 additions and 0 deletions

View File

@ -74,6 +74,7 @@ export default function AdminAppConfigurationClient({
hasDefaultTheme,
defaultTheme,
arePhotosMatted,
arePhotoMatteColorsConfigured,
matteColor,
matteColorDark,
// Display
@ -521,6 +522,16 @@ export default function AdminAppConfigurationClient({
of each photo, and display a surrounding border:
<div className="pt-1 flex flex-col gap-1">
<EnvVar variable="NEXT_PUBLIC_MATTE_PHOTOS" />
</div>
</ChecklistRow>
<ChecklistRow
title="Custom photo matting colors"
status={arePhotoMatteColorsConfigured}
optional
>
Set environment variable hex values (e.g., #cccccc)
to override matte colors:
<div className="pt-1 flex flex-col gap-1">
<EnvVar
variable="NEXT_PUBLIC_MATTE_COLOR"
accessory={matteColor && <span

View File

@ -381,6 +381,9 @@ export const APP_CONFIGURATION = {
hasDefaultTheme: Boolean(process.env.NEXT_PUBLIC_DEFAULT_THEME),
defaultTheme: DEFAULT_THEME,
arePhotosMatted: MATTE_PHOTOS,
arePhotoMatteColorsConfigured:
Boolean(MATTE_COLOR) ||
Boolean(MATTE_COLOR_DARK),
matteColor: MATTE_COLOR,
matteColorDark: MATTE_COLOR_DARK,
// Display