mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-28 08:37:22 -08:00
Reader framework: Set correct stylesheet for Libra, too
This commit is contained in:
parent
8e29140fac
commit
fa81433f6c
1 changed files with 12 additions and 2 deletions
10
reader.cpp
10
reader.cpp
|
@ -1093,13 +1093,23 @@ void reader::on_optionsBtn_clicked()
|
||||||
{
|
{
|
||||||
if(menubar_shown == true) {
|
if(menubar_shown == true) {
|
||||||
menubar_hide();
|
menubar_hide();
|
||||||
|
if(readFile("/opt/inkbox_device") == "n873\n") {
|
||||||
|
ui->optionsBtn->setStyleSheet("background: white; color: black; padding: 13.5px");
|
||||||
|
}
|
||||||
|
else {
|
||||||
ui->optionsBtn->setStyleSheet("background: white; color: black");
|
ui->optionsBtn->setStyleSheet("background: white; color: black");
|
||||||
|
}
|
||||||
this->repaint();
|
this->repaint();
|
||||||
menubar_shown = false;
|
menubar_shown = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
menubar_show();
|
menubar_show();
|
||||||
|
if(readFile("/opt/inkbox_device") == "n873\n") {
|
||||||
|
ui->optionsBtn->setStyleSheet("background: black; color: white; padding: 13.5px");
|
||||||
|
}
|
||||||
|
else {
|
||||||
ui->optionsBtn->setStyleSheet("background: black; color: white");
|
ui->optionsBtn->setStyleSheet("background: black; color: white");
|
||||||
|
}
|
||||||
this->repaint();
|
this->repaint();
|
||||||
menubar_shown = true;
|
menubar_shown = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue