change background color of file info

This commit is contained in:
ashilkn 2022-11-08 14:57:39 +05:30
parent a89fa3c11e
commit 8e33c0fff9
3 changed files with 6 additions and 1 deletions

View file

@ -12,6 +12,7 @@ class TitleBarWidget extends StatelessWidget {
final bool isTitleH2WithoutLeading;
final bool isFlexibleSpaceDisabled;
final bool isOnTopOfScreen;
final Color? backgroundColor;
const TitleBarWidget({
this.leading,
this.title,
@ -22,6 +23,7 @@ class TitleBarWidget extends StatelessWidget {
this.isTitleH2WithoutLeading = false,
this.isFlexibleSpaceDisabled = false,
this.isOnTopOfScreen = true,
this.backgroundColor,
super.key,
});
@ -31,6 +33,7 @@ class TitleBarWidget extends StatelessWidget {
final textTheme = getEnteTextTheme(context);
final colorTheme = getEnteColorScheme(context);
return SliverAppBar(
backgroundColor: backgroundColor,
primary: isOnTopOfScreen ? true : false,
toolbarHeight: toolbarHeight,
leadingWidth: 48,

View file

@ -283,7 +283,7 @@ class FadingBottomBarState extends State<FadingBottomBar> {
return showBarModalBottomSheet(
topControl: const SizedBox.shrink(),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(0)),
backgroundColor: colorScheme.backgroundBase,
backgroundColor: colorScheme.backgroundElevated,
barrierColor: backdropMutedDark,
context: context,
builder: (BuildContext context) {

View file

@ -9,6 +9,7 @@ import 'package:photos/db/files_db.dart';
import "package:photos/ente_theme_data.dart";
import "package:photos/models/file.dart";
import "package:photos/models/file_type.dart";
import 'package:photos/theme/ente_theme.dart';
import 'package:photos/ui/components/divider_widget.dart';
import 'package:photos/ui/components/icon_button_widget.dart';
import 'package:photos/ui/components/title_bar_widget.dart';
@ -274,6 +275,7 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
isFlexibleSpaceDisabled: true,
title: "Details",
isOnTopOfScreen: false,
backgroundColor: getEnteColorScheme(context).backgroundElevated,
leading: IconButtonWidget(
icon: Icons.close_outlined,
iconButtonType: IconButtonType.primary,