From 30c606fdc850a4eedd206137a0ee67d8b521686f Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Tue, 23 Jul 2019 03:01:29 +0900 Subject: [PATCH] About screen improvements. --- bsnes/target-bsnes/presentation/presentation.cpp | 3 +++ hiro/extension/about-dialog.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bsnes/target-bsnes/presentation/presentation.cpp b/bsnes/target-bsnes/presentation/presentation.cpp index 89e319c4..f145c37d 100644 --- a/bsnes/target-bsnes/presentation/presentation.cpp +++ b/bsnes/target-bsnes/presentation/presentation.cpp @@ -174,7 +174,9 @@ auto Presentation::create() -> void { }); about.setIcon(Icon::Prompt::Question).setText({tr("About bsnes"), " ..."}).onActivate([&] { AboutDialog() + .setName(Emulator::Name) .setLogo(Resource::Logo) + .setDescription("Super Nintendo emulator") .setVersion(Emulator::Version) .setAuthor("byuu") .setLicense("GPLv3") @@ -186,6 +188,7 @@ auto Presentation::create() -> void { AboutDialog() .setName("SameBoy") .setLogo(Resource::SameBoy) + .setDescription("Super Game Boy emulator") .setVersion("0.12.1") .setAuthor("Lior Halphon") .setLicense("MIT") diff --git a/hiro/extension/about-dialog.cpp b/hiro/extension/about-dialog.cpp index 3b1d1d24..c833e3e6 100644 --- a/hiro/extension/about-dialog.cpp +++ b/hiro/extension/about-dialog.cpp @@ -137,7 +137,7 @@ auto AboutDialog::show() -> void { websiteValue.setAlignment(0.0); websiteValue.setFont(Font().setBold()); websiteValue.setForegroundColor({0, 0, 240}); - websiteValue.setText(state.website); + websiteValue.setText(string{state.website}.trimLeft("http://", 1L).trimLeft("https://", 1L)); //so that the hand cursor is only visible when overing over the link. websiteValue.setMouseCursor(MouseCursor::Hand); websiteValue.onMouseRelease([&](auto button) {