package com.cottondb.story import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.font.FontFamily import com.cottondb.story.ink.Ink import com.cottondb.story.ink.InkCardLook import com.cottondb.story.ink.InkPalette import com.cottondb.story.ink.InkType import org.junit.After import org.junit.Assert.assertEquals import org.junit.Test /** * RULE: the shell's parts drawn in Story's look (Passkeys, Delete account, the sheets' ground) take the paper standing * now, not the one Story opened on. With Night chosen for a dark phone they stayed in the day's navy on the night ground, * all but invisible (the store pass, emulator-5602, 26 Nov 2026). */ class StoryCardLookPaperTest { private val night = InkPalette.of(mapOf("ground" to Color(0xFF0E1018), "sheet" to Color(0xFF15171F), "ink" to Color(0xFFE6E8F2), "accent" to Color(0xFF8EA2FF))) @After fun grey() { Ink.palette = InkPalette.grey } @Test fun the_look_made_on_grey_follows_a_change_to_night() { Ink.palette = InkPalette.grey val look = InkCardLook(InkType(FontFamily.Monospace, FontFamily.Monospace)) Ink.palette = night assertEquals(night.ink, look.ink) assertEquals(night.ink, look.danger) assertEquals(night.sheet, look.ground) assertEquals(night.blue, look.accent) } }