diff --git a/components/qtmaterialavatar.cpp b/components/qtmaterialavatar.cpp index 08d09ed..14277da 100644 --- a/components/qtmaterialavatar.cpp +++ b/components/qtmaterialavatar.cpp @@ -110,6 +110,7 @@ void QtMaterialAvatar::setTextColor(const QColor &color) d->textColor = color; setUseThemeColors(false); + update(); } QColor QtMaterialAvatar::textColor() const @@ -129,6 +130,7 @@ void QtMaterialAvatar::setBackgroundColor(const QColor &color) d->backgroundColor = color; setUseThemeColors(false); + update(); } QColor QtMaterialAvatar::backgroundColor() const diff --git a/components/qtmaterialbadge.cpp b/components/qtmaterialbadge.cpp index 5e1eaa5..e125440 100644 --- a/components/qtmaterialbadge.cpp +++ b/components/qtmaterialbadge.cpp @@ -103,6 +103,7 @@ void QtMaterialBadge::setTextColor(const QColor &color) d->textColor = color; setUseThemeColors(false); + update(); } QColor QtMaterialBadge::textColor() const @@ -122,6 +123,7 @@ void QtMaterialBadge::setBackgroundColor(const QColor &color) d->backgroundColor = color; setUseThemeColors(false); + update(); } QColor QtMaterialBadge::backgroundColor() const diff --git a/examples/mainwindow.cpp b/examples/mainwindow.cpp index d8c78bd..3d3cf66 100644 --- a/examples/mainwindow.cpp +++ b/examples/mainwindow.cpp @@ -6,11 +6,11 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { - //AvatarSettingsEditor *editor = new AvatarSettingsEditor; - //setCentralWidget(editor); - - BadgeSettingsEditor *editor = new BadgeSettingsEditor; + AvatarSettingsEditor *editor = new AvatarSettingsEditor; setCentralWidget(editor); + + //BadgeSettingsEditor *editor = new BadgeSettingsEditor; + //setCentralWidget(editor); } MainWindow::~MainWindow()