Skip to content

Commit 2450793

Browse files
committed
Closes #1347
1 parent 1c12912 commit 2450793

File tree

7 files changed

+18
-1
lines changed

7 files changed

+18
-1
lines changed

src/Interface/Application/MainWindowCollaborators.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,3 +442,15 @@ int DockManager::usedSpace() const
442442
return std::accumulate(currentDialogs_.begin(), currentDialogs_.end(), 0,
443443
[](int height, ModuleDialogGeneric* d) { return height + (d->isCollapsed() ? 0 : d->size().height()); });
444444
}
445+
446+
QString SCIRun::Gui::networkBackgroundImage()
447+
{
448+
auto date = QDate::currentDate();
449+
if (12 == date.month() && 20 < date.day() && date.day() < 28)
450+
return ":/general/Resources/ski.png";
451+
if (11 == date.month() && 20 < date.day() && date.day() < 31)
452+
return ":/general/Resources/turkey.png";
453+
if (10 == date.month() && 31 == date.day())
454+
return ":/general/Resources/pumpkin.png";
455+
return ":/general/Resources/SCIgrid-small.png";
456+
}

src/Interface/Application/MainWindowCollaborators.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ namespace Gui {
252252
std::deque<ModuleDialogGeneric*> collapseQueue_;
253253
int usedSpace() const;
254254
};
255+
256+
QString networkBackgroundImage();
255257
}
256258
}
257259
#endif

src/Interface/Application/NetworkEditor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ NetworkEditor::NetworkEditor(const NetworkEditorParameters& params, QWidget* par
7777
moduleEventProxy_(new ModuleEventProxy),
7878
zLevelManager_(new ZLevelManager(scene_))
7979
{
80-
setBackgroundBrush(QPixmap(":/general/Resources/SCIgrid-small.png"));
80+
setBackgroundBrush(QPixmap(networkBackgroundImage()));
8181

8282
setHighResolutionExpandFactor(highResolutionExpandFactor_);
8383

11.1 KB
Loading
17.8 KB
Loading
18.1 KB
Loading

src/Interface/Application/scirun5.qrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<file>Resources/SCIgrid-large.png</file>
1717
<file>Resources/SCIgrid-medium.png</file>
1818
<file>Resources/SCIgrid-small.png</file>
19+
<file>Resources/pumpkin.png</file>
20+
<file>Resources/turkey.png</file>
21+
<file>Resources/ski.png</file>
1922
<file>Resources/cursor_hand_icon.png</file>
2023
<file>Resources/redo.png</file>
2124
<file>Resources/undo.png</file>

0 commit comments

Comments
 (0)