Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Terminal: Blur background
Browse files Browse the repository at this point in the history
  • Loading branch information
byteduck committed Feb 24, 2023
1 parent d0d42b8 commit e411595
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion programs/applications/terminal/TerminalWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <libui/widget/MenuWidget.h>

static const uint32_t color_palette[] = {
0xFF000000,
0x99000000,
0xFFAA0000,
0xFF00AA00,
0xFFAA5500,
Expand All @@ -47,6 +47,7 @@ static const uint32_t color_palette[] = {
TerminalWidget::TerminalWidget() {
font = UI::Theme::font_mono();
term = new Term::Terminal({1, 1}, *this);
set_uses_alpha(true);

//Setup PTY
pty_fd = posix_openpt(O_RDWR | O_CLOEXEC);
Expand Down
2 changes: 2 additions & 0 deletions programs/applications/terminal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ int main(int argc, char** argv, char** envp) {
//Make window
auto window = UI::Window::make();
window->set_title("Terminal");
window->set_uses_alpha(true);
window->pond_window()->set_blur_behind(true);

//Create terminal widget
auto termwidget = TerminalWidget::make();
Expand Down

0 comments on commit e411595

Please sign in to comment.