Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: update locked page button background color (#7470)
Lucasfc0fb0b3d357
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dartindex 87452d560e..04ae9b30ad 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dart@@ -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);+ }+}