bsnes/higan/target-tomoko/presentation/about.cpp

28 lines
672 B
C++

AboutWindow::AboutWindow() {
aboutWindow = this;
setTitle("About higan ...");
setBackgroundColor({255, 255, 240});
layout.setMargin(10);
auto logo = image{Resource::Logo::higan};
logo.alphaBlend(0xfffff0);
canvas.setIcon(logo);
informationLeft.setFont(Font().setBold()).setAlignment(1.0).setText({
"Version:\n",
"Author:\n",
"License:\n",
"Website:"
});
informationRight.setFont(Font().setBold()).setAlignment(0.0).setText({
Emulator::Version, "\n",
Emulator::Author, "\n",
Emulator::License, "\n",
Emulator::Website
});
setResizable(false);
setSize(layout.minimumSize());
setCentered();
setDismissable();
}