aboutsummaryrefslogtreecommitdiff
path: root/lumina-config/ThemeDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-config/ThemeDialog.cpp')
-rw-r--r--lumina-config/ThemeDialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-config/ThemeDialog.cpp b/lumina-config/ThemeDialog.cpp
index 21413841..de17a3d8 100644
--- a/lumina-config/ThemeDialog.cpp
+++ b/lumina-config/ThemeDialog.cpp
@@ -29,6 +29,10 @@ ThemeDialog::ThemeDialog(QWidget *parent, LPlugins *plugs, QString themeFilePath
loadTheme();
connect(colormenu, SIGNAL(triggered(QAction*)),this, SLOT(menuTriggered(QAction*)) );
connect(ui->text_file, SIGNAL(textChanged()), this, SLOT(themeChanged()) );
+
+ //Now center the window on the parent
+ QPoint cen = parent->geometry().center();
+ this->move( cen.x() - (this->width()/2) , cen.y() - (this->height()/2) );
}
void ThemeDialog::loadTheme(){
bgstack15