mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 15:53:00 +08:00
Merge pull request #4563 from grummbeer/desktop-remove-splash-radius
Remove splash for radio/switches on Desktop
This commit is contained in:
commit
3abc805b21
@ -183,7 +183,13 @@ class MyTheme {
|
||||
),
|
||||
);
|
||||
|
||||
static const SwitchThemeData switchTheme = SwitchThemeData(splashRadius: 0);
|
||||
static SwitchThemeData switchTheme() {
|
||||
return SwitchThemeData(splashRadius: isDesktop ? 0 : kRadialReactionRadius);
|
||||
}
|
||||
|
||||
static RadioThemeData radioTheme() {
|
||||
return RadioThemeData(splashRadius: isDesktop ? 0 : kRadialReactionRadius);
|
||||
}
|
||||
|
||||
// Checkbox
|
||||
static const CheckboxThemeData checkboxTheme = CheckboxThemeData(
|
||||
@ -309,7 +315,8 @@ class MyTheme {
|
||||
),
|
||||
),
|
||||
),
|
||||
switchTheme: switchTheme,
|
||||
switchTheme: switchTheme(),
|
||||
radioTheme: radioTheme(),
|
||||
checkboxTheme: checkboxTheme,
|
||||
listTileTheme: listTileTheme,
|
||||
menuBarTheme: MenuBarThemeData(
|
||||
@ -404,7 +411,8 @@ class MyTheme {
|
||||
),
|
||||
),
|
||||
),
|
||||
switchTheme: switchTheme,
|
||||
switchTheme: switchTheme(),
|
||||
radioTheme: radioTheme(),
|
||||
checkboxTheme: checkboxTheme,
|
||||
listTileTheme: listTileTheme,
|
||||
menuBarTheme: MenuBarThemeData(
|
||||
|
Loading…
Reference in New Issue
Block a user