summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-01-31 00:17:32 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-31 00:38:15 +0100
commit48eecaad645062df450dafbc2d7d98d240ec501e (patch)
treea2c5d3c7e74a74aa379637c2c9de3e92d93ef290 /Userland
parent687276fc384fe91ba0d5d62fd943d676fc7e4eb5 (diff)
downloadserenity-48eecaad645062df450dafbc2d7d98d240ec501e.zip
LibGUI: Remove `Window` background color
The `m_background_color` field was not used anywhere. Both `Terminal` and the `ColorPicker` widget invoked `set_background_color()` to no avail.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/Terminal/main.cpp1
-rw-r--r--Userland/Libraries/LibGUI/ColorPicker.cpp1
-rw-r--r--Userland/Libraries/LibGUI/Window.h5
3 files changed, 0 insertions, 7 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp
index 3e32e07132..496910f16d 100644
--- a/Userland/Applications/Terminal/main.cpp
+++ b/Userland/Applications/Terminal/main.cpp
@@ -283,7 +283,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto window = TRY(GUI::Window::try_create());
window->set_title("Terminal");
- window->set_background_color(Color::Black);
window->set_double_buffering_enabled(false);
auto terminal = TRY(window->try_set_main_widget<VT::TerminalWidget>(ptm_fd, true));
diff --git a/Userland/Libraries/LibGUI/ColorPicker.cpp b/Userland/Libraries/LibGUI/ColorPicker.cpp
index 11b7542268..1a975b6dc3 100644
--- a/Userland/Libraries/LibGUI/ColorPicker.cpp
+++ b/Userland/Libraries/LibGUI/ColorPicker.cpp
@@ -137,7 +137,6 @@ public:
auto window = Window::construct();
window->set_main_widget(this);
window->set_has_alpha_channel(true);
- window->set_background_color(Color::Transparent);
window->set_fullscreen(true);
window->set_frameless(true);
window->show();
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h
index d340135650..696706616e 100644
--- a/Userland/Libraries/LibGUI/Window.h
+++ b/Userland/Libraries/LibGUI/Window.h
@@ -15,7 +15,6 @@
#include <LibGUI/FocusSource.h>
#include <LibGUI/Forward.h>
#include <LibGUI/WindowType.h>
-#include <LibGfx/Color.h>
#include <LibGfx/Forward.h>
#include <LibGfx/Rect.h>
#include <LibGfx/StandardCursor.h>
@@ -76,9 +75,6 @@ public:
String title() const;
void set_title(String);
- Color background_color() const { return m_background_color; }
- void set_background_color(Color color) { m_background_color = color; }
-
enum class CloseRequestDecision {
StayOpen,
Close,
@@ -283,7 +279,6 @@ private:
Vector<Gfx::IntRect, 32> m_pending_paint_event_rects;
Gfx::IntSize m_size_increment;
Gfx::IntSize m_base_size;
- Color m_background_color { Color::WarmGray };
WindowType m_window_type { WindowType::Normal };
AK::Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> m_cursor { Gfx::StandardCursor::None };
AK::Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> m_effective_cursor { Gfx::StandardCursor::None };