Skip to content

feat(wallet-card): upgrade watermark pattern from square to diamond layout - #155

Merged
Gaubee merged 3 commits into
mainfrom
feat/diamond-watermark
Jan 4, 2026
Merged

Gaubee merged 3 commits into
mainfrom
feat/diamond-watermark

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

Summary

将钱包卡片的水印排布从正方形网格升级为菱形网格。

Changes

修改 ensureWatermarkCache 函数:

  • 原来:创建 1x1 的 tile,图标居中
  • 现在:创建 2x2 的 tile,图标在对角位置 (0,0) 和 (1,1)

当 tile 重复时:

原来(正方形):     现在(菱形):
●  ●  ●  ●         ●     ●     ●
●  ●  ●  ●            ●     ●
●  ●  ●  ●         ●     ●     ●
●  ●  ●  ●            ●     ●

Visual Effect

菱形排布让水印看起来更加自然,类似于砖块或蜂窝状的排列。

@Gaubee
Gaubee force-pushed the feat/diamond-watermark branch from bd58bd1 to b8451d6 Compare January 4, 2026 07:39
Gaubee added 3 commits January 4, 2026 15:42
…ayout

- Create 2x2 tile with icons at diagonal positions (0,0) and (1,1)
- When repeated, forms a diamond/brick pattern instead of square grid
- Same icon size, denser pattern due to offset rows
Double the logicalSpacing (2 -> 4) for the 2x2 tile to keep the same
icon density as before the diamond pattern change.
- Spacing 3 gives moderate density (between 2 and 4)
- Doesn't align with texture layer (spacing 1), reducing visual repetition
@Gaubee
Gaubee force-pushed the feat/diamond-watermark branch from b8451d6 to e672d37 Compare January 4, 2026 07:42
@Gaubee
Gaubee merged commit 8634a5c into main Jan 4, 2026
5 checks passed
@Gaubee
Gaubee deleted the feat/diamond-watermark branch January 4, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant