mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
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.
This commit is contained in:
parent
687276fc38
commit
48eecaad64
Notes:
sideshowbarker
2024-07-17 19:58:00 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/48eecaad645 Pull-request: https://github.com/SerenityOS/serenity/pull/12224
3 changed files with 0 additions and 7 deletions
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Add table
Reference in a new issue