1
Fork 0
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:
Andreas Kling 2019-10-22 21:38:58 +02:00
parent 31b5047894
commit a6b153abf1
4 changed files with 33 additions and 2 deletions

View file

@ -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 {}