mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +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:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user