From ae8827975adf4850c27582ad471fe8058fe7a574 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 9 Sep 2022 17:55:04 +0300 Subject: [PATCH] Fix server_storage_list_item.dart colors and text --- lib/ui/components/brand_divider/brand_divider.dart | 3 +-- lib/ui/pages/server_storage/server_storage_list_item.dart | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/ui/components/brand_divider/brand_divider.dart b/lib/ui/components/brand_divider/brand_divider.dart index 03e44653..646989a1 100644 --- a/lib/ui/components/brand_divider/brand_divider.dart +++ b/lib/ui/components/brand_divider/brand_divider.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:selfprivacy/config/brand_colors.dart'; class BrandDivider extends StatelessWidget { const BrandDivider({final super.key}); @@ -8,6 +7,6 @@ class BrandDivider extends StatelessWidget { Widget build(final BuildContext context) => Container( width: double.infinity, height: 1, - color: BrandColors.dividerColor, + color: Theme.of(context).colorScheme.onSurface.withAlpha(30), ); } diff --git a/lib/ui/pages/server_storage/server_storage_list_item.dart b/lib/ui/pages/server_storage/server_storage_list_item.dart index 4bb8d323..3aad19b2 100644 --- a/lib/ui/pages/server_storage/server_storage_list_item.dart +++ b/lib/ui/pages/server_storage/server_storage_list_item.dart @@ -28,10 +28,10 @@ class ServerStorageListItem extends StatelessWidget { return Row( children: [ if (showIcon) - const Icon( + Icon( Icons.storage_outlined, size: 24, - color: Colors.white, + color: Theme.of(context).colorScheme.onBackground, ), if (showIcon) const SizedBox(width: 16), Expanded( @@ -60,7 +60,7 @@ class ServerStorageListItem extends StatelessWidget { 'providers.storage.disk_total'.tr( args: [ volume.sizeTotal.toString(), - volume.name, + volume.displayName, ], ), style: subtitleStyle,