mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 18:02:48 +08:00
add more peer_tab_page tooltips
Signed-off-by: sahilyeole <sahilyeole93@gmail.com>
This commit is contained in:
parent
85c149d8e4
commit
d18250d1e7
@ -121,10 +121,13 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
: BoxDecoration(
|
: BoxDecoration(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.background,
|
||||||
borderRadius: BorderRadius.circular(6)),
|
borderRadius: BorderRadius.circular(6)),
|
||||||
child: Icon(
|
child: Tooltip(
|
||||||
Icons.tag_rounded,
|
message: translate('Toggle Tags'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
))),
|
Icons.tag_rounded,
|
||||||
|
size: 18,
|
||||||
|
))
|
||||||
|
)),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await bind.mainSetLocalOption(
|
await bind.mainSetLocalOption(
|
||||||
key: "hideAbTagsPanel",
|
key: "hideAbTagsPanel",
|
||||||
@ -217,11 +220,14 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
},
|
},
|
||||||
child: RotatedBox(
|
child: RotatedBox(
|
||||||
quarterTurns: 2,
|
quarterTurns: 2,
|
||||||
child: Icon(
|
child: Tooltip(
|
||||||
Icons.refresh,
|
message: translate('Refresh'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
color: textColor,
|
Icons.refresh,
|
||||||
))),
|
size: 18,
|
||||||
|
color: textColor,
|
||||||
|
))
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -248,14 +254,18 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
k: 'peer-card-ui-type', v: type.index.toString());
|
k: 'peer-card-ui-type', v: type.index.toString());
|
||||||
peerCardUiType.value = type;
|
peerCardUiType.value = type;
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Tooltip(
|
||||||
peerCardUiType.value == PeerUiType.grid
|
message: peerCardUiType.value == PeerUiType.grid
|
||||||
? Icons.view_list_rounded
|
? translate('List View')
|
||||||
: Icons.grid_view_rounded,
|
: translate('Grid View'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
color: textColor,
|
peerCardUiType.value == PeerUiType.grid
|
||||||
)),
|
? Icons.view_list_rounded
|
||||||
),
|
: Icons.grid_view_rounded,
|
||||||
|
size: 18,
|
||||||
|
color: textColor,
|
||||||
|
))
|
||||||
|
)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,11 +279,13 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
model.setMultiSelectionMode(true);
|
model.setMultiSelectionMode(true);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Tooltip(
|
||||||
IconFont.checkbox,
|
message: translate('Select'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
color: textColor,
|
IconFont.checkbox,
|
||||||
),
|
size: 18,
|
||||||
|
color: textColor,
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -466,10 +478,13 @@ class _PeerSearchBarState extends State<PeerSearchBar> {
|
|||||||
drawer = true;
|
drawer = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Tooltip(
|
||||||
Icons.search_rounded,
|
message: translate('Search'),
|
||||||
color: Theme.of(context).hintColor,
|
child: Icon(
|
||||||
));
|
Icons.search_rounded,
|
||||||
|
color: Theme.of(context).hintColor,
|
||||||
|
))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildSearchBar() {
|
Widget _buildSearchBar() {
|
||||||
@ -537,10 +552,14 @@ class _PeerSearchBarState extends State<PeerSearchBar> {
|
|||||||
drawer = false;
|
drawer = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Tooltip(
|
||||||
Icons.close,
|
message: translate('Close'),
|
||||||
color: Theme.of(context).hintColor,
|
child:
|
||||||
|
Icon(
|
||||||
|
Icons.close,
|
||||||
|
color: Theme.of(context).hintColor,
|
||||||
)),
|
)),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -604,10 +623,12 @@ class _PeerSortDropdownState extends State<PeerSortDropdown> {
|
|||||||
|
|
||||||
var menuPos = RelativeRect.fromLTRB(0, 0, 0, 0);
|
var menuPos = RelativeRect.fromLTRB(0, 0, 0, 0);
|
||||||
return InkWell(
|
return InkWell(
|
||||||
child: Icon(
|
child: Tooltip(
|
||||||
Icons.sort_rounded,
|
message: translate('Sort By'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
),
|
Icons.sort_rounded,
|
||||||
|
size: 18,
|
||||||
|
)),
|
||||||
onTapDown: (details) {
|
onTapDown: (details) {
|
||||||
final x = details.globalPosition.dx;
|
final x = details.globalPosition.dx;
|
||||||
final y = details.globalPosition.dy;
|
final y = details.globalPosition.dy;
|
||||||
|
Loading…
Reference in New Issue
Block a user