Skip to content

Commit

Permalink
Update src/sdltiles.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
vetall812 and github-actions[bot] committed Sep 4, 2024
1 parent 7e7f0ef commit 1c5a22d
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3746,50 +3746,50 @@ void catacurses::init_interface()
float DGrayB = static_cast<float>( DGRAY.b ) / 255.0f;

SDL_Color WHITE = windowsPalette[15];
float WhiteR = static_cast<float>(WHITE.r) / 255.0f;
float WhiteG = static_cast<float>(WHITE.g) / 255.0f;
float WhiteB = static_cast<float>(WHITE.b) / 255.0f;

style.Colors[ImGuiCol_Text] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f);
style.Colors[ImGuiCol_WindowBg] = ImVec4(BlackR, BlackG, BlackB, 0.50f);
style.Colors[ImGuiCol_ChildBg] = ImVec4(BlackR, BlackG, BlackB, 0.00f);
style.Colors[ImGuiCol_PopupBg] = ImVec4(BlackR, BlackG, BlackB, 1.00f);
style.Colors[ImGuiCol_Border] = ImVec4(WhiteR, WhiteG, WhiteB, 0.50f);
style.Colors[ImGuiCol_BorderShadow] = ImVec4(BlueR, BlueG, BlueB, 0.00f);
style.Colors[ImGuiCol_FrameBg] = ImVec4(DGrayR, DGrayG, DGrayB, 0.54f);
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(BlackR, BlackG, BlackB, 0.40f);
style.Colors[ImGuiCol_FrameBgActive] = ImVec4(DGrayR, DGrayG, DGrayB, 0.67f);
style.Colors[ImGuiCol_TitleBg] = ImVec4(BlueR, BlueG, BlueB, 1.00f);
style.Colors[ImGuiCol_TitleBgActive] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f);
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(BlueR, BlueG, BlueB, 0.51f);
style.Colors[ImGuiCol_MenuBarBg] = ImVec4(BlackR, BlackG, BlackB, 1.00f);
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(BlackR, BlackG, BlackB, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(GrayR, GrayG, GrayB, 1.00f);
style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f);
style.Colors[ImGuiCol_CheckMark] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f);
style.Colors[ImGuiCol_SliderGrab] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f);
style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f);
style.Colors[ImGuiCol_Button] = ImVec4(DGrayR, DGrayG, DGrayB, 0.20f);
style.Colors[ImGuiCol_ButtonHovered] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f);
style.Colors[ImGuiCol_ButtonActive] = ImVec4(BlueR, BlueG, BlueB, 1.00f);
style.Colors[ImGuiCol_Header] = ImVec4(BlueR, BlueG, BlueB, 0.30f);
style.Colors[ImGuiCol_HeaderHovered] = ImVec4(BlackR, BlackG, BlackB, 0.80f);
style.Colors[ImGuiCol_HeaderActive] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f);
style.Colors[ImGuiCol_Separator] = ImVec4(BlueR, BlueG, BlueB, 0.50f);
style.Colors[ImGuiCol_SeparatorHovered] = ImVec4(WhiteR, WhiteG, WhiteB, 0.80f);
style.Colors[ImGuiCol_SeparatorActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f);
style.Colors[ImGuiCol_ResizeGrip] = ImVec4(WhiteR, WhiteG, WhiteB, 0.20f);
style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(WhiteR, WhiteG, WhiteB, 0.70f);
style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f);
style.Colors[ImGuiCol_Tab] = ImVec4(BlackR, BlackG, BlackB, 0.90f);
style.Colors[ImGuiCol_TabHovered] = ImVec4(BlueR, BlueG, BlueB, 0.80f);
style.Colors[ImGuiCol_TabActive] = ImVec4(BlueR, BlueG, BlueB, 1.00f);
style.Colors[ImGuiCol_TabUnfocused] = ImVec4(BlackR, BlackG, BlackB, 0.90f);
style.Colors[ImGuiCol_TabUnfocusedActive] = ImVec4(BlackR, BlackG, BlackB, 1.00f);
style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(BlueR, BlueG, BlueB, 1.00f);
style.Colors[ImGuiCol_NavHighlight] = ImVec4(BlueR, BlueG, BlueB, 1.00f);
float WhiteR = static_cast<float>( WHITE.r ) / 255.0f;
float WhiteG = static_cast<float>( WHITE.g ) / 255.0f;
float WhiteB = static_cast<float>( WHITE.b ) / 255.0f;

