void universal::changeColorBack1() { /* Each key has a bool variable to determine if this key has already been found. Paint is the "paint every key a different color" setting. "TypewriterCss" variable is making the key square or round. The early typewriters had round keys. */ if(isKeyPressed1) { ui->r1bg->setStyleSheet(typewriterCssAbc + keyFinishedBG); ui->r1->setStyleSheet(keyFinishedColor + fontFamilyLowercase); } else { if(paintHasBeenUsedBg == true) ui->r1bg->setStyleSheet(typewriterCssAbc + paintBg1); else ui->r1bg->setStyleSheet(typewriterCssAbc + bgColorNormal); if(paintHasBeenUsedLow == true) ui->r1->setStyleSheet(paint1 + fontFamilyLowercase); else ui->r1->setStyleSheet(keyColorNormalLowercase + fontFamilyLowercase); } //................................... if(paintHasBeenUsedLow == true) ui->r1_2->setStyleSheet(paint1 + fontFamilyLowercase); else ui->r1_2->setStyleSheet(keyColorNormalLowercase + fontFamilyLowercase); if(paintHasBeenUsedBg == true || paintHasBeenUsedBor == true) ui->bg1->setStyleSheet(typewriterCss + paintBg1 + paintBorder1); else ui->bg1->setStyleSheet(typewriterCss + bgColorNormal + borderLeft); if(paintHasBeenUsedUniversal) ui->u1->setStyleSheet(paintUniv1 + fontFamilyUniversal + univFontSize); else ui->u1->setStyleSheet(keyColorNormalUniversal + fontFamilyUniversal + univFontSize); //................................... if(imageFlagKeypress == "1" || imageFlagMouseover == "1" ) ui->img1->hide(); if(imageFlagKeys == "1") { ui->img1->setMovie(&movieKeys); ui->img1->show(); } if(randomFlag2) ui->img1->hide(); if(colorHighlightFlag) colorHighOn(); }