summaryrefslogtreecommitdiff
path: root/Applications/Piano/SamplerWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-23 11:09:20 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-23 11:10:52 +0100
commitbfd86c46316c0a7b0fca2b6966ec57884124caab (patch)
tree43e98365bf20dea6d7f827806ecfd9a797940939 /Applications/Piano/SamplerWidget.cpp
parent3d20da9ee451460b6e233f5efdf5a13e11525f97 (diff)
downloadserenity-bfd86c46316c0a7b0fca2b6966ec57884124caab.zip
LibGUI: Make GUI::Frame have the 2px sunken container look by default
The overwhelming majority of GUI::Frame users set the same appearance, so let's just make it the default.
Diffstat (limited to 'Applications/Piano/SamplerWidget.cpp')
-rw-r--r--Applications/Piano/SamplerWidget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/Applications/Piano/SamplerWidget.cpp b/Applications/Piano/SamplerWidget.cpp
index ea227659b9..2231afcea3 100644
--- a/Applications/Piano/SamplerWidget.cpp
+++ b/Applications/Piano/SamplerWidget.cpp
@@ -36,9 +36,6 @@
WaveEditor::WaveEditor(AudioEngine& audio_engine)
: m_audio_engine(audio_engine)
{
- set_frame_thickness(2);
- set_frame_shadow(Gfx::FrameShadow::Sunken);
- set_frame_shape(Gfx::FrameShape::Container);
}
WaveEditor::~WaveEditor()
@@ -94,9 +91,6 @@ void WaveEditor::paint_event(GUI::PaintEvent& event)
SamplerWidget::SamplerWidget(AudioEngine& audio_engine)
: m_audio_engine(audio_engine)
{
- set_frame_thickness(2);
- set_frame_shadow(Gfx::FrameShadow::Sunken);
- set_frame_shape(Gfx::FrameShape::Container);
set_layout(make<GUI::VerticalBoxLayout>());
layout()->set_margins({ 10, 10, 10, 10 });
layout()->set_spacing(10);