style.Colors[ImGuiCol_Text] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f );
style.Colors[ImGuiCol_TextDisabled] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f );
style.Colors[ImGuiCol_WindowBg] = ImVec4( BlackR, BlackG, BlackB, 0.50f );
style.Colors[ImGuiCol_ChildBg] = ImVec4( BlackR, BlackG, BlackB, 0.00f );
style.Colors[ImGuiCol_PopupBg] = ImVec4( BlackR, BlackG, BlackB, 1.00f );
style.Colors[ImGuiCol_Border] = ImVec4( WhiteR, WhiteG, WhiteB, 0.50f );
style.Colors[ImGuiCol_BorderShadow] = ImVec4( BlueR, BlueG, BlueB, 0.00f );
style.Colors[ImGuiCol_FrameBg] = ImVec4( DGrayR, DGrayG, DGrayB, 0.54f );
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4( BlackR, BlackG, BlackB, 0.40f );
style.Colors[ImGuiCol_FrameBgActive] = ImVec4( DGrayR, DGrayG, DGrayB, 0.67f );
style.Colors[ImGuiCol_TitleBg] = ImVec4( BlueR, BlueG, BlueB, 1.00f );
style.Colors[ImGuiCol_TitleBgActive] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f );
style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4( BlueR, BlueG, BlueB, 0.51f );
style.Colors[ImGuiCol_MenuBarBg] = ImVec4( BlackR, BlackG, BlackB, 1.00f );
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4( BlackR, BlackG, BlackB, 1.00f );
style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f );
style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4( GrayR, GrayG, GrayB, 1.00f );
style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f );
style.Colors[ImGuiCol_CheckMark] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f );
style.Colors[ImGuiCol_SliderGrab] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f );
style.Colors[ImGuiCol_SliderGrabActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f );
style.Colors[ImGuiCol_Button] = ImVec4( DGrayR, DGrayG, DGrayB, 0.20f );
style.Colors[ImGuiCol_ButtonHovered] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f );
style.Colors[ImGuiCol_ButtonActive] = ImVec4( BlueR, BlueG, BlueB, 1.00f );
style.Colors[ImGuiCol_Header] = ImVec4( BlueR, BlueG, BlueB, 0.30f );
style.Colors[ImGuiCol_HeaderHovered] = ImVec4( BlackR, BlackG, BlackB, 0.80f );
style.Colors[ImGuiCol_HeaderActive] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f );
style.Colors[ImGuiCol_Separator] = ImVec4( BlueR, BlueG, BlueB, 0.50f );
style.Colors[ImGuiCol_SeparatorHovered] = ImVec4( WhiteR, WhiteG, WhiteB, 0.80f );
style.Colors[ImGuiCol_SeparatorActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f );
style.Colors[ImGuiCol_ResizeGrip] = ImVec4( WhiteR, WhiteG, WhiteB, 0.20f );
style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4( WhiteR, WhiteG, WhiteB, 0.70f );
style.Colors[ImGuiCol_ResizeGripActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f );
style.Colors[ImGuiCol_Tab] = ImVec4( BlackR, BlackG, BlackB, 0.90f );
style.Colors[ImGuiCol_TabHovered] = ImVec4( BlueR, BlueG, BlueB, 0.80f );
style.Colors[ImGuiCol_TabActive] = ImVec4( BlueR, BlueG, BlueB, 1.00f );
style.Colors[ImGuiCol_TabUnfocused] = ImVec4( BlackR, BlackG, BlackB, 0.90f );
style.Colors[ImGuiCol_TabUnfocusedActive] = ImVec4( BlackR, BlackG, BlackB, 1.00f );
style.Colors[ImGuiCol_TextSelectedBg] = ImVec4( BlueR, BlueG, BlueB, 1.00f );
style.Colors[ImGuiCol_NavHighlight] = ImVec4( BlueR, BlueG, BlueB, 1.00f );

// initialize sound set
load_soundset();
Expand Down

0 comments on commit 1c5a22d

Please sign in to comment.