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:
parent
9c6be9b21e
commit
0ae475ff5b
3 changed files with 32 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue