fix(color_picker): change mimetype for better compatibility (#60)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user