2017-10-11 17:16:52 +00:00
|
|
|
#ifndef APPBARSETTINGSEDITOR_H
|
|
|
|
#define APPBARSETTINGSEDITOR_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2022-02-17 12:40:12 +00:00
|
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
#include <QColorDialog>
|
|
|
|
#include <QPalette>
|
|
|
|
|
|
|
|
#include <qtmaterialappbar.h>
|
|
|
|
#include <qtmaterialiconbutton.h>
|
|
|
|
#include <lib/qtmaterialtheme.h>
|
|
|
|
|
2017-10-11 19:25:22 +00:00
|
|
|
#include "ui_appbarsettingsform.h"
|
2017-10-11 17:16:52 +00:00
|
|
|
|
2022-02-17 12:40:12 +00:00
|
|
|
using namespace md;
|
2017-10-11 17:16:52 +00:00
|
|
|
|
|
|
|
class AppBarSettingsEditor : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit AppBarSettingsEditor(QWidget *parent = 0);
|
|
|
|
~AppBarSettingsEditor();
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void setupForm();
|
|
|
|
void updateWidget();
|
2017-10-11 19:44:35 +00:00
|
|
|
void selectColor();
|
2017-10-11 17:16:52 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::AppBarSettingsForm *const ui;
|
2022-02-17 12:40:12 +00:00
|
|
|
AppBar *const m_appBar;
|
2017-10-11 17:16:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // APPBARSETTINGSEDITOR_H
|