From 16a929536c646227546b6afe348c2cf50110a934 Mon Sep 17 00:00:00 2001 From: kit Date: Tue, 24 Sep 2024 09:05:15 +0700 Subject: [PATCH] update --- assets/editor/normalize.css | 2 ++ assets/editor/style.css | 3 --- lib/src/widgets/color_picker_dialog.dart | 8 ++++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/assets/editor/normalize.css b/assets/editor/normalize.css index 7c49f4b..73621e9 100644 --- a/assets/editor/normalize.css +++ b/assets/editor/normalize.css @@ -289,6 +289,7 @@ html input[type="button"], /* 1 */ input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ + appearance: button; cursor: pointer; /* 3 */ } @@ -342,6 +343,7 @@ input[type="number"]::-webkit-outer-spin-button { input[type="search"] { -webkit-appearance: textfield; /* 1 */ + appearance: textfield; -webkit-box-sizing: content-box; /* 2 */ box-sizing: content-box; } diff --git a/assets/editor/style.css b/assets/editor/style.css index f248e02..40fabe4 100644 --- a/assets/editor/style.css +++ b/assets/editor/style.css @@ -48,9 +48,6 @@ p { -webkit-margin-before: 0em; } - -// Thanks to Jonathan B (https://stackoverflow.com/a/23501094) for figuring that out - sup { vertical-align: super; } diff --git a/lib/src/widgets/color_picker_dialog.dart b/lib/src/widgets/color_picker_dialog.dart index d2ac45a..f2b2b03 100644 --- a/lib/src/widgets/color_picker_dialog.dart +++ b/lib/src/widgets/color_picker_dialog.dart @@ -35,8 +35,12 @@ class _ColorPickerDialogState extends State { pickerAreaHeightPercent: 0.7, enableAlpha: true, displayThumbColor: true, - showLabel: true, - + labelTypes: [ + ColorLabelType.hex, + ColorLabelType.hsv, + ColorLabelType.hsl, + ColorLabelType.rgb, + ], paletteType: PaletteType.hsv, pickerAreaBorderRadius: const BorderRadius.only( topLeft: const Radius.circular(2.0),