#ifndef TIPWIDGET_H
#define TIPWIDGET_H

#include <QDialog>
#include <QDebug>

class TipWidget : public QDialog
{
    Q_OBJECT
public:
    enum TipType {
        OK,
        ERROR,
        WARNING
    };

    explicit TipWidget(QWidget *parent = nullptr);
    ~TipWidget();

    void setLightTheme();
    void setBlackTheme();
    QWidget *getWidget(){return w;}
    static void showTip(QString tip, int show_time, QSize size, QWidget* parent = nullptr, TipType type = OK);

signals:

private:

    QWidget *w;
};

#endif // TIPWIDGET_H
