mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +00:00
LibGUI: Add GTableModel::Role::ForegroundColor.
This makes it possible to specify the text color for each table cell. Use this to make the IRCClient show unread window list items in red.
This commit is contained in:
parent
f4b8e4966f
commit
d466f2634d
10 changed files with 120 additions and 63 deletions
|
@ -120,7 +120,7 @@ void IRCAppWindow::setup_widgets()
|
|||
m_window_list->set_alternating_row_colors(false);
|
||||
m_window_list->set_model(OwnPtr<IRCWindowListModel>(m_client.client_window_list_model()));
|
||||
m_window_list->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
m_window_list->set_preferred_size({ 120, 0 });
|
||||
m_window_list->set_preferred_size({ 100, 0 });
|
||||
m_client.client_window_list_model()->on_activation = [this] (IRCWindow& window) {
|
||||
m_container->set_active_widget(&window);
|
||||
window.clear_unread_count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue