commit
a1780d43bb
@ -121,10 +121,13 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
: BoxDecoration(
|
: BoxDecoration(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.background,
|
||||||
borderRadius: BorderRadius.circular(6)),
|
borderRadius: BorderRadius.circular(6)),
|
||||||
|
child: Tooltip(
|
||||||
|
message: translate('Toggle Tags'),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.tag_rounded,
|
Icons.tag_rounded,
|
||||||
size: 18,
|
size: 18,
|
||||||
))),
|
))
|
||||||
|
)),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await bind.mainSetLocalOption(
|
await bind.mainSetLocalOption(
|
||||||
key: "hideAbTagsPanel",
|
key: "hideAbTagsPanel",
|
||||||
@ -217,11 +220,14 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
},
|
},
|
||||||
child: RotatedBox(
|
child: RotatedBox(
|
||||||
quarterTurns: 2,
|
quarterTurns: 2,
|
||||||
|
child: Tooltip(
|
||||||
|
message: translate('Refresh'),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.refresh,
|
Icons.refresh,
|
||||||
size: 18,
|
size: 18,
|
||||||
color: textColor,
|
color: textColor,
|
||||||
))),
|
))
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -248,14 +254,18 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
k: 'peer-card-ui-type', v: type.index.toString());
|
k: 'peer-card-ui-type', v: type.index.toString());
|
||||||
peerCardUiType.value = type;
|
peerCardUiType.value = type;
|
||||||
},
|
},
|
||||||
|
child: Tooltip(
|
||||||
|
message: peerCardUiType.value == PeerUiType.grid
|
||||||
|
? translate('List View')
|
||||||
|
: translate('Grid View'),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
peerCardUiType.value == PeerUiType.grid
|
peerCardUiType.value == PeerUiType.grid
|
||||||
? Icons.view_list_rounded
|
? Icons.view_list_rounded
|
||||||
: Icons.grid_view_rounded,
|
: Icons.grid_view_rounded,
|
||||||
size: 18,
|
size: 18,
|
||||||
color: textColor,
|
color: textColor,
|
||||||
|
))
|
||||||
)),
|
)),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,11 +279,13 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
model.setMultiSelectionMode(true);
|
model.setMultiSelectionMode(true);
|
||||||
},
|
},
|
||||||
|
child: Tooltip(
|
||||||
|
message: translate('Select'),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
IconFont.checkbox,
|
IconFont.checkbox,
|
||||||
size: 18,
|
size: 18,
|
||||||
color: textColor,
|
color: textColor,
|
||||||
),
|
)),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -466,10 +478,13 @@ class _PeerSearchBarState extends State<PeerSearchBar> {
|
|||||||
drawer = true;
|
drawer = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Tooltip(
|
||||||
|
message: translate('Search'),
|
||||||
|
child: Icon(
|
||||||
Icons.search_rounded,
|
Icons.search_rounded,
|
||||||
color: Theme.of(context).hintColor,
|
color: Theme.of(context).hintColor,
|
||||||
));
|
))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildSearchBar() {
|
Widget _buildSearchBar() {
|
||||||
@ -537,10 +552,14 @@ class _PeerSearchBarState extends State<PeerSearchBar> {
|
|||||||
drawer = false;
|
drawer = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Tooltip(
|
||||||
|
message: translate('Close'),
|
||||||
|
child:
|
||||||
|
Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
color: Theme.of(context).hintColor,
|
color: Theme.of(context).hintColor,
|
||||||
)),
|
)),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -604,10 +623,12 @@ class _PeerSortDropdownState extends State<PeerSortDropdown> {
|
|||||||
|
|
||||||
var menuPos = RelativeRect.fromLTRB(0, 0, 0, 0);
|
var menuPos = RelativeRect.fromLTRB(0, 0, 0, 0);
|
||||||
return InkWell(
|
return InkWell(
|
||||||
|
child: Tooltip(
|
||||||
|
message: translate('Sort By'),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.sort_rounded,
|
Icons.sort_rounded,
|
||||||
size: 18,
|
size: 18,
|
||||||
),
|
)),
|
||||||
onTapDown: (details) {
|
onTapDown: (details) {
|
||||||
final x = details.globalPosition.dx;
|
final x = details.globalPosition.dx;
|
||||||
final y = details.globalPosition.dy;
|
final y = details.globalPosition.dy;
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user