Skip to content

Commit

Permalink
Tweak navigation indicator appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Dec 3, 2024
1 parent 9d5b8b7 commit 5063cc7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 10 additions & 4 deletions app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ final darkColorScheme = ColorScheme.fromSeed(
final _lightTheme = ThemeData(
colorScheme: lightColorScheme,
useMaterial3: true,
navigationBarTheme:
NavigationBarThemeData(backgroundColor: lightColorScheme.surface),
navigationBarTheme: const NavigationBarThemeData(
backgroundColor: Colors.transparent,
indicatorColor: Colors.transparent),
navigationRailTheme:
const NavigationRailThemeData(indicatorColor: Colors.transparent),
bottomSheetTheme:
BottomSheetThemeData(backgroundColor: lightColorScheme.surface),
chipTheme: ChipThemeData(
Expand All @@ -37,8 +40,11 @@ final _lightTheme = ThemeData(
final _darkTheme = ThemeData(
colorScheme: darkColorScheme,
useMaterial3: true,
navigationBarTheme:
NavigationBarThemeData(backgroundColor: darkColorScheme.surface),
navigationBarTheme: const NavigationBarThemeData(
backgroundColor: Colors.transparent,
indicatorColor: Colors.transparent),
navigationRailTheme:
const NavigationRailThemeData(indicatorColor: Colors.transparent),
bottomSheetTheme:
BottomSheetThemeData(backgroundColor: darkColorScheme.surface),
chipTheme: ChipThemeData(
Expand Down
8 changes: 4 additions & 4 deletions app/lib/navigation/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class Destination {
}

const List<Destination> destinations = <Destination>[
Destination('Torrents', Icon(Icons.electric_bolt, size: 28),
Icon(Icons.electric_bolt, size: 28)),
Destination('Torrents', Icon(Icons.electric_bolt, size: 32),
Icon(Icons.electric_bolt, size: 32, color: Colors.yellow)),
// Destination('Search', Icon(Icons.search_outlined), Icon(Icons.search)),
Destination('Settings', Icon(Icons.settings, size: 28),
Icon(Icons.settings, size: 28)),
Destination('Settings', Icon(Icons.settings, size: 32),
Icon(Icons.settings, size: 32, color: Colors.yellow)),
// Destination(
// 'About', Icon(Icons.question_mark_outlined), Icon(Icons.question_mark)),
];
Expand Down

0 comments on commit 5063cc7

Please sign in to comment.