mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
Fix server_storage_list_item.dart colors and text
This commit is contained in:
parent
e4bb35d5d8
commit
ae8827975a
|
@ -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),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue