GUI: colors in file dialog

This commit is contained in:
tildearrow 2021-12-17 22:18:53 -05:00
parent 8c57eb9696
commit a2357df8bb

View file

@ -1485,6 +1485,8 @@ bool FurnaceGUI::loop() {
return false;
}
#define IGFD_FileStyleByExtension IGFD_FileStyleByExtention
bool FurnaceGUI::init() {
float dpiScaleF;
@ -1540,6 +1542,11 @@ bool FurnaceGUI::init() {
return false;
}
ImGuiFileDialog::Instance()->SetFileStyle(IGFD_FileStyleByTypeDir,"",ImVec4(0.0f,1.0f,1.0f,1.0f),">");
ImGuiFileDialog::Instance()->SetFileStyle(IGFD_FileStyleByTypeFile,"",ImVec4(0.7f,0.7f,0.7f,1.0f)," ");
ImGuiFileDialog::Instance()->SetFileStyle(IGFD_FileStyleByExtension,".dmf",ImVec4(0.5f,1.0f,0.5f,1.0f)," ");
ImGuiFileDialog::Instance()->SetFileStyle(IGFD_FileStyleByExtension,".wav",ImVec4(1.0f,1.0f,0.5f,1.0f)," ");
updateWindowTitle();
return true;
}