add more desktop_home_page tooltips

Signed-off-by: sahilyeole <sahilyeole93@gmail.com>
This commit is contained in:
sahilyeole 2023-08-12 12:52:15 +05:30
parent d18250d1e7
commit f722c6f684

View File

@ -185,11 +185,13 @@ class _DesktopHomePageState extends State<DesktopHomePage>
backgroundColor: hover.value backgroundColor: hover.value
? Theme.of(context).scaffoldBackgroundColor ? Theme.of(context).scaffoldBackgroundColor
: Theme.of(context).colorScheme.background, : Theme.of(context).colorScheme.background,
child: Tooltip(
message: translate('Settings'),
child: Icon( child: Icon(
Icons.more_vert_outlined, Icons.more_vert_outlined,
size: 20, size: 20,
color: hover.value ? textColor : textColor?.withOpacity(0.5), color: hover.value ? textColor : textColor?.withOpacity(0.5),
), )),
), ),
), ),
onHover: (value) => hover.value = value, onHover: (value) => hover.value = value,
@ -252,23 +254,28 @@ class _DesktopHomePageState extends State<DesktopHomePage>
onPressed: () => bind.mainUpdateTemporaryPassword(), onPressed: () => bind.mainUpdateTemporaryPassword(),
child: Obx(() => RotatedBox( child: Obx(() => RotatedBox(
quarterTurns: 2, quarterTurns: 2,
child: Tooltip(
message: translate('Refresh Password'),
child: Icon( child: Icon(
Icons.refresh, Icons.refresh,
color: refreshHover.value color: refreshHover.value
? textColor ? textColor
: Color(0xFFDDDDDD), : Color(0xFFDDDDDD),
size: 22, size: 22,
))), ))
)),
onHover: (value) => refreshHover.value = value, onHover: (value) => refreshHover.value = value,
).marginOnly(right: 8, top: 4), ).marginOnly(right: 8, top: 4),
InkWell( InkWell(
child: Obx( child: Obx(
() => Icon( () => Tooltip(
message: translate('Change Password'),
child: Icon(
Icons.edit, Icons.edit,
color: color:
editHover.value ? textColor : Color(0xFFDDDDDD), editHover.value ? textColor : Color(0xFFDDDDDD),
size: 22, size: 22,
).marginOnly(right: 8, top: 4), )).marginOnly(right: 8, top: 4),
), ),
onTap: () => DesktopSettingPage.switch2page(1), onTap: () => DesktopSettingPage.switch2page(1),
onHover: (value) => editHover.value = value, onHover: (value) => editHover.value = value,