Skip to content
This repository
Browse code

Greeter: Un-hardcode background image

  • Loading branch information...
commit 7d3e01abda389fbc74f0d25b0f3d2321a282c558 1 parent 46264bc
Alec Moskvin amoskvin authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  razorqt-lightdm-greeter/mainwindow.cpp
3  razorqt-lightdm-greeter/mainwindow.cpp
@@ -28,6 +28,7 @@
28 28 #include <QtGui/QDesktopWidget>
29 29 #include <QtGui/QPalette>
30 30 #include <QtGui/QX11Info>
  31 +#include <razorqt/razorsettings.h>
31 32
32 33 #include "mainwindow.h"
33 34 #include "loginform.h"
@@ -40,7 +41,7 @@ MainWindow::MainWindow(int screen, QWidget *parent)
40 41
41 42 QRect screenRect = QApplication::desktop()->screenGeometry(screen);
42 43 setGeometry(screenRect);
43   - QImage image(QString(SHARE_DIR) + "/themes/light/simple_blue_widescreen.png");
  44 + QImage image(razorTheme.desktopBackground(screen));
44 45
45 46 QPalette palette;
46 47 palette.setBrush(this->backgroundRole(), QBrush(image.scaled(screenRect.width(), screenRect.right())));

0 comments on commit 7d3e01a

Please sign in to comment.
Something went wrong with that request. Please try again.