wind+taskbar: Improve the dark color scheme
This commit is contained in:
parent
bc14b01bf8
commit
9fd4fc7e91
@ -8,6 +8,8 @@
|
|||||||
#include <ui/Image.h>
|
#include <ui/Image.h>
|
||||||
#include <ui/Layout.h>
|
#include <ui/Layout.h>
|
||||||
|
|
||||||
|
static constexpr ui::Color TASKBAR_COLOR = ui::Color::from_rgb(83, 83, 83);
|
||||||
|
|
||||||
void sigchld_handler(int)
|
void sigchld_handler(int)
|
||||||
{
|
{
|
||||||
wait(nullptr);
|
wait(nullptr);
|
||||||
@ -26,7 +28,7 @@ Result<int> luna_main(int argc, char** argv)
|
|||||||
|
|
||||||
auto window = TRY(ui::Window::create(bar, false));
|
auto window = TRY(ui::Window::create(bar, false));
|
||||||
app.set_main_window(window);
|
app.set_main_window(window);
|
||||||
window->set_background(ui::GRAY);
|
window->set_background(TASKBAR_COLOR);
|
||||||
|
|
||||||
ui::HorizontalLayout layout(ui::AdjustHeight::Yes, ui::AdjustWidth::No);
|
ui::HorizontalLayout layout(ui::AdjustHeight::Yes, ui::AdjustWidth::No);
|
||||||
window->set_main_widget(layout);
|
window->set_main_widget(layout);
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
LinkedList<Window> g_windows;
|
LinkedList<Window> g_windows;
|
||||||
|
|
||||||
|
static constexpr ui::Color TITLEBAR_COLOR = ui::Color::from_rgb(53, 53, 53);
|
||||||
|
|
||||||
void Window::draw(ui::Canvas& screen)
|
void Window::draw(ui::Canvas& screen)
|
||||||
{
|
{
|
||||||
dirty = false;
|
dirty = false;
|
||||||
@ -21,10 +23,10 @@ void Window::draw(ui::Canvas& screen)
|
|||||||
auto font = ui::Font::default_font();
|
auto font = ui::Font::default_font();
|
||||||
|
|
||||||
auto titlebar_canvas = window.subcanvas(titlebar);
|
auto titlebar_canvas = window.subcanvas(titlebar);
|
||||||
titlebar_canvas.fill(ui::GRAY);
|
titlebar_canvas.fill(TITLEBAR_COLOR);
|
||||||
|
|
||||||
auto textarea = titlebar_canvas.subcanvas(ui::Rect { 10, 10, titlebar_canvas.width - 10, titlebar_canvas.height });
|
auto textarea = titlebar_canvas.subcanvas(ui::Rect { 10, 10, titlebar_canvas.width - 10, titlebar_canvas.height });
|
||||||
font->render(buffer, ui::BLACK, textarea);
|
font->render(buffer, ui::WHITE, textarea);
|
||||||
|
|
||||||
static SharedPtr<ui::Image> g_close_icon;
|
static SharedPtr<ui::Image> g_close_icon;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user