mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:27:45 +00:00
ClipboardHistory: Update to new glyph format
This commit is contained in:
parent
1d98499234
commit
310fdd87d1
1 changed files with 2 additions and 7 deletions
|
@ -85,13 +85,8 @@ GUI::Variant ClipboardHistoryModel::data(const GUI::ModelIndex& index, GUI::Mode
|
||||||
if (data_and_type.mime_type.starts_with("glyph/")) {
|
if (data_and_type.mime_type.starts_with("glyph/")) {
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
builder.append("[");
|
builder.append("[");
|
||||||
builder.append(data_and_type.metadata.get("width").value_or("?"));
|
builder.append(data_and_type.metadata.get("count").value_or("?"));
|
||||||
builder.append("x");
|
builder.append(" glyph(s)]");
|
||||||
builder.append(data_and_type.metadata.get("height").value_or("?"));
|
|
||||||
builder.append("] ");
|
|
||||||
builder.append("(");
|
|
||||||
builder.append(data_and_type.metadata.get("char").value_or(""));
|
|
||||||
builder.append(")");
|
|
||||||
return builder.to_string();
|
return builder.to_string();
|
||||||
}
|
}
|
||||||
return "<...>";
|
return "<...>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue