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

Method applyTheme

src/csvwindow.cpp:613–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611
612
613void CsvWindow::applyTheme() {
614 if( getWindowSlotUsed() ) {
615 typeButton->labelcolor(ColorThemes::getColor(app.getTheme(), "toolbar_text"));
616 showHeaderCheckbox->color(ColorThemes::getColor(app.getTheme(), "toolbar_bg"));
617 showHeaderCheckbox->labelcolor(ColorThemes::getColor(app.getTheme(), "toolbar_text"));
618 showHeaderCheckbox->selection_color(ColorThemes::getColor(app.getTheme(), "header_button_on"));
619 toolbar->color(ColorThemes::getColor(app.getTheme(), "toolbar_bg"));
620 statusbar->color(ColorThemes::getColor(app.getTheme(), "statusbar_bg"));
621 statusbar->labelcolor(ColorThemes::getColor(app.getTheme(), "statusbar_text"));
622 grid->color(ColorThemes::getColor(app.getTheme(), "table_bg"));
623 win->color(ColorThemes::getColor(app.getTheme(), "win_bg"));
624 #ifndef __APPLE__
625 winMenuBar->textcolor(ColorThemes::getColor(app.getTheme(), "toolbar_text"));
626 winMenuBar->color(ColorThemes::getColor(app.getTheme(), "toolbar_bg"));
627 #endif
628 Fl::redraw();
629 }
630}
631
632
633/*

Callers 1

setThemeMethod · 0.80

Calls 1

getThemeMethod · 0.80

Tested by

no test coverage detected