mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: 调整红点颜色为primary,降低刺激性
This commit is contained in:
@@ -128,6 +128,11 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
|
|||||||
..._mainController.navigationBars.map((e) {
|
..._mainController.navigationBars.map((e) {
|
||||||
return NavigationDestination(
|
return NavigationDestination(
|
||||||
icon: Badge(
|
icon: Badge(
|
||||||
|
backgroundColor:
|
||||||
|
Theme.of(context).colorScheme.primary,
|
||||||
|
textColor: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.onInverseSurface,
|
||||||
label: Text(e['count'].toString()),
|
label: Text(e['count'].toString()),
|
||||||
padding: const EdgeInsets.fromLTRB(6, 0, 6, 0),
|
padding: const EdgeInsets.fromLTRB(6, 0, 6, 0),
|
||||||
isLabelVisible: e['count'] > 0,
|
isLabelVisible: e['count'] > 0,
|
||||||
@@ -149,6 +154,11 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
|
|||||||
..._mainController.navigationBars.map((e) {
|
..._mainController.navigationBars.map((e) {
|
||||||
return BottomNavigationBarItem(
|
return BottomNavigationBarItem(
|
||||||
icon: Badge(
|
icon: Badge(
|
||||||
|
backgroundColor:
|
||||||
|
Theme.of(context).colorScheme.primary,
|
||||||
|
textColor: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.onInverseSurface,
|
||||||
label: Text(e['count'].toString()),
|
label: Text(e['count'].toString()),
|
||||||
padding: const EdgeInsets.fromLTRB(6, 0, 6, 0),
|
padding: const EdgeInsets.fromLTRB(6, 0, 6, 0),
|
||||||
isLabelVisible: e['count'] > 0,
|
isLabelVisible: e['count'] > 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user