summaryrefslogtreecommitdiff
path: root/Applications/Piano
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
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')
-rw-r--r--Applications/Piano/KeysWidget.cpp3
-rw-r--r--Applications/Piano/KnobsWidget.cpp3
-rw-r--r--Applications/Piano/RollWidget.cpp4
-rw-r--r--Applications/Piano/SamplerWidget.cpp6
-rw-r--r--Applications/Piano/WaveWidget.cpp3
5 files changed, 0 insertions, 19 deletions
diff --git a/Applications/Piano/KeysWidget.cpp b/Applications/Piano/KeysWidget.cpp
index 9fd8779d5a..e757ef57c4 100644
--- a/Applications/Piano/KeysWidget.cpp
+++ b/Applications/Piano/KeysWidget.cpp
@@ -32,9 +32,6 @@
KeysWidget::KeysWidget(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_fill_with_background_color(true);
}
diff --git a/Applications/Piano/KnobsWidget.cpp b/Applications/Piano/KnobsWidget.cpp
index c272ff80e8..0a4bf4b02f 100644
--- a/Applications/Piano/KnobsWidget.cpp
+++ b/Applications/Piano/KnobsWidget.cpp
@@ -36,9 +36,6 @@ KnobsWidget::KnobsWidget(AudioEngine& audio_engine, MainWidget& main_widget)
: m_audio_engine(audio_engine)
, m_main_widget(main_widget)
{
- set_frame_thickness(2);
- set_frame_shadow(Gfx::FrameShadow::Sunken);
- set_frame_shape(Gfx::FrameShape::Container);
set_layout(make<GUI::VerticalBoxLayout>());
set_fill_with_background_color(true);
diff --git a/Applications/Piano/RollWidget.cpp b/Applications/Piano/RollWidget.cpp
index 8efb6dd671..03b87413ac 100644
--- a/Applications/Piano/RollWidget.cpp
+++ b/Applications/Piano/RollWidget.cpp
@@ -36,10 +36,6 @@ constexpr int roll_height = note_count * note_height;
RollWidget::RollWidget(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_should_hide_unnecessary_scrollbars(true);
set_content_size({ 0, roll_height });
vertical_scrollbar().set_value(roll_height / 2);
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);
diff --git a/Applications/Piano/WaveWidget.cpp b/Applications/Piano/WaveWidget.cpp
index 434f51cf4d..5d8f3d72be 100644
--- a/Applications/Piano/WaveWidget.cpp
+++ b/Applications/Piano/WaveWidget.cpp
@@ -33,9 +33,6 @@
WaveWidget::WaveWidget(AudioEngine& audio_engine)
: m_audio_engine(audio_engine)
{
- set_frame_thickness(2);
- set_frame_shadow(Gfx::FrameShadow::Sunken);
- set_frame_shape(Gfx::FrameShape::Container);
}
WaveWidget::~WaveWidget()