Kaynağa Gözat

Change buttonStyle

Neeraj Gupta 2 yıl önce
ebeveyn
işleme
648fa26d34

+ 1 - 0
lib/generated/intl/messages_en.dart

@@ -214,6 +214,7 @@ class MessageLookup extends MessageLookupByLibrary {
         "addLocation": MessageLookupByLibrary.simpleMessage("Add location"),
         "addLocationButton": MessageLookupByLibrary.simpleMessage("Add"),
         "addMore": MessageLookupByLibrary.simpleMessage("Add more"),
+        "addPhotos": MessageLookupByLibrary.simpleMessage("Add photos"),
         "addSelected": MessageLookupByLibrary.simpleMessage("Add selected"),
         "addToAlbum": MessageLookupByLibrary.simpleMessage("Add to album"),
         "addToEnte": MessageLookupByLibrary.simpleMessage("Add to ente"),

+ 10 - 0
lib/generated/l10n.dart

@@ -7322,6 +7322,16 @@ class S {
       args: [],
     );
   }
+
+  /// `Add photos`
+  String get addPhotos {
+    return Intl.message(
+      'Add photos',
+      name: 'addPhotos',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 2 - 1
lib/l10n/intl_en.arb

@@ -1061,6 +1061,7 @@
   "enableMapsDesc": "This will show your photos on a world map.\n\nThis map is hosted by Open Street Map, and the exact locations of your photos are never shared.\n\nYou can disable this feature anytime from Settings.",
   "selectItemsToAdd": "Select items to add",
   "addSelected": "Add selected",
-  "addFromDevice": "Add from device"
+  "addFromDevice": "Add from device",
+  "addPhotos": "Add photos"
 }
 

+ 3 - 2
lib/ui/viewer/gallery/collection_page.dart

@@ -5,6 +5,7 @@ import 'package:photos/db/files_db.dart';
 import "package:photos/events/collection_meta_event.dart";
 import 'package:photos/events/collection_updated_event.dart';
 import 'package:photos/events/files_updated_event.dart';
+import "package:photos/generated/l10n.dart";
 import 'package:photos/models/collection.dart';
 import 'package:photos/models/collection_items.dart';
 import 'package:photos/models/file.dart';
@@ -93,9 +94,9 @@ class CollectionPage extends StatelessWidget {
               child: Padding(
                 padding: const EdgeInsets.all(16.0),
                 child: ButtonWidget(
-                  buttonType: ButtonType.primary,
+                  buttonType: ButtonType.secondary,
                   buttonSize: ButtonSize.small,
-                  labelText: "Add photos",
+                  labelText: S.of(context).addPhotos,
                   icon: Icons.add_photo_alternate_outlined,
                   shouldSurfaceExecutionStates: false,
                   onTap: () async {