mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:57:44 +00:00
WindowServer+LibGUI+FontEditor: Encode special characters as UTF-8
This commit is contained in:
parent
84bc6a92a7
commit
22e6978c71
5 changed files with 17 additions and 7 deletions
|
@ -20,7 +20,7 @@ GComboBox::GComboBox(GWidget* parent)
|
|||
};
|
||||
m_open_button = new GButton(this);
|
||||
m_open_button->set_focusable(false);
|
||||
m_open_button->set_text("\xf7");
|
||||
m_open_button->set_text("\xc3\xb6");
|
||||
m_open_button->on_click = [this](auto&) {
|
||||
if (m_list_window->is_visible())
|
||||
close();
|
||||
|
|
|
@ -17,12 +17,12 @@ GSpinBox::GSpinBox(GWidget* parent)
|
|||
};
|
||||
m_increment_button = new GButton(this);
|
||||
m_increment_button->set_focusable(false);
|
||||
m_increment_button->set_text("\xf6");
|
||||
m_increment_button->set_text("\xc3\xb6");
|
||||
m_increment_button->on_click = [this](GButton&) { set_value(m_value + 1); };
|
||||
m_increment_button->set_auto_repeat_interval(150);
|
||||
m_decrement_button = new GButton(this);
|
||||
m_decrement_button->set_focusable(false);
|
||||
m_decrement_button->set_text("\xf7");
|
||||
m_decrement_button->set_text("\xc3\xb7");
|
||||
m_decrement_button->on_click = [this](GButton&) { set_value(m_value - 1); };
|
||||
m_decrement_button->set_auto_repeat_interval(150);
|
||||
}
|
||||
|
|
|
@ -341,9 +341,9 @@ void GTableView::paint_headers(Painter& painter)
|
|||
builder.append(model()->column_name(column_index));
|
||||
auto sort_order = model()->sort_order();
|
||||
if (sort_order == GSortOrder::Ascending)
|
||||
builder.append(" \xf6");
|
||||
builder.append(" \xc3\xb6");
|
||||
else if (sort_order == GSortOrder::Descending)
|
||||
builder.append(" \xf7");
|
||||
builder.append(" \xc3\xb7");
|
||||
text = builder.to_string();
|
||||
} else {
|
||||
text = model()->column_name(column_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue