Feat: (Linux) Themes allow transparency on chat windows background (#6137)

This commit is contained in:
apa420
2025-04-13 10:34:25 +00:00
committed by GitHub
parent e1863d64ee
commit 3ba25dd33d
4 changed files with 33 additions and 8 deletions
+6
View File
@@ -75,6 +75,12 @@ Window::Window(WindowType type, QWidget *parent)
if (type == WindowType::Main)
{
this->resize(int(600 * this->scale()), int(500 * this->scale()));
#ifdef Q_OS_LINUX
if (this->theme->window.background.alpha() != 255)
{
this->setAttribute(Qt::WA_TranslucentBackground);
}
#endif
}
else
{