MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / createButtonColor

Method createButtonColor

src/csvapplication.cpp:3502–3522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3500
3501
3502struct My_Fl_Button::buttonColorStruct CsvApplication::createButtonColor(My_Fl_Button::ButtonStyle style) {
3503 struct My_Fl_Button::buttonColorStruct colorsButton;
3504 switch(style) {
3505 case My_Fl_Button::HIGHLIGHT:
3506 colorsButton.background = ColorThemes::getColor(app.getTheme(), "hightlight_button_bg");
3507 colorsButton.label = ColorThemes::getColor(app.getTheme(), "hightlight_button_text");
3508 colorsButton.border = ColorThemes::getColor(app.getTheme(), "hightlight_button_border");
3509 colorsButton.windowBg = ColorThemes::getColor(app.getTheme(), "win_bg");
3510 colorsButton.borderWidth = ColorThemes::getColor(app.getTheme(), "highlight_button_border_width");
3511
3512 break;
3513 case My_Fl_Button::DEFAULT:
3514 default:
3515 colorsButton.background = ColorThemes::getColor(app.getTheme(), "button_bg");
3516 colorsButton.label = ColorThemes::getColor(app.getTheme(), "button_text");
3517 colorsButton.border = ColorThemes::getColor(app.getTheme(), "button_border");
3518 colorsButton.windowBg = ColorThemes::getColor(app.getTheme(), "win_bg");
3519 colorsButton.borderWidth = ColorThemes::getColor(app.getTheme(), "button_border_width");
3520 }
3521 return colorsButton;
3522}
3523
3524
3525Fl_RGB_Image *CsvApplication::xpmResizer(const char* const* xpm_data, int size) {

Callers

nothing calls this directly

Calls 1

getThemeMethod · 0.80

Tested by

no test coverage detected