opt cm chat icon style
This commit is contained in:
parent
64d11a9dda
commit
e759b62f5d
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_hbb/common.dart';
|
import 'package:flutter_hbb/common.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
import '../../consts.dart';
|
||||||
import '../../desktop/widgets/tabbar_widget.dart';
|
import '../../desktop/widgets/tabbar_widget.dart';
|
||||||
import '../../models/chat_model.dart';
|
import '../../models/chat_model.dart';
|
||||||
import '../../models/model.dart';
|
import '../../models/model.dart';
|
||||||
@ -173,17 +174,17 @@ class DraggableMobileActions extends StatelessWidget {
|
|||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
onPressed: onBackPressed,
|
onPressed: onBackPressed,
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.arrow_back)),
|
icon: const Icon(Icons.arrow_back)),
|
||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
onPressed: onHomePressed,
|
onPressed: onHomePressed,
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.home)),
|
icon: const Icon(Icons.home)),
|
||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
onPressed: onRecentPressed,
|
onPressed: onRecentPressed,
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.more_horiz)),
|
icon: const Icon(Icons.more_horiz)),
|
||||||
const VerticalDivider(
|
const VerticalDivider(
|
||||||
width: 0,
|
width: 0,
|
||||||
@ -194,7 +195,7 @@ class DraggableMobileActions extends StatelessWidget {
|
|||||||
IconButton(
|
IconButton(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
onPressed: onHidePressed,
|
onPressed: onHidePressed,
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.keyboard_arrow_down)),
|
icon: const Icon(Icons.keyboard_arrow_down)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -37,6 +37,7 @@ const Size kConnectionManagerWindowSize = Size(300, 400);
|
|||||||
// Tabbar transition duration, now we remove the duration
|
// Tabbar transition duration, now we remove the duration
|
||||||
const Duration kTabTransitionDuration = Duration.zero;
|
const Duration kTabTransitionDuration = Duration.zero;
|
||||||
const double kEmptyMarginTop = 50;
|
const double kEmptyMarginTop = 50;
|
||||||
|
const double kDesktopIconButtonSplashRadius = 20;
|
||||||
|
|
||||||
/// [kDefaultScrollAmountMultiplier] indicates how many rows can be scrolled after a minimum scroll action of mouse
|
/// [kDefaultScrollAmountMultiplier] indicates how many rows can be scrolled after a minimum scroll action of mouse
|
||||||
const kDefaultScrollAmountMultiplier = 5.0;
|
const kDefaultScrollAmountMultiplier = 5.0;
|
||||||
|
@ -175,7 +175,7 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
},
|
},
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
icon: const Icon(Icons.more_vert),
|
icon: const Icon(Icons.more_vert),
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
onPressed: () => mod_menu.showMenu(
|
onPressed: () => mod_menu.showMenu(
|
||||||
context: context,
|
context: context,
|
||||||
position: menuPos,
|
position: menuPos,
|
||||||
@ -482,12 +482,12 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
model.resumeJob(item.id);
|
model.resumeJob(item.id);
|
||||||
},
|
},
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.restart_alt_rounded)),
|
icon: const Icon(Icons.restart_alt_rounded)),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.delete_forever_outlined),
|
icon: const Icon(Icons.delete_forever_outlined),
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
model.jobTable.removeAt(index);
|
model.jobTable.removeAt(index);
|
||||||
model.cancelJob(item.id);
|
model.cancelJob(item.id);
|
||||||
@ -556,7 +556,7 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
children: [
|
children: [
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.arrow_back),
|
icon: const Icon(Icons.arrow_back),
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
selectedItems.clear();
|
selectedItems.clear();
|
||||||
model.goBack(isLocal: isLocal);
|
model.goBack(isLocal: isLocal);
|
||||||
@ -564,7 +564,7 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.arrow_upward),
|
icon: const Icon(Icons.arrow_upward),
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
selectedItems.clear();
|
selectedItems.clear();
|
||||||
model.goToParentDirectory(isLocal: isLocal);
|
model.goToParentDirectory(isLocal: isLocal);
|
||||||
@ -614,13 +614,13 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
Future.delayed(
|
Future.delayed(
|
||||||
Duration.zero, () => focusNode.requestFocus());
|
Duration.zero, () => focusNode.requestFocus());
|
||||||
},
|
},
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: Icon(Icons.search));
|
icon: Icon(Icons.search));
|
||||||
case LocationStatus.pathLocation:
|
case LocationStatus.pathLocation:
|
||||||
return IconButton(
|
return IconButton(
|
||||||
color: Theme.of(context).disabledColor,
|
color: Theme.of(context).disabledColor,
|
||||||
onPressed: null,
|
onPressed: null,
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: Icon(Icons.close));
|
icon: Icon(Icons.close));
|
||||||
case LocationStatus.fileSearchBar:
|
case LocationStatus.fileSearchBar:
|
||||||
return IconButton(
|
return IconButton(
|
||||||
@ -638,7 +638,7 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
breadCrumbScrollToEnd(isLocal);
|
breadCrumbScrollToEnd(isLocal);
|
||||||
model.refresh(isLocal: isLocal);
|
model.refresh(isLocal: isLocal);
|
||||||
},
|
},
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.refresh)),
|
icon: const Icon(Icons.refresh)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -655,7 +655,7 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
model.goHome(isLocal: isLocal);
|
model.goHome(isLocal: isLocal);
|
||||||
},
|
},
|
||||||
icon: const Icon(Icons.home_outlined),
|
icon: const Icon(Icons.home_outlined),
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
@ -704,7 +704,7 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.create_new_folder_outlined)),
|
icon: const Icon(Icons.create_new_folder_outlined)),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: validItems(selectedItems)
|
onPressed: validItems(selectedItems)
|
||||||
@ -714,7 +714,7 @@ class _FileManagerPageState extends State<FileManagerPage>
|
|||||||
selectedItems.clear();
|
selectedItems.clear();
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
splashRadius: 20,
|
splashRadius: kDesktopIconButtonSplashRadius,
|
||||||
icon: const Icon(Icons.delete_forever_outlined)),
|
icon: const Icon(Icons.delete_forever_outlined)),
|
||||||
menu(isLocal: isLocal),
|
menu(isLocal: isLocal),
|
||||||
],
|
],
|
||||||
|
@ -334,10 +334,10 @@ class _CmHeaderState extends State<_CmHeader>
|
|||||||
Offstage(
|
Offstage(
|
||||||
offstage: !client.authorized || client.isFileTransfer,
|
offstage: !client.authorized || client.isFileTransfer,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
onPressed: () => checkClickTime(
|
onPressed: () => checkClickTime(
|
||||||
client.id, () => gFFI.chatModel.toggleCMChatPage(client.id)),
|
client.id, () => gFFI.chatModel.toggleCMChatPage(client.id)),
|
||||||
icon: Icon(Icons.message_outlined),
|
icon: Icon(Icons.message_outlined),
|
||||||
),
|
splashRadius: kDesktopIconButtonSplashRadius),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user