aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/common/colorsettings.h
blob: ab8df0d479761c0dbe57332a598bb23c3242cb64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "ui_colorsettings.h"
#include <QFrame>

namespace ScxmlEditor {
namespace Common {

class ColorSettings : public QFrame
{
    Q_OBJECT

public:
    explicit ColorSettings(QWidget *parent = nullptr);

    void save();
    void updateCurrentColors();
    void createTheme();
    void removeTheme();

private:
    void selectTheme(int);

    QVariantMap m_colorThemes;
    Ui::ColorSettings m_ui;
};

} // namespace Common
} // namespace ScxmlEditor