Blur and Command line opts

* blur background image
* command line options for
        * background blur radius
        * background opacity
        * path to image folder
        * timeout for password rotation
This commit is contained in:
Manuel
2019-01-23 22:26:36 +01:00
parent 34a6394ee8
commit aa168ca222
4 changed files with 84 additions and 21 deletions

View File

@@ -20,17 +20,23 @@ public:
void resizeEvent(QResizeEvent* event);
~MainWindow();
void setImage(std::string path);
void setBlurRadius(unsigned int blurRadius);
void setBackgroundOpacity(unsigned int opacity);
private:
Ui::MainWindow *ui;
QLabel *image;
std::string currentImage;
unsigned int blurRadius = 20;
unsigned int backgroundOpacity = 150;
void updateImage();
int getImageRotation();
QPixmap getRotatedPixmap(const QPixmap& p);
QPixmap getScaledPixmap(const QPixmap& p);
void drawBackground(const QPixmap& originalSize, const QPixmap& scaled);
QPixmap blur(const QPixmap& input);
};
#endif // MAINWINDOW_H