Skip to content

Commit c80b3db

Browse files
committed
Reduce border thickness for MainWindow
1 parent c4a6639 commit c80b3db

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Source/MainWindow.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "UI/UIComponent.h"
3434
#include "Utils/OpenEphysHttpServer.h"
3535

36-
3736
class OpenEphysHttpServer;
3837

3938
/**
@@ -51,6 +50,12 @@ class MainDocumentWindow : public DocumentWindow
5150
/** Called when the user hits the close button of the MainWindow. This destroys
5251
the MainWindow and closes the application. */
5352
void closeButtonPressed();
53+
54+
/** Set the border thickness to 1 unit on all sides. */
55+
BorderSize<int> getBorderThickness() const override
56+
{
57+
return BorderSize<int> (1);
58+
}
5459
};
5560

5661
/**

Source/UI/LookAndFeel/CustomLookAndFeel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ void CustomLookAndFeel::drawMenuBarBackground (Graphics& g, int width, int heigh
714714
{
715715
const Colour colour (findColour (ThemeColours::menuBackground));
716716

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

719719
g.setColour (colour.contrasting (0.15f));
720720
g.fillRect (r.removeFromBottom (1));

0 commit comments

Comments
 (0)