- Use a Light theme to clearly differentiate GZDoom from VKDoom - Moved the version label to not visually clash with the banner graphics - Added unique graphics for the banner and the BOOTLOGO - Changed the loading bar color to match GZDoom's logo
23 lines
569 B
C++
23 lines
569 B
C++
|
|
#include "launcherbanner.h"
|
|
#include "gstrings.h"
|
|
#include "version.h"
|
|
#include <zwidget/widgets/imagebox/imagebox.h>
|
|
#include <zwidget/widgets/textlabel/textlabel.h>
|
|
#include <zwidget/core/image.h>
|
|
|
|
LauncherBanner::LauncherBanner(Widget* parent) : Widget(parent)
|
|
{
|
|
Logo = new ImageBox(this);
|
|
Logo->SetImage(Image::LoadResource("widgets/banner.png"));
|
|
}
|
|
|
|
double LauncherBanner::GetPreferredHeight() const
|
|
{
|
|
return Logo->GetPreferredHeight();
|
|
}
|
|
|
|
void LauncherBanner::OnGeometryChanged()
|
|
{
|
|
Logo->SetFrameGeometry(0.0, 0.0, GetWidth(), Logo->GetPreferredHeight());
|
|
}
|