mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:25:07 +00:00
LibGUI: Replace up and down arrows with emoji
This commit is contained in:
parent
80699a0824
commit
d18f6e82eb
4 changed files with 8 additions and 8 deletions
|
@ -75,7 +75,7 @@ void AbstractTableView::update_column_sizes()
|
|||
continue;
|
||||
int header_width = header_font().width(model.column_name(column));
|
||||
if (column == key_column)
|
||||
header_width += font().width(" \xc3\xb6");
|
||||
header_width += font().width(" \xE2\xAC\x86"); // UPWARDS BLACK ARROW
|
||||
int column_width = header_width;
|
||||
for (int row = 0; row < row_count; ++row) {
|
||||
auto cell_data = model.data(model.index(row, column));
|
||||
|
@ -158,9 +158,9 @@ void AbstractTableView::paint_headers(Painter& painter)
|
|||
builder.append(model()->column_name(column_index));
|
||||
auto sort_order = model()->sort_order();
|
||||
if (sort_order == SortOrder::Ascending)
|
||||
builder.append(" \xc3\xb6");
|
||||
builder.append(" \xE2\xAC\x86"); // UPWARDS BLACK ARROW
|
||||
else if (sort_order == SortOrder::Descending)
|
||||
builder.append(" \xc3\xb7");
|
||||
builder.append(" \xE2\xAC\x87"); // DOWNWARDS BLACK ARROW
|
||||
text = builder.to_string();
|
||||
} else {
|
||||
text = model()->column_name(column_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue