Skip to content

Commit

Permalink
fix: force Orange color everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
solsticedhiver committed Dec 30, 2023
1 parent 91f734e commit a007457
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/favorites.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ class FavoritesRoute extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.deepOrange,
foregroundColor: Colors.white,
title: const Text('Favorites'),
),
body: Consumer<Favorites>(
Expand Down
2 changes: 2 additions & 0 deletions lib/lastsong.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class LastSongListRoute extends StatelessWidget {
final recentTracks = cm.currentChannel.recentTracks;
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.deepOrange,
foregroundColor: Colors.white,
title: const Text('Recently played songs'),
),
body: Container(
Expand Down
10 changes: 9 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class MyApp extends StatelessWidget {
title: AppConfig.name,
theme: ThemeData(
//useMaterial3: true,
primarySwatch: Colors.deepOrange,
primaryColor: Colors.deepOrange,
primaryColorLight: Colors.deepOrange,
//primarySwatch: Colors.deepOrange,
),
home: Consumer<ChannelManager>(builder: (context, channel, child) {
return MyHomePage(
Expand Down Expand Up @@ -128,6 +130,8 @@ class MyHomePage extends StatelessWidget {
drawer:
MyDrawer(child: MyRadioExpansionPanelList(children: channelsByType)),
appBar: AppBar(
backgroundColor: Colors.deepOrange,
foregroundColor: Colors.white,
title: Text((MediaQuery.of(context).size.width < 700)
? title.replaceFirst(' played ', ' ').replaceFirst(' on ', ' - ')
: title),
Expand All @@ -153,6 +157,8 @@ class MyHomePage extends StatelessWidget {
});
}),
floatingActionButton: FloatingActionButton(
backgroundColor: Colors.deepOrange,
foregroundColor: Colors.white,
onPressed: () async {
int ret = await cm.fetchCurrentTrack(cancel: true, manual: true);
if (ret < 1) {
Expand Down Expand Up @@ -385,6 +391,8 @@ class MyBottomSheetWidget extends StatelessWidget {
TextButton(
style: TextButton.styleFrom(
textStyle: Theme.of(context).textTheme.labelLarge,
foregroundColor: Colors.white,
backgroundColor: Colors.deepOrange,
),
child: const Text('Dismiss'),
onPressed: () {
Expand Down

0 comments on commit a007457

Please sign in to comment.