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: Icon(
|
child: Tooltip(
|
||||||
Icons.tag_rounded,
|
message: translate('Toggle Tags'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
))),
|
Icons.tag_rounded,
|
||||||
|
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: Icon(
|
child: Tooltip(
|
||||||
Icons.refresh,
|
message: translate('Refresh'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
color: textColor,
|
Icons.refresh,
|
||||||
))),
|
size: 18,
|
||||||
|
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: Icon(
|
child: Tooltip(
|
||||||
peerCardUiType.value == PeerUiType.grid
|
message: peerCardUiType.value == PeerUiType.grid
|
||||||
? Icons.view_list_rounded
|
? translate('List View')
|
||||||
: Icons.grid_view_rounded,
|
: translate('Grid View'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
color: textColor,
|
peerCardUiType.value == PeerUiType.grid
|
||||||
)),
|
? Icons.view_list_rounded
|
||||||
),
|
: Icons.grid_view_rounded,
|
||||||
|
size: 18,
|
||||||
|
color: textColor,
|
||||||
|
))
|
||||||
|
)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,11 +279,13 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
model.setMultiSelectionMode(true);
|
model.setMultiSelectionMode(true);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Tooltip(
|
||||||
IconFont.checkbox,
|
message: translate('Select'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
color: textColor,
|
IconFont.checkbox,
|
||||||
),
|
size: 18,
|
||||||
|
color: textColor,
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -466,10 +478,13 @@ class _PeerSearchBarState extends State<PeerSearchBar> {
|
|||||||
drawer = true;
|
drawer = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Tooltip(
|
||||||
Icons.search_rounded,
|
message: translate('Search'),
|
||||||
color: Theme.of(context).hintColor,
|
child: Icon(
|
||||||
));
|
Icons.search_rounded,
|
||||||
|
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(
|
||||||
Icons.close,
|
message: translate('Close'),
|
||||||
color: Theme.of(context).hintColor,
|
child:
|
||||||
|
Icon(
|
||||||
|
Icons.close,
|
||||||
|
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: Icon(
|
child: Tooltip(
|
||||||
Icons.sort_rounded,
|
message: translate('Sort By'),
|
||||||
size: 18,
|
child: Icon(
|
||||||
),
|
Icons.sort_rounded,
|
||||||
|
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: Icon(
|
child: Tooltip(
|
||||||
Icons.more_vert_outlined,
|
message: translate('Settings'),
|
||||||
size: 20,
|
child: Icon(
|
||||||
color: hover.value ? textColor : textColor?.withOpacity(0.5),
|
Icons.more_vert_outlined,
|
||||||
),
|
size: 20,
|
||||||
|
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: Icon(
|
child: Tooltip(
|
||||||
Icons.refresh,
|
message: translate('Refresh Password'),
|
||||||
color: refreshHover.value
|
child: Icon(
|
||||||
? textColor
|
Icons.refresh,
|
||||||
: Color(0xFFDDDDDD),
|
color: refreshHover.value
|
||||||
size: 22,
|
? textColor
|
||||||
))),
|
: Color(0xFFDDDDDD),
|
||||||
|
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(
|
||||||
Icons.edit,
|
message: translate('Change Password'),
|
||||||
color:
|
child: Icon(
|
||||||
editHover.value ? textColor : Color(0xFFDDDDDD),
|
Icons.edit,
|
||||||
size: 22,
|
color:
|
||||||
).marginOnly(right: 8, top: 4),
|
editHover.value ? textColor : Color(0xFFDDDDDD),
|
||||||
|
size: 22,
|
||||||
|
)).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