[pve-devel] applied: [PATCH pve-flutter-frontend] fix text selection theme

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Sep 12 17:07:06 CEST 2022


Am 12/09/2022 um 11:24 schrieb Dominik Csapak:
> by default, flutter derives the text selection theme from the global
> MaterialApp defined themes primary color, which is problematic in our
> case, since we often have the same primary color as background for text
> fields. This resulted in the cursorColor/selectionHandleColor to be the
> same as the background, making them invisible.
> 
> Fix it by creating a manual textSelectionTheme with colors that properly
> contrast the background. (The color works well for both light and dark mode)
> 
> The selectionHandleColor is modifed with an opacity of 0.4 like flutter
> does by default.
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  lib/main.dart | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
>

applied, thanks!





More information about the pve-devel mailing list