mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-12 10:56:11 +02:00
add global tooltip wait duration
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
parent
f502eb0ea5
commit
66b90c2a08
1 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue