Fix server_storage_list_item.dart colors and text

pull/116/head
Inex Code 2022-09-09 17:55:04 +03:00
parent e4bb35d5d8
commit ae8827975a
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:selfprivacy/config/brand_colors.dart';
class BrandDivider extends StatelessWidget { class BrandDivider extends StatelessWidget {
const BrandDivider({final super.key}); const BrandDivider({final super.key});
@ -8,6 +7,6 @@ class BrandDivider extends StatelessWidget {
Widget build(final BuildContext context) => Container( Widget build(final BuildContext context) => Container(
width: double.infinity, width: double.infinity,
height: 1, height: 1,
color: BrandColors.dividerColor, color: Theme.of(context).colorScheme.onSurface.withAlpha(30),
); );
} }

View File

@ -28,10 +28,10 @@ class ServerStorageListItem extends StatelessWidget {
return Row( return Row(
children: [ children: [
if (showIcon) if (showIcon)
const Icon( Icon(
Icons.storage_outlined, Icons.storage_outlined,
size: 24, size: 24,
color: Colors.white, color: Theme.of(context).colorScheme.onBackground,
), ),
if (showIcon) const SizedBox(width: 16), if (showIcon) const SizedBox(width: 16),
Expanded( Expanded(
@ -60,7 +60,7 @@ class ServerStorageListItem extends StatelessWidget {
'providers.storage.disk_total'.tr( 'providers.storage.disk_total'.tr(
args: [ args: [
volume.sizeTotal.toString(), volume.sizeTotal.toString(),
volume.name, volume.displayName,
], ],
), ),
style: subtitleStyle, style: subtitleStyle,