added README/reimpl header

This commit is contained in:
Hane 2024-05-06 19:32:22 +02:00
commit 071505d3fe
3 changed files with 147 additions and 2 deletions

View file

@ -830,8 +830,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
//todo: ratio
setWindowFlags(Qt::Window | Qt::MSWindowsFixedSizeDialogHint);
setWindowFlags(Qt::FramelessWindowHint | Qt::ToolTip);
setAttribute(Qt::WA_TranslucentBackground);
setStyleSheet("background-color: rgba(255,182,193,90%);");
//setAttribute(Qt::WA_TranslucentBackground);
//setStyleSheet("background-color: rgba(255,182,193,60%);");
setWindowTitle(STRING_TITLE);
connect(qApp, &QGuiApplication::applicationStateChanged, this, [=](Qt::ApplicationState state){
if(state == Qt::ApplicationState::ApplicationInactive) hide();