mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:15:07 +00:00
HackStudio: Show the currently open file in bold (in the project list)
Also import a little default C++ project called "little" :^)
This commit is contained in:
parent
31b5047894
commit
a6b153abf1
4 changed files with 33 additions and 2 deletions
|
@ -16,6 +16,12 @@ public:
|
|||
if (role == Role::Display) {
|
||||
return m_project.m_files.at(row);
|
||||
}
|
||||
if (role == Role::Font) {
|
||||
extern String g_currently_open_file;
|
||||
if (m_project.m_files.at(row) == g_currently_open_file)
|
||||
return Font::default_bold_font();
|
||||
return {};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
virtual void update() override {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue