瀏覽代碼

Update background color for settings item on light mode

vishnukvmd 2 年之前
父節點
當前提交
97a1f4ec2d
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      lib/ui/components/expandable_menu_item_widget.dart

+ 5 - 3
lib/ui/components/expandable_menu_item_widget.dart

@@ -40,13 +40,15 @@ class _ExpandableMenuItemWidgetState extends State<ExpandableMenuItemWidget> {
   @override
   Widget build(BuildContext context) {
     final enteColorScheme = Theme.of(context).colorScheme.enteTheme.colorScheme;
+    final backgroundColor =
+        MediaQuery.of(context).platformBrightness == Brightness.light
+            ? enteColorScheme.backgroundElevated2
+            : enteColorScheme.backgroundElevated;
     return AnimatedContainer(
       curve: Curves.ease,
       duration: const Duration(milliseconds: 200),
       decoration: BoxDecoration(
-        color: expandableController.value
-            ? enteColorScheme.backgroundElevated
-            : null,
+        color: expandableController.value ? backgroundColor : null,
         borderRadius: BorderRadius.circular(4),
       ),
       child: ExpandableNotifier(