Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated "What's new" dialog #6437

Merged

Conversation

vsverchinsky
Copy link
Collaborator

Resolves: #6365

Needs correct links and images.

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the entire SplashDialog can get deleted. We now always show the new WhatsNewDialog. HAS_WHATS_NEW also doesn't need to be a flag anymore.

The SplashDialog does have functions to show you some paragraphs about alpha and beta versions - I don't think we need those anymore, as long as the WhatsNewDialog a) is enabled in alpha/beta builds and b) says it is an alpha/beta in the dialog.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When compiling out of sources you need to explicitly define -DSHOW_WHATS_NEW_SECTION=Yes cmake variable to enable this new dialog. CI is configured to define that variable for us, but it's not the case when compiling out of sources. Linux distros maintainers likely compile Audacity with old-style SplashDialog without images and links to YouTube.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Let's set SHOW_WHATS_NEW_SECTION=Yes in the source by default then, and let maintainers explicitly opt out of it if they don't want it. And if they do opt out, let's just not show any startup screen.

@vsverchinsky vsverchinsky force-pushed the i6365-whats-new-dialog-update branch from ea29fe5 to 60290ff Compare May 16, 2024 08:25
@vsverchinsky vsverchinsky marked this pull request as ready for review May 17, 2024 10:37
Copy link
Contributor

@saintmatthieu saintmatthieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see anything wrong code safety wise, but am less able to judge if visually and behaviorally this meets the requirements, so maybe let @LWinterberg double-check on that before moving on.

s
<< wxT("<body bgcolor=") << wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE).GetAsString(wxC2S_HTML_SYNTAX) << wxT(">")
<< wxT("<p><center>")
<< wxT(R"(<p><a href=")") << WhatsNewURL << wxT(R"(">)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: since WhatsNewURL is only used here, it could be constexpred within this method.

Copy link
Member

@LWinterberg LWinterberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still awaiting final approval for the strings from martin

Comment on lines 38 to 49
const char* PluginsURL = "";
const char* MuseHubURL = "";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MusehubURL and PluginsURL are identical. rename instances of PluginsURL to MuseHubURL and set MuseHubURL "https://www.musehub.com"


WhatsNewDialog::WhatsNewDialog(wxWindow* parent, wxWindowID id)
: wxDialogWrapper(parent, id, XO("Welcome to Audacity!"),
wxDefaultPosition, wxSize(906, 580))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a little mighty I found. Unless there's rendering differences between platforms, I found that a window height of 480 worked well with a 20px border.

before:
image

after:
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how it looks on my machine with 40 px border :/
изображение

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this is because of dpi scaling ...


S.StartHorizontalLay(wxEXPAND);
{
S.SetBorder(40);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this border I set to 20)

@LWinterberg
Copy link
Member

Oh also, while we wait for the strings: similar to #6446 we need to hide the musehub part of this on Linux because it's not available there.

Might look something like this:

image

@LWinterberg
Copy link
Member

Strings approved

@vsverchinsky vsverchinsky force-pushed the i6365-whats-new-dialog-update branch from 60290ff to 0bdfebc Compare May 17, 2024 14:06
@vsverchinsky
Copy link
Collaborator Author

@LWinterberg can you please check how it looks now for you?

@LWinterberg
Copy link
Member

windows @ 100%
image

@ 150%

image

@ 225%
image

@vsverchinsky vsverchinsky force-pushed the i6365-whats-new-dialog-update branch from 0bdfebc to 5847dce Compare May 20, 2024 10:35
@vsverchinsky
Copy link
Collaborator Author

Squashed and rebased

@vsverchinsky vsverchinsky merged commit 1003af6 into audacity:master May 20, 2024
10 of 11 checks passed
@vsverchinsky vsverchinsky deleted the i6365-whats-new-dialog-update branch May 20, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redesign "what's new" Dialog
3 participants