Merge pull request #5334 from sahilyeole/master

Improve tooltip consistency
This commit is contained in:
RustDesk
2023-08-11 08:07:49 +08:00
committed by GitHub
2 changed files with 33 additions and 17 deletions

View File

@@ -219,6 +219,13 @@ class MyTheme {
),
);
//tooltip
static TooltipThemeData tooltipTheme() {
return TooltipThemeData(
waitDuration: Duration(seconds: 1, milliseconds: 500),
);
}
// Dialogs
static const double dialogPadding = 24;
@@ -288,6 +295,7 @@ class MyTheme {
tabBarTheme: const TabBarTheme(
labelColor: Colors.black87,
),
tooltipTheme: tooltipTheme(),
splashColor: isDesktop ? Colors.transparent : null,
highlightColor: isDesktop ? Colors.transparent : null,
splashFactory: isDesktop ? NoSplash.splashFactory : null,
@@ -377,6 +385,7 @@ class MyTheme {
scrollbarTheme: ScrollbarThemeData(
thumbColor: MaterialStateProperty.all(Colors.grey[500]),
),
tooltipTheme: tooltipTheme(),
splashColor: isDesktop ? Colors.transparent : null,
highlightColor: isDesktop ? Colors.transparent : null,
splashFactory: isDesktop ? NoSplash.splashFactory : null,