|
@@ -22,7 +22,7 @@ class DocumentBanner extends StatelessWidget {
|
|
constraints: const BoxConstraints(minHeight: 60),
|
|
constraints: const BoxConstraints(minHeight: 60),
|
|
child: Container(
|
|
child: Container(
|
|
width: double.infinity,
|
|
width: double.infinity,
|
|
- color: colorScheme.error,
|
|
|
|
|
|
+ color: colorScheme.surfaceVariant,
|
|
child: FittedBox(
|
|
child: FittedBox(
|
|
alignment: Alignment.center,
|
|
alignment: Alignment.center,
|
|
fit: BoxFit.scaleDown,
|
|
fit: BoxFit.scaleDown,
|
|
@@ -30,7 +30,7 @@ class DocumentBanner extends StatelessWidget {
|
|
children: [
|
|
children: [
|
|
FlowyText.medium(
|
|
FlowyText.medium(
|
|
LocaleKeys.deletePagePrompt_text.tr(),
|
|
LocaleKeys.deletePagePrompt_text.tr(),
|
|
- color: colorScheme.onError,
|
|
|
|
|
|
+ color: colorScheme.tertiary,
|
|
fontSize: 14,
|
|
fontSize: 14,
|
|
),
|
|
),
|
|
const HSpace(20),
|
|
const HSpace(20),
|
|
@@ -39,13 +39,13 @@ class DocumentBanner extends StatelessWidget {
|
|
minHeight: 40,
|
|
minHeight: 40,
|
|
contentPadding: EdgeInsets.zero,
|
|
contentPadding: EdgeInsets.zero,
|
|
bgColor: Colors.transparent,
|
|
bgColor: Colors.transparent,
|
|
- highlightColor: Theme.of(context).colorScheme.primaryContainer,
|
|
|
|
- outlineColor: colorScheme.onError,
|
|
|
|
|
|
+ highlightColor: Theme.of(context).colorScheme.onErrorContainer,
|
|
|
|
+ outlineColor: colorScheme.tertiaryContainer,
|
|
borderRadius: Corners.s8Border,
|
|
borderRadius: Corners.s8Border,
|
|
onPressed: onRestore,
|
|
onPressed: onRestore,
|
|
child: FlowyText.medium(
|
|
child: FlowyText.medium(
|
|
LocaleKeys.deletePagePrompt_restore.tr(),
|
|
LocaleKeys.deletePagePrompt_restore.tr(),
|
|
- color: colorScheme.onError,
|
|
|
|
|
|
+ color: colorScheme.tertiary,
|
|
fontSize: 13,
|
|
fontSize: 13,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -55,13 +55,13 @@ class DocumentBanner extends StatelessWidget {
|
|
minHeight: 40,
|
|
minHeight: 40,
|
|
contentPadding: EdgeInsets.zero,
|
|
contentPadding: EdgeInsets.zero,
|
|
bgColor: Colors.transparent,
|
|
bgColor: Colors.transparent,
|
|
- highlightColor: Theme.of(context).colorScheme.primary,
|
|
|
|
- outlineColor: colorScheme.onError,
|
|
|
|
|
|
+ highlightColor: Theme.of(context).colorScheme.error,
|
|
|
|
+ outlineColor: colorScheme.tertiaryContainer,
|
|
borderRadius: Corners.s8Border,
|
|
borderRadius: Corners.s8Border,
|
|
onPressed: onDelete,
|
|
onPressed: onDelete,
|
|
child: FlowyText.medium(
|
|
child: FlowyText.medium(
|
|
LocaleKeys.deletePagePrompt_deletePermanent.tr(),
|
|
LocaleKeys.deletePagePrompt_deletePermanent.tr(),
|
|
- color: colorScheme.onError,
|
|
|
|
|
|
+ color: colorScheme.tertiary,
|
|
fontSize: 13,
|
|
fontSize: 13,
|
|
),
|
|
),
|
|
),
|
|
),
|