π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add localization strings for editing tools and remove filtered_image.dart
AmanRajSinghMouryaecf236ad54b2
diff --git a/mobile/apps/photos/lib/generated/l10n.dart b/mobile/apps/photos/lib/generated/l10n.dartindex 84cef71699..14b4c3aeea 100644--- a/mobile/apps/photos/lib/generated/l10n.dart+++ b/mobile/apps/photos/lib/generated/l10n.dart@@ -12495,6 +12495,118 @@ class S {args: [],);}++ /// `Undo`+ String get undo {+ return Intl.message(+ 'Undo',+ name: 'undo',+ desc: '',+ args: [],+ );+ }++ /// `Redo`+ String get redo {+ return Intl.message(+ 'Redo',+ name: 'redo',+ desc: '',+ args: [],+ );+ }++ /// `Filter`+ String get filter {+ return Intl.message(+ 'Filter',+ name: 'filter',+ desc: '',+ args: [],+ );+ }++ /// `Adjust`+ String get adjust {+ return Intl.message(+ 'Adjust',+ name: 'adjust',+ desc: '',+ args: [],+ );+ }++ /// `Draw`+ String get draw {+ return Intl.message(+ 'Draw',+ name: 'draw',+ desc: '',+ args: [],+ );+ }++ /// `Sticker`+ String get sticker {+ return Intl.message(+ 'Sticker',+ name: 'sticker',+ desc: '',+ args: [],+ );+ }++ /// `Brush Color`+ String get brushColor {+ return Intl.message(+ 'Brush Color',+ name: 'brushColor',+ desc: '',+ args: [],+ );+ }++ /// `Font`+ String get font {+ return Intl.message(+ 'Font',+ name: 'font',+ desc: '',+ args: [],+ );+ }++ /// `Background`+ String get background {+ return Intl.message(+ 'Background',+ name: 'background',+ desc: '',+ args: [],+ );+ }++ /// `Align`+ String get align {+ return Intl.message(+ 'Align',+ name: 'align',+ desc: '',+ args: [],+ );+ }++ /// `{count, plural, =1{Added successfully to 1 album} other{Added successfully to {count} albums}}`+ String addedToAlbums(int count) {+ return Intl.plural(+ count,+ one: 'Added successfully to 1 album',+ other: 'Added successfully to $count albums',+ name: 'addedToAlbums',+ desc: 'Message shown when items are added to albums',+ args: [count],+ );+ }}class AppLocalizationDelegate extends LocalizationsDelegate<S> {diff --git a/mobile/apps/photos/lib/ui/tools/editor/filtered_image.dart b/mobile/apps/photos/lib/ui/tools/editor/filtered_image.dartdeleted file mode 100644index 31c74590ac..0000000000--- a/mobile/apps/photos/lib/ui/tools/editor/filtered_image.dart+++ /dev/null@@ -1,110 +0,0 @@-import 'dart:math';--import 'package:flutter/widgets.dart';-import 'package:image_editor/image_editor.dart';--class FilteredImage extends StatelessWidget {- const FilteredImage({- required this.child,- this.brightness,- this.saturation,- this.hue,- super.key,- });-- final double? brightness, saturation, hue;- final Widget child;-- @override- Widget build(BuildContext context) {- return ColorFiltered(- colorFilter: ColorFilter.matrix(- ColorFilterGenerator.brightnessAdjustMatrix(- value: brightness ?? 1,- ),- ),- child: ColorFiltered(- colorFilter: ColorFilter.matrix(- ColorFilterGenerator.saturationAdjustMatrix(- value: saturation ?? 1,- ),- ),- child: ColorFiltered(- colorFilter: ColorFilter.matrix(- ColorFilterGenerator.hueAdjustMatrix(- value: hue ?? 0,- ),- ),- child: child,- ),- ),- );- }-}--class ColorFilterGenerator {- static List<double> hueAdjustMatrix({double value = 1}) {- value = value * pi;-- if (value == 0) {- return [- 1,- 0,- 0,- 0,- 0,- 0,- 1,- 0,- 0,- 0,- 0,- 0,- 1,- 0,- 0,- 0,- 0,- 0,- 1,- 0,- ];- }- final double cosVal = cos(value);- final double sinVal = sin(value);- const double lumR = 0.213;- const double lumG = 0.715;- const double lumB = 0.072;-- return List<double>.from(<double>[- (lumR + (cosVal * (1 - lumR))) + (sinVal * (-lumR)),- (lumG + (cosVal * (-lumG))) + (sinVal * (-lumG)),- (lumB + (cosVal * (-lumB))) + (sinVal * (1 - lumB)),- 0,- 0,- (lumR + (cosVal * (-lumR))) + (sinVal * 0.143),- (lumG + (cosVal * (1 - lumG))) + (sinVal * 0.14),- (lumB + (cosVal * (-lumB))) + (sinVal * (-0.283)),- 0,- 0,- (lumR + (cosVal * (-lumR))) + (sinVal * (-(1 - lumR))),- (lumG + (cosVal * (-lumG))) + (sinVal * lumG),- (lumB + (cosVal * (1 - lumB))) + (sinVal * lumB),- 0,- 0,- 0,- 0,- 0,- 1,- 0,- ]).map((i) => i.toDouble()).toList();- }-- static List<double> brightnessAdjustMatrix({double value = 1}) {- return ColorOption.brightness(value).matrix;- }-- static List<double> saturationAdjustMatrix({double value = 1}) {- return ColorOption.saturation(value).matrix;- }-}