mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 00:13:01 +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
|
// Checkbox
|
||||||
static const CheckboxThemeData checkboxTheme = CheckboxThemeData(
|
static const CheckboxThemeData checkboxTheme = CheckboxThemeData(
|
||||||
@ -309,7 +315,8 @@ class MyTheme {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
switchTheme: switchTheme,
|
switchTheme: switchTheme(),
|
||||||
|
radioTheme: radioTheme(),
|
||||||
checkboxTheme: checkboxTheme,
|
checkboxTheme: checkboxTheme,
|
||||||
listTileTheme: listTileTheme,
|
listTileTheme: listTileTheme,
|
||||||
menuBarTheme: MenuBarThemeData(
|
menuBarTheme: MenuBarThemeData(
|
||||||
@ -404,7 +411,8 @@ class MyTheme {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
switchTheme: switchTheme,
|
switchTheme: switchTheme(),
|
||||||
|
radioTheme: radioTheme(),
|
||||||
checkboxTheme: checkboxTheme,
|
checkboxTheme: checkboxTheme,
|
||||||
listTileTheme: listTileTheme,
|
listTileTheme: listTileTheme,
|
||||||
menuBarTheme: MenuBarThemeData(
|
menuBarTheme: MenuBarThemeData(
|
||||||
|
Loading…
Reference in New Issue
Block a user