@@ -17,6 +17,8 @@
17#include "UsersModelPrivate.h"
17#include "UsersModelPrivate.h"
18#include "UsersModel.h"
18#include "UsersModel.h"
20namespace QLightDM
22namespace QLightDM
@@ -53,6 +55,15 @@ void UsersModelPrivate::resetEntries()
53 entries[i].uid = i + 1;
55 entries[i].uid = i + 1;
58+ // Assign backgrounds
59+ QDir backgroundDir("/usr/share/backgrounds");
60+ QStringList backgrounds = backgroundDir.entryList(QDir::Files);
61+ for (int i = 0; i < entries.size(); i++) {
62+ if (entries[i].background.isNull()) {
63+ entries[i].background = backgroundDir.filePath(backgrounds[i % backgrounds.size()]);
56 q->endResetModel();
67 q->endResetModel();
@@ -96,7 +107,7 @@ void UsersModelPrivate::resetEntries_full()
96 { "wide-info-prompt", "Wide Info Prompt", 0, 0, false, false, "ubuntu", 0 },
107 { "wide-info-prompt", "Wide Info Prompt", 0, 0, false, false, "ubuntu", 0 },
97 { "multi-info-prompt", "Multi Info Prompt", 0, 0, false, false, "ubuntu", 0 },
108 { "multi-info-prompt", "Multi Info Prompt", 0, 0, false, false, "ubuntu", 0 },
98 { "long-name", "Long name (far far too long to fit, seriously this would never fit on the screen, you will never see this part of the name)", 0, 0, false, false, "ubuntu", 0 },
109 { "long-name", "Long name (far far too long to fit, seriously this would never fit on the screen, you will never see this part of the name)", 0, 0, false, false, "ubuntu", 0 },
99− { "color-background", "Color Background", "#dd4814", 0, false, false, "ubuntu", 0 },
110+ { "color-background", "Color Background", "#E95420", 0, false, false, "ubuntu", 0 },
100 // white and black are a bit redundant, but useful for manually testing if UI is still readable
111 // white and black are a bit redundant, but useful for manually testing if UI is still readable
101 { "white-background", "White Background", "#ffffff", 0, false, false, "ubuntu", 0 },
112 { "white-background", "White Background", "#ffffff", 0, false, false, "ubuntu", 0 },
102 { "black-background", "Black Background", "#000000", 0, false, false, "ubuntu", 0 },
113 { "black-background", "Black Background", "#000000", 0, false, false, "ubuntu", 0 },