rtl fixes; rescan requires selection
This commit is contained in:
parent
e7ed279593
commit
faef8918e3
7 changed files with 20 additions and 15 deletions
|
@ -67,10 +67,10 @@ class Contributors {
|
||||||
Contributor('Reza Almanda', 'rezaalmanda27@gmail.com'),
|
Contributor('Reza Almanda', 'rezaalmanda27@gmail.com'),
|
||||||
Contributor('Sveinn í Felli', 'sv1@fellsnet.is'),
|
Contributor('Sveinn í Felli', 'sv1@fellsnet.is'),
|
||||||
Contributor('Henning Bunk', 'henningtbunk@gmail.com'),
|
Contributor('Henning Bunk', 'henningtbunk@gmail.com'),
|
||||||
// Contributor('SAMIRAH AIL', 'samiratalzahrani@gmail.com'), // Arabic
|
Contributor('SAMIRAH AIL', 'samiratalzahrani@gmail.com'),
|
||||||
// Contributor('Salih Ail', 'rrrfff444@gmail.com'), // Arabic
|
Contributor('Salih Ail', 'rrrfff444@gmail.com'),
|
||||||
// Contributor('nasreddineloukriz', 'nasreddineloukriz@gmail.com'), // Arabic
|
Contributor('nasreddineloukriz', 'nasreddineloukriz@gmail.com'),
|
||||||
// Contributor('Mohamed Zeroug', 'mzeroug19@gmail.com'), // Arabic
|
Contributor('Mohamed Zeroug', 'mzeroug19@gmail.com'),
|
||||||
// Contributor('Alvi Khan', 'aveenalvi@gmail.com'), // Bengali
|
// Contributor('Alvi Khan', 'aveenalvi@gmail.com'), // Bengali
|
||||||
// Contributor('Htet Oo Hlaing', 'htetoh2006@outlook.com'), // Burmese
|
// Contributor('Htet Oo Hlaing', 'htetoh2006@outlook.com'), // Burmese
|
||||||
// Contributor('Khant', 'khant@users.noreply.hosted.weblate.org'), // Burmese
|
// Contributor('Khant', 'khant@users.noreply.hosted.weblate.org'), // Burmese
|
||||||
|
|
|
@ -48,7 +48,12 @@ class AppReference extends StatelessWidget {
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Text(
|
Text(
|
||||||
'${context.l10n.appName} ${device.packageVersion}',
|
context.l10n.appName,
|
||||||
|
style: _appTitleStyle,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
Text(
|
||||||
|
device.packageVersion,
|
||||||
style: _appTitleStyle,
|
style: _appTitleStyle,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -132,7 +132,6 @@ class _LicenseRow extends StatelessWidget {
|
||||||
child: LinkChip(
|
child: LinkChip(
|
||||||
text: package.name,
|
text: package.name,
|
||||||
urlString: package.sourceUrl,
|
urlString: package.sourceUrl,
|
||||||
textStyle: const TextStyle(fontWeight: FontWeight.bold),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ class EntrySetActionDelegate with FeedbackMixin, PermissionAwareMixin, SizeAware
|
||||||
case EntrySetAction.stats:
|
case EntrySetAction.stats:
|
||||||
return isMain;
|
return isMain;
|
||||||
case EntrySetAction.rescan:
|
case EntrySetAction.rescan:
|
||||||
return !useTvLayout && isMain && !isTrash;
|
return !useTvLayout && isMain && !isTrash && isSelecting;
|
||||||
// selecting
|
// selecting
|
||||||
case EntrySetAction.share:
|
case EntrySetAction.share:
|
||||||
case EntrySetAction.toggleFavourite:
|
case EntrySetAction.toggleFavourite:
|
||||||
|
|
|
@ -128,6 +128,8 @@ class _GridSelectionGestureDetectorState<T> extends State<GridSelectionGestureDe
|
||||||
: null,
|
: null,
|
||||||
onTapUp: selectable && context.select<Selection<T>, bool>((selection) => selection.isSelecting)
|
onTapUp: selectable && context.select<Selection<T>, bool>((selection) => selection.isSelecting)
|
||||||
? (details) {
|
? (details) {
|
||||||
|
if (_isScrolling) return;
|
||||||
|
|
||||||
final item = _getItemAt(details.localPosition);
|
final item = _getItemAt(details.localPosition);
|
||||||
if (item == null) return;
|
if (item == null) return;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
import 'dart:ui';
|
||||||
|
|
||||||
import 'package:aves/model/view_state.dart';
|
import 'package:aves/model/view_state.dart';
|
||||||
|
import 'package:aves/widgets/common/extensions/build_context.dart';
|
||||||
import 'package:aves/widgets/editor/transform/controller.dart';
|
import 'package:aves/widgets/editor/transform/controller.dart';
|
||||||
import 'package:aves/widgets/editor/transform/transformation.dart';
|
import 'package:aves/widgets/editor/transform/transformation.dart';
|
||||||
import 'package:aves/widgets/viewer/overlay/top.dart';
|
import 'package:aves/widgets/viewer/overlay/top.dart';
|
||||||
|
@ -36,6 +38,7 @@ class Minimap extends StatelessWidget {
|
||||||
contentSize: contentSize,
|
contentSize: contentSize,
|
||||||
viewCenterOffset: viewState.position,
|
viewCenterOffset: viewState.position,
|
||||||
viewScale: viewState.scale!,
|
viewScale: viewState.scale!,
|
||||||
|
alignmentX: context.isRtl ? 1 : 0,
|
||||||
transformation: transformation,
|
transformation: transformation,
|
||||||
minimapBorderColor: ViewerTopOverlay.componentBorderColor,
|
minimapBorderColor: ViewerTopOverlay.componentBorderColor,
|
||||||
),
|
),
|
||||||
|
@ -52,7 +55,7 @@ class Minimap extends StatelessWidget {
|
||||||
class _MinimapPainter extends CustomPainter {
|
class _MinimapPainter extends CustomPainter {
|
||||||
final Size contentSize, viewportSize;
|
final Size contentSize, viewportSize;
|
||||||
final Offset viewCenterOffset;
|
final Offset viewCenterOffset;
|
||||||
final double viewScale;
|
final double viewScale, alignmentX;
|
||||||
final Transformation? transformation;
|
final Transformation? transformation;
|
||||||
final Color minimapBorderColor;
|
final Color minimapBorderColor;
|
||||||
|
|
||||||
|
@ -63,6 +66,7 @@ class _MinimapPainter extends CustomPainter {
|
||||||
required this.contentSize,
|
required this.contentSize,
|
||||||
required this.viewCenterOffset,
|
required this.viewCenterOffset,
|
||||||
required this.viewScale,
|
required this.viewScale,
|
||||||
|
required this.alignmentX,
|
||||||
this.transformation,
|
this.transformation,
|
||||||
this.minimapBorderColor = Colors.white,
|
this.minimapBorderColor = Colors.white,
|
||||||
}) {
|
}) {
|
||||||
|
@ -103,6 +107,8 @@ class _MinimapPainter extends CustomPainter {
|
||||||
height: min(scaledContentSize.height, scaledViewportSize.height),
|
height: min(scaledContentSize.height, scaledViewportSize.height),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
canvas.translate(lerpDouble(0, size.width - contentRect.width, alignmentX)!, 0);
|
||||||
|
|
||||||
Matrix4? transformMatrix;
|
Matrix4? transformMatrix;
|
||||||
if (transformation != null) {
|
if (transformation != null) {
|
||||||
final viewportCenter = viewportRect.center;
|
final viewportCenter = viewportRect.center;
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
{
|
{
|
||||||
"be": [
|
|
||||||
"columnCount",
|
|
||||||
"timeSeconds",
|
|
||||||
"timeMinutes",
|
|
||||||
"timeDays"
|
|
||||||
],
|
|
||||||
|
|
||||||
"bn": [
|
"bn": [
|
||||||
"itemCount",
|
"itemCount",
|
||||||
"columnCount",
|
"columnCount",
|
||||||
|
|
Loading…
Reference in a new issue