MCPcopy Create free account
hub / github.com/cc20110101/RedisView / setThemeIcon

Method setThemeIcon

src/RedisView/AppView/MainWindow.cpp:505–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505void MainWindow::setThemeIcon() {
506 if(Global::gTheme == DARK_THEME) {
507 _darkthemeAct->setIcon(QIcon(ICON_SELECT));
508 } else if(Global::gTheme == GRAY_THEME) {
509 _graythemeAct->setIcon(QIcon(ICON_SELECT));
510 } else if(Global::gTheme == PINK_THEME) {
511 _pinkthemeAct->setIcon(QIcon(ICON_SELECT));
512 } else if(Global::gTheme == DEEPDARK_THEME) {
513 _deepdarkthemeAct->setIcon(QIcon(ICON_SELECT));
514 } else {
515 _nothemeAct->setIcon(QIcon(ICON_SELECT));
516 }
517}
518
519void MainWindow::clearThemeIcon() {
520 if(Global::gTheme == DARK_THEME) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected