Skip to content

Commit

Permalink
Add palette name and pack display to color picker dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Jan 1, 2025
1 parent bfa7f40 commit 7e1341d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
20 changes: 20 additions & 0 deletions app/lib/dialogs/packs/color_pick.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,26 @@ class _ColorPalettePickerDialogState extends State<ColorPalettePickerDialog> {
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;
Expand Down
2 changes: 0 additions & 2 deletions app/lib/selections/selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/127.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e1341d

Please sign in to comment.