Skip to content

Commit

Permalink
Reduce border thickness for MainWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Feb 12, 2025
1 parent c4a6639 commit c80b3db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Source/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "UI/UIComponent.h"
#include "Utils/OpenEphysHttpServer.h"


class OpenEphysHttpServer;

/**
Expand All @@ -51,6 +50,12 @@ class MainDocumentWindow : public DocumentWindow
/** Called when the user hits the close button of the MainWindow. This destroys
the MainWindow and closes the application. */
void closeButtonPressed();

/** Set the border thickness to 1 unit on all sides. */
BorderSize<int> getBorderThickness() const override
{
return BorderSize<int> (1);
}
};

/**
Expand Down
2 changes: 1 addition & 1 deletion Source/UI/LookAndFeel/CustomLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ void CustomLookAndFeel::drawMenuBarBackground (Graphics& g, int width, int heigh
{
const Colour colour (findColour (ThemeColours::menuBackground));

Rectangle<int> r (1, 0, width - 2, height);
Rectangle<int> r (0, 0, width, height);

g.setColour (colour.contrasting (0.15f));
g.fillRect (r.removeFromBottom (1));
Expand Down

0 comments on commit c80b3db

Please sign in to comment.