[pve-devel] [PATCH pve_flutter_frontend] ui: replace deprecated `onBackground` property

Shan Shaji s.shaji at proxmox.com
Tue May 27 14:28:44 CEST 2025


Ping

On Mon May 5, 2025 at 4:33 PM CEST, Shan Shaji wrote:
> As of flutter v3.22, the `onBackground` property is deprecated. The
> material guidelines suggest using the `onSurface` property instead.
>
> https://m3.material.io/styles/color/roles#8562cf18-5cc0-44ae-b783-2e38bdb39585
>
> For dark theme, the `onSurface` color and `onBackground` color is
> different so it's not possible to directly replace the `onBackground`
> with the `onSurface` property. This patch adds a new `onSurfaceVariant`
> property to the theme and replaces all instances of `onBackground`
> with `onSurfaceVariant`.





More information about the pve-devel mailing list