mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Virtual keyboard sizeup for Libra
This commit is contained in:
parent
d61a663479
commit
218b64ef7f
2 changed files with 92 additions and 41 deletions
|
@ -133,6 +133,9 @@ void koboxAppsDialog::on_launchBtn_clicked()
|
|||
}
|
||||
else if(checkconfig_str_val == "n613\n")
|
||||
dpiSetting = "225";
|
||||
else if(checkconfig_str_val == "n873\n") {
|
||||
dpiSetting = "300";
|
||||
}
|
||||
else {
|
||||
dpiSetting = "175";
|
||||
}
|
||||
|
|
|
@ -54,49 +54,97 @@ virtualkeyboard::virtualkeyboard(QWidget *parent) :
|
|||
ui->spt->setProperty("type", "borderless");
|
||||
ui->sat->setProperty("type", "borderless");
|
||||
|
||||
ui->n1->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n2->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n3->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n4->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n5->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n6->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n7->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n8->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n9->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n0->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
string_checkconfig_ro("/opt/inkbox_device");
|
||||
if(checkconfig_str_val == "n873\n") {
|
||||
ui->n1->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n2->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n3->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n4->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n5->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n6->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n7->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n8->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n9->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->n0->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
|
||||
ui->la->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lb->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lc->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ld->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->le->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lf->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lg->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lh->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->li->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lj->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lk->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ll->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lm->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ln->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lo->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lp->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lq->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lr->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ls->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lu->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lv->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lw->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lx->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ly->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lz->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->la->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lb->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lc->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->ld->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->le->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lf->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lg->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lh->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->li->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lj->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lk->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->ll->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lm->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->ln->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lo->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lp->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lq->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lr->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->ls->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lu->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lv->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lw->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lx->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->ly->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->lz->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
|
||||
ui->eraseBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->shiftBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->spt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->sat->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->spaceBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 10px; border: 1px solid black");
|
||||
ui->eraseBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->shiftBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->spt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->sat->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||
ui->spaceBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 15px; border: 1px solid black");
|
||||
}
|
||||
else {
|
||||
ui->n1->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n2->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n3->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n4->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n5->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n6->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n7->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n8->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n9->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->n0->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
|
||||
ui->la->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lb->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lc->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ld->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->le->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lf->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lg->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lh->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->li->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lj->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lk->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ll->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lm->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ln->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lo->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lp->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lq->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lr->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ls->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lu->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lv->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lw->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lx->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->ly->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->lz->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
|
||||
ui->eraseBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->shiftBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->spt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->sat->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||
ui->spaceBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 10px; border: 1px solid black");
|
||||
}
|
||||
|
||||
ui->lineEdit->setStyleSheet("border: 3px solid black");
|
||||
if(global::keyboard::vncDialog == true) {
|
||||
|
|
Loading…
Reference in a new issue