mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
@@ -312,9 +312,14 @@ class _SearchPageState extends State<SearchPage> {
|
||||
child: IconButton(
|
||||
iconSize: 22,
|
||||
tooltip: enable ? '记录搜索' : '无痕搜索',
|
||||
icon: enable
|
||||
? historyIcon(theme)
|
||||
: historyIcon(theme).disable(),
|
||||
icon: DisabledIcon(
|
||||
disable: !enable,
|
||||
child: Icon(
|
||||
Icons.history,
|
||||
color: theme.colorScheme.onSurfaceVariant
|
||||
.withValues(alpha: 0.8),
|
||||
),
|
||||
),
|
||||
style: IconButton.styleFrom(
|
||||
padding: EdgeInsets.zero,
|
||||
),
|
||||
@@ -406,11 +411,6 @@ class _SearchPageState extends State<SearchPage> {
|
||||
),
|
||||
);
|
||||
|
||||
Icon historyIcon(ThemeData theme) => Icon(
|
||||
Icons.history,
|
||||
color: theme.colorScheme.onSurfaceVariant.withValues(alpha: 0.8),
|
||||
);
|
||||
|
||||
Widget _buildHotKey(
|
||||
LoadingState<SearchRcmdData> loadingState,
|
||||
bool isTrending,
|
||||
|
||||
Reference in New Issue
Block a user