1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Projucer: Improved the layout of the user settings popup window

This commit is contained in:
ed 2017-10-26 16:44:01 +01:00
parent c0d409c773
commit a277cf64a3
2 changed files with 9 additions and 8 deletions

View file

@ -172,15 +172,16 @@ public:
void showUserSettings()
{
#if JUCER_ENABLE_GPL_MODE
const int settingsPopupHeight = 75;
auto settingsPopupHeight = 40;
auto settingsPopupWidth = 200;
#else
const int settingsPopupHeight = 150;
auto settingsPopupHeight = 150;
auto settingsPopupWidth = 250;
#endif
auto* content = new UserSettingsPopup (false);
content->setSize (200, settingsPopupHeight);
content->setSize (settingsPopupWidth, settingsPopupHeight);
userSettingsWindow = &CallOutBox::launchAsynchronously (content, userSettingsButton->getScreenBounds(), nullptr);
}

View file

@ -44,7 +44,7 @@ public:
ignoreUnused (isShownInsideWebview);
#endif
auto standardFont = Font (12.0f);
auto standardFont = Font (16.0f);
addAndMakeVisible (loggedInUsernameLabel = new Label ("Username Label"));
@ -84,12 +84,12 @@ public:
void resized() override
{
auto bounds = getLocalBounds().reduced (10, 20);
auto bounds = getLocalBounds().reduced (10);
#if JUCER_ENABLE_GPL_MODE
loggedInUsernameLabel->setBounds (bounds);
#else
loggedInUsernameLabel->setBounds (bounds.removeFromTop (25));
loggedInUsernameLabel->setBounds (bounds.removeFromTop (hasLicenseType ? 25 : 75));
if (hasLicenseType)
{
@ -98,7 +98,7 @@ public:
}
bounds.removeFromBottom (5);
auto buttonArea = bounds.removeFromBottom (30);
auto buttonArea = bounds.removeFromBottom (40);
if (! isInsideWebview)
switchLicenseButton->setBounds (buttonArea.removeFromRight (buttonArea.getWidth() / 2).reduced (2));