Permalink
Browse files

Greeter: Un-hardcode background image

  • Loading branch information...
1 parent 46264bc commit 7d3e01abda389fbc74f0d25b0f3d2321a282c558 @amoskvin amoskvin committed Sep 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 razorqt-lightdm-greeter/mainwindow.cpp
@@ -28,6 +28,7 @@
#include <QtGui/QDesktopWidget>
#include <QtGui/QPalette>
#include <QtGui/QX11Info>
+#include <razorqt/razorsettings.h>
#include "mainwindow.h"
#include "loginform.h"
@@ -40,7 +41,7 @@ MainWindow::MainWindow(int screen, QWidget *parent)
QRect screenRect = QApplication::desktop()->screenGeometry(screen);
setGeometry(screenRect);
- QImage image(QString(SHARE_DIR) + "/themes/light/simple_blue_widescreen.png");
+ QImage image(razorTheme.desktopBackground(screen));
QPalette palette;
palette.setBrush(this->backgroundRole(), QBrush(image.scaled(screenRect.width(), screenRect.right())));

0 comments on commit 7d3e01a

Please sign in to comment.