mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: restore page banner ui improvement (#3604)
This commit is contained in:
parent
78d8ec9a3e
commit
e9852a3934
@ -22,7 +22,7 @@ class DocumentBanner extends StatelessWidget {
|
||||
constraints: const BoxConstraints(minHeight: 60),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
color: colorScheme.error,
|
||||
color: colorScheme.surfaceVariant,
|
||||
child: FittedBox(
|
||||
alignment: Alignment.center,
|
||||
fit: BoxFit.scaleDown,
|
||||
@ -30,7 +30,7 @@ class DocumentBanner extends StatelessWidget {
|
||||
children: [
|
||||
FlowyText.medium(
|
||||
LocaleKeys.deletePagePrompt_text.tr(),
|
||||
color: colorScheme.onError,
|
||||
color: colorScheme.tertiary,
|
||||
fontSize: 14,
|
||||
),
|
||||
const HSpace(20),
|
||||
@ -39,13 +39,13 @@ class DocumentBanner extends StatelessWidget {
|
||||
minHeight: 40,
|
||||
contentPadding: EdgeInsets.zero,
|
||||
bgColor: Colors.transparent,
|
||||
highlightColor: Theme.of(context).colorScheme.primaryContainer,
|
||||
outlineColor: colorScheme.onError,
|
||||
highlightColor: Theme.of(context).colorScheme.onErrorContainer,
|
||||
outlineColor: colorScheme.tertiaryContainer,
|
||||
borderRadius: Corners.s8Border,
|
||||
onPressed: onRestore,
|
||||
child: FlowyText.medium(
|
||||
LocaleKeys.deletePagePrompt_restore.tr(),
|
||||
color: colorScheme.onError,
|
||||
color: colorScheme.tertiary,
|
||||
fontSize: 13,
|
||||
),
|
||||
),
|
||||
@ -55,13 +55,13 @@ class DocumentBanner extends StatelessWidget {
|
||||
minHeight: 40,
|
||||
contentPadding: EdgeInsets.zero,
|
||||
bgColor: Colors.transparent,
|
||||
highlightColor: Theme.of(context).colorScheme.primary,
|
||||
outlineColor: colorScheme.onError,
|
||||
highlightColor: Theme.of(context).colorScheme.error,
|
||||
outlineColor: colorScheme.tertiaryContainer,
|
||||
borderRadius: Corners.s8Border,
|
||||
onPressed: onDelete,
|
||||
child: FlowyText.medium(
|
||||
LocaleKeys.deletePagePrompt_deletePermanent.tr(),
|
||||
color: colorScheme.onError,
|
||||
color: colorScheme.tertiary,
|
||||
fontSize: 13,
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user