From 7e1341d9469a9b3997e3a7adfb7c6a05c8916002 Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Wed, 1 Jan 2025 19:16:04 +0100 Subject: [PATCH] Add palette name and pack display to color picker dialog --- app/lib/dialogs/packs/color_pick.dart | 20 ++++++++++++++++++++ app/lib/selections/selection.dart | 2 -- metadata/en-US/changelogs/127.txt | 1 + 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/app/lib/dialogs/packs/color_pick.dart b/app/lib/dialogs/packs/color_pick.dart index 4ff8e8ce9346..aa314d67d6b8 100644 --- a/app/lib/dialogs/packs/color_pick.dart +++ b/app/lib/dialogs/packs/color_pick.dart @@ -169,6 +169,26 @@ class _ColorPalettePickerDialogState extends State { child: Row( children: [ if (widget.palette == null) ...[ + Expanded( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.stretch, + children: [ + Text( + _selected?.name ?? '', + style: Theme.of(context) + .textTheme + .headlineSmall, + ), + Text( + _selected?.pack ?? '', + style: Theme.of(context) + .textTheme + .labelLarge, + ), + ], + ), + ), IconButton( onPressed: () async { final state = widget.bloc?.state; diff --git a/app/lib/selections/selection.dart b/app/lib/selections/selection.dart index 86573d5fa859..3f05bee22ff3 100644 --- a/app/lib/selections/selection.dart +++ b/app/lib/selections/selection.dart @@ -8,13 +8,11 @@ import 'package:butterfly/visualizer/property.dart'; import 'package:butterfly_api/butterfly_api.dart'; import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:material_leap/material_leap.dart'; import 'package:phosphor_flutter/phosphor_flutter.dart'; -import '../actions/background.dart'; import '../actions/packs.dart'; import '../cubits/transform.dart'; import '../renderers/renderer.dart'; diff --git a/metadata/en-US/changelogs/127.txt b/metadata/en-US/changelogs/127.txt index c7c651d19244..cd2543e419d2 100644 --- a/metadata/en-US/changelogs/127.txt +++ b/metadata/en-US/changelogs/127.txt @@ -3,6 +3,7 @@ * Dedicated files view * Move settings into a tab * Add toggleable tools +* Add palette name and pack to color picker dialog * Move ruler into own tool * Add color property * Add size property