From fe04cbb597de080d93955028eab56bf87b9d18c1 Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Fri, 24 Apr 2026 01:28:38 +0300 Subject: [PATCH] Darker GUI background --- src/GUIStuff/Elements/GUIStuffHelpers.cpp | 1 + src/GUIStuff/Elements/GUIStuffHelpers.hpp | 1 + src/Screens/FileSelectScreen.cpp | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GUIStuff/Elements/GUIStuffHelpers.cpp b/src/GUIStuff/Elements/GUIStuffHelpers.cpp index a8fc20c..e1c85a0 100644 --- a/src/GUIStuff/Elements/GUIStuffHelpers.cpp +++ b/src/GUIStuff/Elements/GUIStuffHelpers.cpp @@ -30,6 +30,7 @@ namespace GUIStuff { std::shared_ptr theme(std::make_shared()); theme->fillColor1 = {0.65f, 0.64f, 1.0f, 1.0f}; theme->fillColor2 = {0.6f, 0.6f, 0.785f, 1.0f}; + theme->backColor0 = {0.07f, 0.07f, 0.07f, 1.0f}; theme->backColor1 = {0.156f, 0.156f, 0.18f, 1.0f}; theme->backColor2 = {0.24f, 0.24f, 0.29f, 1.0f}; theme->frontColor1 = {0.87f, 0.87f, 0.87f, 1.0f}; diff --git a/src/GUIStuff/Elements/GUIStuffHelpers.hpp b/src/GUIStuff/Elements/GUIStuffHelpers.hpp index 504f862..21204ca 100644 --- a/src/GUIStuff/Elements/GUIStuffHelpers.hpp +++ b/src/GUIStuff/Elements/GUIStuffHelpers.hpp @@ -78,6 +78,7 @@ SkFont get_setup_skfont(); struct Theme { SkColor4f fillColor1 = {0.8f, 0.785f, 1.0f, 1.0f}; SkColor4f fillColor2 = {0.3f, 0.3f, 0.477f, 1.0f}; + SkColor4f backColor0 = {0.0f, 0.0f, 0.0f, 1.0f}; SkColor4f backColor1 = {0.0f, 0.0f, 0.0f, 1.0f}; SkColor4f backColor2 = {1.0f, 1.0f, 1.0f, 1.0f}; SkColor4f frontColor1 = {1.0f, 1.0f, 1.0f, 1.0f}; diff --git a/src/Screens/FileSelectScreen.cpp b/src/Screens/FileSelectScreen.cpp index 33e9b5d..c344128 100644 --- a/src/Screens/FileSelectScreen.cpp +++ b/src/Screens/FileSelectScreen.cpp @@ -282,7 +282,7 @@ void FileSelectScreen::edit_action_bar() { .childAlignment = { .x = CLAY_ALIGN_X_CENTER, .y = CLAY_ALIGN_Y_CENTER }, .layoutDirection = CLAY_LEFT_TO_RIGHT, }, - .backgroundColor = convert_vec4(gui.io.theme->backColor2), + .backgroundColor = convert_vec4(gui.io.theme->backColor1), }) { if(selectedMenu == SelectedMenu::FILES) { edit_action_bar_button("trash", "data/icons/trash.svg", "Trash", [&] { @@ -379,7 +379,7 @@ void FileSelectScreen::title_bar() { .sizing = {.width = CLAY_SIZING_FIT(200), .height = CLAY_SIZING_FIT(0)}, .layoutDirection = CLAY_TOP_TO_BOTTOM }, - .backgroundColor = convert_vec4(gui.io.theme->backColor2), + .backgroundColor = convert_vec4(gui.io.theme->backColor1), .cornerRadius = CLAY_CORNER_RADIUS(4) }) { if(moreOptionsMenu == MoreOptionsMenu::MAIN) { @@ -635,7 +635,7 @@ void FileSelectScreen::input_open_infinipaint_file_callback(const CustomEvents:: } void FileSelectScreen::draw(SkCanvas* canvas) { - canvas->clear(main.g.gui.io.theme->backColor1); + canvas->clear(main.g.gui.io.theme->backColor0); } FileSelectScreen::~FileSelectScreen() {