mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-24 07:54:42 +01:00
Fix missing tooltip for the mute button
This commit is contained in:
parent
25523b72ab
commit
b085f8f4e1
3 changed files with 30 additions and 14 deletions
|
@ -758,6 +758,8 @@
|
||||||
"@unsetAlbumCoverFailureNotification": {
|
"@unsetAlbumCoverFailureNotification": {
|
||||||
"description": "Cannot unset the cover of the opened album"
|
"description": "Cannot unset the cover of the opened album"
|
||||||
},
|
},
|
||||||
|
"muteTooltip": "Mute",
|
||||||
|
"unmuteTooltip": "Unmute",
|
||||||
|
|
||||||
"errorUnauthenticated": "Unauthenticated access. Please sign-in again if the problem continues",
|
"errorUnauthenticated": "Unauthenticated access. Please sign-in again if the problem continues",
|
||||||
"@errorUnauthenticated": {
|
"@errorUnauthenticated": {
|
||||||
|
|
|
@ -44,7 +44,9 @@
|
||||||
"unsetAlbumCoverTooltip",
|
"unsetAlbumCoverTooltip",
|
||||||
"unsetAlbumCoverProcessingNotification",
|
"unsetAlbumCoverProcessingNotification",
|
||||||
"unsetAlbumCoverSuccessNotification",
|
"unsetAlbumCoverSuccessNotification",
|
||||||
"unsetAlbumCoverFailureNotification"
|
"unsetAlbumCoverFailureNotification",
|
||||||
|
"muteTooltip",
|
||||||
|
"unmuteTooltip"
|
||||||
],
|
],
|
||||||
|
|
||||||
"es": [
|
"es": [
|
||||||
|
@ -62,7 +64,9 @@
|
||||||
"unsetAlbumCoverTooltip",
|
"unsetAlbumCoverTooltip",
|
||||||
"unsetAlbumCoverProcessingNotification",
|
"unsetAlbumCoverProcessingNotification",
|
||||||
"unsetAlbumCoverSuccessNotification",
|
"unsetAlbumCoverSuccessNotification",
|
||||||
"unsetAlbumCoverFailureNotification"
|
"unsetAlbumCoverFailureNotification",
|
||||||
|
"muteTooltip",
|
||||||
|
"unmuteTooltip"
|
||||||
],
|
],
|
||||||
|
|
||||||
"fr": [
|
"fr": [
|
||||||
|
@ -90,7 +94,9 @@
|
||||||
"unsetAlbumCoverTooltip",
|
"unsetAlbumCoverTooltip",
|
||||||
"unsetAlbumCoverProcessingNotification",
|
"unsetAlbumCoverProcessingNotification",
|
||||||
"unsetAlbumCoverSuccessNotification",
|
"unsetAlbumCoverSuccessNotification",
|
||||||
"unsetAlbumCoverFailureNotification"
|
"unsetAlbumCoverFailureNotification",
|
||||||
|
"muteTooltip",
|
||||||
|
"unmuteTooltip"
|
||||||
],
|
],
|
||||||
|
|
||||||
"ru": [
|
"ru": [
|
||||||
|
@ -118,6 +124,8 @@
|
||||||
"unsetAlbumCoverTooltip",
|
"unsetAlbumCoverTooltip",
|
||||||
"unsetAlbumCoverProcessingNotification",
|
"unsetAlbumCoverProcessingNotification",
|
||||||
"unsetAlbumCoverSuccessNotification",
|
"unsetAlbumCoverSuccessNotification",
|
||||||
"unsetAlbumCoverFailureNotification"
|
"unsetAlbumCoverFailureNotification",
|
||||||
|
"muteTooltip",
|
||||||
|
"unmuteTooltip"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:logging/logging.dart';
|
||||||
import 'package:nc_photos/account.dart';
|
import 'package:nc_photos/account.dart';
|
||||||
import 'package:nc_photos/api/api.dart';
|
import 'package:nc_photos/api/api.dart';
|
||||||
import 'package:nc_photos/api/api_util.dart' as api_util;
|
import 'package:nc_photos/api/api_util.dart' as api_util;
|
||||||
|
import 'package:nc_photos/app_localizations.dart';
|
||||||
import 'package:nc_photos/entity/file.dart';
|
import 'package:nc_photos/entity/file.dart';
|
||||||
import 'package:nc_photos/exception_util.dart' as exception_util;
|
import 'package:nc_photos/exception_util.dart' as exception_util;
|
||||||
import 'package:nc_photos/k.dart' as k;
|
import 'package:nc_photos/k.dart' as k;
|
||||||
|
@ -200,7 +201,11 @@ class _VideoViewerState extends State<VideoViewer> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
InkWell(
|
Tooltip(
|
||||||
|
message: _controller.value.volume == 0
|
||||||
|
? L10n.global().unmuteTooltip
|
||||||
|
: L10n.global().muteTooltip,
|
||||||
|
child: InkWell(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(32)),
|
borderRadius: BorderRadius.all(Radius.circular(32)),
|
||||||
onTap: _onVolumnPressed,
|
onTap: _onVolumnPressed,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -213,6 +218,7 @@ class _VideoViewerState extends State<VideoViewer> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue