Skip to content

Commit 190dd9b

Browse files
committed
#29: Update the title bar background color to theme color
1 parent 9fe016f commit 190dd9b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/main.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,16 @@ class MyApp extends StatelessWidget {
140140
DragToMoveArea(
141141
child: Container(
142142
height: 32,
143-
color: Colors.grey.shade900, // Customize the color
143+
color: Theme
144+
.of(context)
145+
.appBarTheme
146+
.backgroundColor,
144147
child: WindowCaption(
145148
brightness: Brightness.light,
146-
backgroundColor: Colors.grey.shade700,
149+
backgroundColor: Theme
150+
.of(context)
151+
.appBarTheme
152+
.backgroundColor,
147153
),
148154
),
149155
);

0 commit comments

Comments
 (0)