From 591ecfe72f34894180f56804a2a3885e7d3d1473 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Sat, 25 Dec 2021 23:34:46 -0500 Subject: [PATCH] Add necessary components for new "Library" widget This widget will fetch data from Gutenberg.org, allowing one to get eBooks in a painless way, directly from their device. --- eink.qrc | 1 + mainwindow.cpp | 6 ++- mainwindow.ui | 86 ++++++++++++++++++++++++++++++----- resources/online-library.png | Bin 0 -> 4003 bytes 4 files changed, 81 insertions(+), 12 deletions(-) create mode 100644 resources/online-library.png diff --git a/eink.qrc b/eink.qrc index b64463e..50ea3e6 100644 --- a/eink.qrc +++ b/eink.qrc @@ -68,5 +68,6 @@ resources/hourglass-top.png resources/error.png resources/alert-triangle.png + resources/online-library.png diff --git a/mainwindow.cpp b/mainwindow.cpp index bdf287a..fd8c832 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -34,13 +34,15 @@ MainWindow::MainWindow(QWidget *parent) ui->quitBtn->setProperty("type", "borderless"); ui->searchBtn->setProperty("type", "borderless"); ui->pushButton->setProperty("type", "borderless"); + ui->libraryButton->setProperty("type", "borderless"); ui->brightnessBtn->setProperty("type", "borderless"); ui->homeBtn->setProperty("type", "borderless"); ui->wifiBtn->setProperty("type", "borderless"); ui->settingsBtn->setText(""); ui->appsBtn->setText(""); - ui->pushButton->setText(""); + ui->pushButton->setText("\t\tReader"); + ui->libraryButton->setText("\t\tLibrary"); ui->quitBtn->setText(""); ui->searchBtn->setText(""); ui->brightnessBtn->setText(""); @@ -111,6 +113,8 @@ MainWindow::MainWindow(QWidget *parent) // Setting icons up ui->pushButton->setIcon(QIcon(":/resources/book.png")); ui->pushButton->setIconSize(QSize(stdIconWidth, stdIconHeight)); + ui->libraryButton->setIcon(QIcon(":/resources/online-library.png")); + ui->libraryButton->setIconSize(QSize(stdIconWidth, stdIconHeight)); ui->searchBtn->setIcon(QIcon(":/resources/search.png")); ui->searchBtn->setIconSize(QSize(stdIconWidth, stdIconHeight)); ui->settingsBtn->setIcon(QIcon(":/resources/settings.png")); diff --git a/mainwindow.ui b/mainwindow.ui index 5625d66..886b345 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -6,7 +6,7 @@ 0 0 - 649 + 706 601 @@ -34,7 +34,10 @@ + Inter + 11 75 + false true @@ -91,7 +94,11 @@ + Inter 11 + 50 + false + false @@ -120,8 +127,10 @@ + Inter 11 75 + false true @@ -201,7 +210,10 @@ + Inter + 11 75 + false true @@ -264,7 +276,10 @@ Chivo + 11 + 50 true + false @@ -310,7 +325,10 @@ Chivo + 11 + 50 true + false @@ -432,19 +450,57 @@ - - - - 75 - true - + + + 0 - - + + + + + Inter + 11 + 75 + false + true + + + + +Library + + + + + + + + + Inter + 11 + 75 + false + true + + + + Reader - - + + + + + + + QFrame::Plain + + + Qt::Vertical + + + + @@ -471,8 +527,10 @@ Reader + Inter 10 75 + false true @@ -503,8 +561,10 @@ Search + Inter 10 75 + false true @@ -535,8 +595,10 @@ Settings + Inter 10 75 + false true @@ -573,8 +635,10 @@ Apps + Inter 10 75 + false true diff --git a/resources/online-library.png b/resources/online-library.png new file mode 100644 index 0000000000000000000000000000000000000000..95787b1d28c10e7dcb8331f4346acc88787ce02e GIT binary patch literal 4003 zcmb_e4K!5i8h-bfVM3u2m2lAMKO;Y>LzMibCJKo#B_bIz2K~q`=hP|D?G^v!0=xWe}xw~`jJ!h@ETI<~I?b~aw?_KZre(&G&eee72_hh<` zR-dE}0HfXAmaYPzkR%1@s^s(`@reQeNr`ZB@^p7{GLDIj4vW|l3NZah(h+;NyN(9s z!S&0WXO4+K+;;f3bq?-#%2%Pf0BjjuGxL z9z@#O+b_N~nL1)V*m-J5)`o_FK+wk+ER53VlT$+Qc5 zOxtfH7A6i=h+kdBEVILGELR##o!}9eA7?R(H|hQOt?Tf(2YRuFf-}Xok@&*M=f}zz zt7_Mr5HmUYGiGlXHFoLrOWAv7ZZQkT-LD)zKYa0!L%U*X?2K1@^hgL|9ey~_VbEyk z-P4&&W}^EMv)a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