From 71caa1c0178ae47b640e66e05ab002c92ad3f210 Mon Sep 17 00:00:00 2001 From: Gold872 Date: Wed, 27 Sep 2023 17:22:51 -0400 Subject: [PATCH] Show hover effect when hovering over window buttons --- lib/widgets/custom_appbar.dart | 51 ++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/lib/widgets/custom_appbar.dart b/lib/widgets/custom_appbar.dart index ab08947c..d63d85c8 100644 --- a/lib/widgets/custom_appbar.dart +++ b/lib/widgets/custom_appbar.dart @@ -25,29 +25,38 @@ class CustomAppBar extends AppBar { leadingWidth: 460, centerTitle: true, actions: [ - DecoratedMinimizeButton( - type: buttonType, - onPressed: () async => await windowManager.minimize(), + InkWell( + onTap: () {}, + child: DecoratedMinimizeButton( + type: buttonType, + onPressed: () async => await windowManager.minimize(), + ), ), - DecoratedMaximizeButton( - type: buttonType, - onPressed: () async { - if (await windowManager.isMaximized()) { - windowManager.unmaximize(); - } else { - windowManager.maximize(); - } - }, + InkWell( + onTap: () {}, + child: DecoratedMaximizeButton( + type: buttonType, + onPressed: () async { + if (await windowManager.isMaximized()) { + windowManager.unmaximize(); + } else { + windowManager.maximize(); + } + }, + ), ), - DecoratedCloseButton( - type: buttonType, - onPressed: () async { - if (onWindowClose == null) { - await windowManager.close(); - } else { - onWindowClose.call(); - } - }, + InkWell( + onTap: () {}, + child: DecoratedCloseButton( + type: buttonType, + onPressed: () async { + if (onWindowClose == null) { + await windowManager.close(); + } else { + onWindowClose.call(); + } + }, + ), ), ], title: _WindowDragArea(