Created
August 5, 2020 22:59
-
-
Save moebiussurfing/2d71134bed7372110206fa6f5498ec3f to your computer and use it in GitHub Desktop.
openFrameworks / customize ofxGui theme dark theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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