Skip to content

Commit

Permalink
added missing vars for imgui 1.75 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
d3cod3 committed Apr 8, 2020
1 parent 7514384 commit 736e7a5
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/MosaicTheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@

#include "MosaicTheme.h"

// Some C64 retro stylin' (just in case)
#define C64_BLACK ImVec4(0,0,0,1)
#define C64_WHITE ImVec4(1,1,1,1)
#define C64_RED ImVec4(136/255.0f,57/255.0f,50/255.0f,1.0f)
#define C64_CYAN ImVec4(103/255.0f,182/255.0f,189/255.0f,1.0f)
#define C64_PURPLE ImVec4(139/255.0f,63/255.0f,150/255.0f,1.0f)
#define C64_GREEN ImVec4(85/255.0f,160/255.0f,73/255.0f,1.0f)
#define C64_BLUE ImVec4(64/255.0f,49/255.0f,141/255.0f,1.0f)
#define C64_YELLOW ImVec4(191/255.0f,206/255.0f,114/255.0f,1.0f)
#define C64_ORANGE ImVec4(139/255.0f,84/255.0f,41/255.0f,1.0f)
#define C64_BROWN ImVec4(87/255.0f,66/255.0f,0/255.0f,1.0f)
#define C64_PINK ImVec4(184/255.0f,105/255.0f,98/255.0f,1.0f)
#define C64_DGRAY ImVec4(80/255.0f,80/255.0f,80/255.0f,1.0f)
#define C64_MGRAY ImVec4(120/255.0f,120/255.0f,120/255.0f,1.0f)
#define C64_LGREEN ImVec4(148/255.0f,224/255.0f,137/255.0f,1.0f)
#define C64_LBLUE ImVec4(120/255.0f,105/255.0f,196/255.0f,1.0f)
#define C64_LGRAY ImVec4(159/255.0f,159/255.0f,159/255.0f,1.0f)


void MosaicTheme::setup(){
ofColor col_main_text = ofColor::fromHex(0xededed);
ofColor col_main_head = ofColor::fromHex(0x404040);
Expand All @@ -41,12 +60,14 @@ void MosaicTheme::setup(){

ImGuiStyle* style = &ImGui::GetStyle();

//style->WindowBorderSize = 0.0f;
//style->WindowPadding = ImVec2(0,0);
style->WindowMinSize = ImVec2(160, 65);
style->WindowRounding = 0.0f;
style->FramePadding = ImVec2(4, 2);
style->ItemSpacing = ImVec2(6, 2);
style->ItemInnerSpacing = ImVec2(6, 4);
style->Alpha = 1.0f;
style->WindowRounding = 0.0f;
style->FrameRounding = 0.0f;
style->IndentSpacing = 6.0f;
style->ItemInnerSpacing = ImVec2(2, 4);
Expand All @@ -55,6 +76,9 @@ void MosaicTheme::setup(){
style->GrabRounding = 0.0f;
style->ScrollbarSize = 12.0f;
style->ScrollbarRounding = 0.0f;
style->TabRounding = 0.0f;
//style->PopupBorderSize = 0.0f;
style->PopupRounding = 0.0f;

style->Colors[ImGuiCol_Text] = ImVec4(col_main_text, 1.00f);
style->Colors[ImGuiCol_TextDisabled] = ImVec4(col_main_text, 0.58f);
Expand Down Expand Up @@ -92,6 +116,12 @@ void MosaicTheme::setup(){
style->Colors[ImGuiCol_TextSelectedBg] = ImVec4(col_main_head, 0.43f);
style->Colors[ImGuiCol_PopupBg] = ImVec4(col_win_backg, 0.92f);
style->Colors[ImGuiCol_ModalWindowDarkening] = ImVec4(col_main_area, 0.73f);
style->Colors[ImGuiCol_Separator] = ImVec4(col_main_head, 0.73f);
style->Colors[ImGuiCol_SeparatorHovered] = ImVec4(col_main_head, 0.f);
style->Colors[ImGuiCol_SeparatorActive] = ImVec4(col_main_head, 0.f);
style->Colors[ImGuiCol_DragDropTarget] = ImVec4(col_main_head, 0.f);
style->Colors[ImGuiCol_NavHighlight] = ImVec4(col_main_head, 0.f);
style->Colors[ImGuiCol_NavWindowingHighlight] = ImVec4(col_main_head, 0.f);

}

Expand Down

0 comments on commit 736e7a5

Please sign in to comment.