Browse Source

Projucer: Improved the layout of the user settings popup window

tags/2021-05-28
ed 8 years ago
parent
commit
a277cf64a3
2 changed files with 9 additions and 8 deletions
  1. +5
    -4
      extras/Projucer/Source/Project/UI/jucer_HeaderComponent.h
  2. +4
    -4
      extras/Projucer/Source/Utility/UI/jucer_UserSettingsPopup.h

+ 5
- 4
extras/Projucer/Source/Project/UI/jucer_HeaderComponent.h 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);
}


+ 4
- 4
extras/Projucer/Source/Utility/UI/jucer_UserSettingsPopup.h 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));


Loading…
Cancel
Save