Skip to content

Instantly share code, notes, and snippets.

@moebiussurfing
Created August 5, 2020 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moebiussurfing/2d71134bed7372110206fa6f5498ec3f to your computer and use it in GitHub Desktop.
Save moebiussurfing/2d71134bed7372110206fa6f5498ec3f to your computer and use it in GitHub Desktop.
openFrameworks / customize ofxGui theme dark theme
//ofxGui theme
//.cpp
//setup
setTheme_ofxGui();
//ofApp.h
void setTheme_ofxGui()
{
string pathFont = "assets/fonts/overpass-mono-bold.otf";
ofFile file(pathFont);
if (file.exists())
{
ofxGuiSetFont(pathFont, 9);
}
ofxGuiSetDefaultHeight(20);
ofxGuiSetBorderColor(32);
ofxGuiSetFillColor(ofColor(24));
ofxGuiSetTextColor(ofColor::white);
ofxGuiSetHeaderColor(ofColor(12));
ofxGuiSetBackgroundColor(ofColor::black);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment