diff --git a/lib/common_pages/online_music_agg_listview_page.dart b/lib/common_pages/online_music_agg_listview_page.dart index bf03b01..4035560 100644 --- a/lib/common_pages/online_music_agg_listview_page.dart +++ b/lib/common_pages/online_music_agg_listview_page.dart @@ -218,10 +218,6 @@ class OnlineMusicAggregatorListViewPageState Widget _buildMobile(BuildContext context, bool isDarkMode) { final Color backgroundColor = isDarkMode ? CupertinoColors.black : CupertinoColors.white; - final Color dividerColor = isDarkMode - ? const Color.fromARGB(255, 41, 41, 43) - : const Color.fromARGB(255, 245, 245, 246); - return CupertinoPageScaffold( backgroundColor: backgroundColor, child: Column( @@ -304,7 +300,7 @@ class OnlineMusicAggregatorListViewPageState musicAgg: musicAggregator, ), Divider( - color: dividerColor, + color: getDividerColor(isDarkMode), ) ], ), diff --git a/lib/mobile/pages/explore_page.dart b/lib/mobile/pages/explore_page.dart index 0b42ddf..60cd7b8 100644 --- a/lib/mobile/pages/explore_page.dart +++ b/lib/mobile/pages/explore_page.dart @@ -83,27 +83,28 @@ class MobileExplorePageState extends State { ).useSystemChineseFont(), ), ), - SizedBox(height: 0), - CupertinoSlidingSegmentedControl( - groupValue: _selectedSegment, - onValueChanged: (ExploreSegment? value) { - if (value != null) { - setState(() { - _selectedSegment = value; - }); - } - }, - children: { - ExploreSegment.musicChart: Text( - ExploreSegment.musicChart.displayName, - style: TextStyle(color: getTextColor(isDarkMode)) - .useSystemChineseFont()), - ExploreSegment.playlistTag: Text( - ExploreSegment.playlistTag.displayName, - style: TextStyle(color: getTextColor(isDarkMode)) - .useSystemChineseFont()), - }, - ), + Padding( + padding: EdgeInsets.symmetric(vertical: 10.0), + child: CupertinoSlidingSegmentedControl( + groupValue: _selectedSegment, + onValueChanged: (ExploreSegment? value) { + if (value != null) { + setState(() { + _selectedSegment = value; + }); + } + }, + children: { + ExploreSegment.musicChart: Text( + ExploreSegment.musicChart.displayName, + style: TextStyle(color: getTextColor(isDarkMode)) + .useSystemChineseFont()), + ExploreSegment.playlistTag: Text( + ExploreSegment.playlistTag.displayName, + style: TextStyle(color: getTextColor(isDarkMode)) + .useSystemChineseFont()), + }, + )), Expanded( child: isLoading ? Center(child: CupertinoActivityIndicator())