diff --git a/color_picker/panel.luau b/color_picker/panel.luau index 201a578..d601d2b 100644 --- a/color_picker/panel.luau +++ b/color_picker/panel.luau @@ -348,7 +348,7 @@ local function processCopy(format: (string, number) -> string) if current == nil then return end local text = format(current, getSelectedOpacity()) - noctalia.copyToClipboard(text, "text/plain") + noctalia.copyToClipboard(text, "text/plain;charset=utf-8") noctalia.notify(tr_color_picker, tr("color_copied", { color = text })) end diff --git a/color_picker/plugin.toml b/color_picker/plugin.toml index 63e1823..95e4ca9 100644 --- a/color_picker/plugin.toml +++ b/color_picker/plugin.toml @@ -3,7 +3,7 @@ id = "oldirtty/color_picker" name = "Color Picker" description = "Pick a color from your screen with hyprpicker." license = "MIT" -version = "1.0.3" +version = "1.0.4" plugin_api = 3 icon = "palette" dependencies = ["hyprpicker"] diff --git a/color_picker/service.luau b/color_picker/service.luau index f289836..7c63591 100644 --- a/color_picker/service.luau +++ b/color_picker/service.luau @@ -208,7 +208,7 @@ local function runPicker(onResult: (string?, string?) -> ()) copyText = hex:lower() end - noctalia.copyToClipboard(copyText, "text/plain") + noctalia.copyToClipboard(copyText, "text/plain;charset=utf-8") onResult(hex, copyText) end) end