color picker: just copy the r,g,b,a values without a "rgba(…)" wrapper
This commit is contained in:
parent
ac356e2bd8
commit
9b58d5d4d9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue