1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:57:44 +00:00

Terminal: Add ability to adjust the terminal's opacity.

This commit is contained in:
Andreas Kling 2019-04-29 19:24:18 +02:00
parent 9c6be9b21e
commit 0ae475ff5b
3 changed files with 32 additions and 1 deletions

View file

@ -882,3 +882,11 @@ void Terminal::update_cursor()
invalidate_cursor();
flush_dirty_lines();
}
void Terminal::set_opacity(float opacity)
{
if (m_opacity == opacity)
return;
m_opacity = opacity;
force_repaint();
}