Skip to content

Commit

Permalink
Merge pull request #637 from Npepperlinux/fix/color_picker_v2_border
Browse files Browse the repository at this point in the history
`$[***.color`から呼び出されるカラーピッカーの修正
  • Loading branch information
shiosyakeyakini-info authored Oct 24, 2024
2 parents 97c3941 + eb74e82 commit 1f35441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/view/common/note_create/mfm_fn_keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ class MfmFnKeyboard extends ConsumerWidget {
}
if ((mfmFnName == "fg" || mfmFnName == "bg" || mfmFnName == "border") &&
arg.name == "color") {
final result = await showDialog<Color?>(
final result = await showDialog<ValueNotifier<Color>>(
context: parentContext,
builder: (context) => const ColorPickerDialog(),
);
if (result != null) {
controller.insert(
"=${result.red.toRadixString(16).padLeft(2, "0")}${result.green.toRadixString(16).padLeft(2, "0")}${result.blue.toRadixString(16).padLeft(2, "0")} ",
"=${result.value.red.toRadixString(16).padLeft(2, "0")}${result.value.green.toRadixString(16).padLeft(2, "0")}${result.value.blue.toRadixString(16).padLeft(2, "0")} ",
);
} else {
controller.insert("=f00 ");
Expand Down

0 comments on commit 1f35441

Please sign in to comment.