From 9b58d5d4d90cfd757a09857b1350d5e9b39e01fe Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 20 Feb 2021 15:49:09 +0100 Subject: [PATCH] =?UTF-8?q?color=20picker:=20just=20copy=20the=20r,g,b,a?= =?UTF-8?q?=20values=20without=20a=20"rgba(=E2=80=A6)"=20wrapper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- egui/src/widgets/color_picker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egui/src/widgets/color_picker.rs b/egui/src/widgets/color_picker.rs index 65caa341..2f1b8eb6 100644 --- a/egui/src/widgets/color_picker.rs +++ b/egui/src/widgets/color_picker.rs @@ -212,7 +212,7 @@ fn color_text_ui(ui: &mut Ui, color: impl Into) { )); if ui.button("📋").on_hover_text("Click to copy").clicked() { - ui.output().copied_text = format!("rgba({}, {}, {}, {})", r, g, b, a); + ui.output().copied_text = format!("{}, {}, {}, {}", r, g, b, a); } }); }