From 678ee3604879a3693dd6b142d19108e716c2ea26 Mon Sep 17 00:00:00 2001 From: Zyten Date: Fri, 15 May 2020 16:39:59 +0800 Subject: [PATCH] Copy picked color to clipboard automatically --- src/ColorPickerWindow.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ColorPickerWindow.vala b/src/ColorPickerWindow.vala index 2c1a7a6..048d771 100644 --- a/src/ColorPickerWindow.vala +++ b/src/ColorPickerWindow.vala @@ -179,7 +179,7 @@ namespace ColorPicker { int id = color_format_combobox.get_active (); update_color_format_combobox_text (format_entry, id); - + Gtk.Clipboard.get_default (this.get_display ()).set_text (ext_active_color.to_uppercase_hex_string (), -1); color_history.add_color (ext_active_color); var c_list = color_history.get_color_list ();