Skip to content

Commit

Permalink
Version bump, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed May 9, 2022
1 parent 0d61157 commit 1bcbf6d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ project(PlugData VERSION 0.5 LANGUAGES C CXX)

add_subdirectory(Libraries/)

set(PLUGDATA_VERSION "0.5.1")
set(PLUGDATA_VERSION "0.5.2")
set(PLUGDATA_COMPANY_NAME "Octagon")
set(PLUGDATA_COMPANY_COPYRIGHT "PlugData by Timothy Schoen")
set(PLUGDATA_COMPANY_WEBSITE "github.com/timothyschoen/plugdata")
Expand Down
2 changes: 1 addition & 1 deletion Source/PluginConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
namespace ProjectInfo
{
const char* const companyName = "Octagon";
const char* const versionString = "0.5.1";
const char* const versionString = "0.5.2";
} // namespace ProjectInfo
28 changes: 18 additions & 10 deletions Source/Standalone/PlugDataWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class PlugDataWindow : public DocumentWindow
// Replacement for native Windows shadow, to allow rounded corners
#if CUSTOM_SHADOW
Image shadowImageT, shadowImageB, shadowImageL, shadowImageR;
DropShadow shadow = DropShadow(Colour(20, 20, 20).withAlpha(0.3f), 4, Point<int>(0, 0));
DropShadow shadow = DropShadow(Colour(20, 20, 20).withAlpha(0.3f), 6, Point<int>(0, 0));
#endif

public:
Expand Down Expand Up @@ -592,11 +592,10 @@ class PlugDataWindow : public DocumentWindow
#if CUSTOM_SHADOW
void paint(Graphics& g) override
{

g.drawImageAt(shadowImageT, 0, 0);
g.drawImageAt(shadowImageB, 0, getHeight() - 6);
g.drawImageAt(shadowImageL, 0, 0);
g.drawImageAt(shadowImageR, getWidth() - 6, 0);
g.drawImageAt(shadowImageL, 0, 6);
g.drawImageAt(shadowImageR, getWidth() - 6, 6);
}
#endif

Expand All @@ -620,14 +619,23 @@ class PlugDataWindow : public DocumentWindow

g.setColour(Colour(186, 186, 186));
g.drawRoundedRectangle(b.toFloat().reduced(4), 6.0f, 1.0f);
#endif
shadowImageT = shadowImage.getClippedImage({0, 0, getWidth(), 6});
shadowImageB = shadowImage.getClippedImage({0, getHeight() - 6, getWidth(), 6});
shadowImageL = shadowImage.getClippedImage({0, 0, 6, getHeight()});
shadowImageR = shadowImage.getClippedImage({getWidth() - 6, 0, 6, getHeight()});



auto top = b.removeFromTop(6);
shadowImageT = shadowImage.getClippedImage(top);

auto bottom = b.removeFromBottom(6);
shadowImageB = shadowImage.getClippedImage(bottom);

auto left = b.removeFromLeft(6);
shadowImageL = shadowImage.getClippedImage(left);

auto right = b.removeFromRight(6);
shadowImageR = shadowImage.getClippedImage(right);

#endif
}


virtual StandalonePluginHolder* getPluginHolder()
{
Expand Down

0 comments on commit 1bcbf6d

Please sign in to comment.