diff options
author | Arno <am@disconnect.de> | 2010-12-22 16:59:12 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-12-26 20:49:27 +0100 |
commit | 7bb7295a9033c0a6729b301e7c9b76393539e29a (patch) | |
tree | df92ec2f09e1cf6797fde07dc495efb051c94b74 /configurationdialog.h | |
parent | 832d48d3b9249db178f649d00c5c7134bea2becb (diff) | |
download | SheMov-7bb7295a9033c0a6729b301e7c9b76393539e29a.tar.gz SheMov-7bb7295a9033c0a6729b301e7c9b76393539e29a.tar.bz2 SheMov-7bb7295a9033c0a6729b301e7c9b76393539e29a.zip |
Made colors configurable
Added a tab to ConfigurationDialog to make some colors configurable. It
works somehow. The font color isn't evaluated yet, since I'm not
convinced that it is a good idea.
But one problem is that calling qApp->setPalette() doesn't propagate to
non visible child dialogs. Dunno if it's worth fixing.
Diffstat (limited to 'configurationdialog.h')
-rw-r--r-- | configurationdialog.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configurationdialog.h b/configurationdialog.h index dd8e62b..0f7f76e 100644 --- a/configurationdialog.h +++ b/configurationdialog.h @@ -9,6 +9,7 @@ #define CONFIGURATIONDIALOG_H #include <QDialog> +#include <QHash> class QPushButton; class QTabWidget; @@ -16,6 +17,7 @@ class QLineEdit; class QComboBox; class QCheckBox; class QSpinBox; +class QLabel; class ProgramConfigurator; @@ -30,12 +32,15 @@ class ConfigurationDialog : public QDialog { private slots: void setGrabFrameEnabled(bool enabled); + void chooseColor(QWidget *label); + void alternateColorsChanged(int); private: void readSettings(); void writeSettings(); bool checkDvdPath(); void mountError(const QString &error); + void setColor(QWidget *label); QPushButton *mOk; QPushButton *mCancel; QTabWidget *mTab; @@ -58,6 +63,20 @@ class ConfigurationDialog : public QDialog { QCheckBox *mHoverArchive; QCheckBox *mHoverMovies; QSpinBox *mHoverOpacity; + QLabel *mSeenColor; + QLabel *mClipboardColor; + QLabel *mBaseColor; + QLabel *mAlternateBaseColor; + QLabel *mFontColor; + QLabel *mLocalColor; + QPushButton *mSeenButton; + QPushButton *mClipboardButton; + QPushButton *mBaseButton; + QPushButton *mAlternateBaseButton; + QPushButton *mFontColorButton; + QPushButton *mLocalColorButton; + QCheckBox *mAlternateColors; + QHash<QWidget*, QColor> mColors; }; #endif |