From fa81433f6c782adf000f06e928c3317548992890 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Wed, 19 Jan 2022 20:55:45 -0500 Subject: [PATCH] Reader framework: Set correct stylesheet for Libra, too --- reader.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/reader.cpp b/reader.cpp index d089900..0804018 100644 --- a/reader.cpp +++ b/reader.cpp @@ -1093,13 +1093,23 @@ void reader::on_optionsBtn_clicked() { if(menubar_shown == true) { menubar_hide(); - ui->optionsBtn->setStyleSheet("background: white; color: black"); + 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"); + } this->repaint(); menubar_shown = false; } else { menubar_show(); - ui->optionsBtn->setStyleSheet("background: black; color: white"); + 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"); + } this->repaint(); menubar_shown = true; }