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
|
if current == nil then return end
|
||||||
|
|
||||||
local text = format(current, getSelectedOpacity())
|
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 }))
|
noctalia.notify(tr_color_picker, tr("color_copied", { color = text }))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ id = "oldirtty/color_picker"
|
|||||||
name = "Color Picker"
|
name = "Color Picker"
|
||||||
description = "Pick a color from your screen with hyprpicker."
|
description = "Pick a color from your screen with hyprpicker."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
version = "1.0.3"
|
version = "1.0.4"
|
||||||
plugin_api = 3
|
plugin_api = 3
|
||||||
icon = "palette"
|
icon = "palette"
|
||||||
dependencies = ["hyprpicker"]
|
dependencies = ["hyprpicker"]
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ local function runPicker(onResult: (string?, string?) -> ())
|
|||||||
copyText = hex:lower()
|
copyText = hex:lower()
|
||||||
end
|
end
|
||||||
|
|
||||||
noctalia.copyToClipboard(copyText, "text/plain")
|
noctalia.copyToClipboard(copyText, "text/plain;charset=utf-8")
|
||||||
onResult(hex, copyText)
|
onResult(hex, copyText)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user