color picker: just copy the r,g,b,a values without a "rgba(…)" wrapper

This commit is contained in:
Emil Ernerfeldt 2021-02-20 15:49:09 +01:00
parent ac356e2bd8
commit 9b58d5d4d9

View file

@ -212,7 +212,7 @@ fn color_text_ui(ui: &mut Ui, color: impl Into<Color32>) {
));
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);
}
});
}