mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-25 06:05:47 +00:00
fix: update locked page button background color (#7470)
This commit is contained in:
parent
884586f0af
commit
fc0fb0b3d3
@ -400,7 +400,7 @@ class LockedPageStatus extends StatelessWidget {
|
||||
side: BorderSide(color: color),
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
),
|
||||
color: Colors.white.withValues(alpha: 0.75),
|
||||
color: context.lockedPageButtonBackground,
|
||||
),
|
||||
child: FlowyButton(
|
||||
useIntrinsicWidth: true,
|
||||
@ -440,7 +440,7 @@ class ReLockedPageStatus extends StatelessWidget {
|
||||
side: BorderSide(color: iconColor),
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
),
|
||||
color: Colors.white.withValues(alpha: 0.75),
|
||||
color: context.lockedPageButtonBackground,
|
||||
),
|
||||
child: FlowyButton(
|
||||
useIntrinsicWidth: true,
|
||||
@ -465,3 +465,12 @@ class ReLockedPageStatus extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
extension on BuildContext {
|
||||
Color get lockedPageButtonBackground {
|
||||
if (Theme.of(this).brightness == Brightness.light) {
|
||||
return Colors.white.withValues(alpha: 0.75);
|
||||
}
|
||||
return Color(0xB21B1A22);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user