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.
This commit is contained in:
Nicolas Mailloux 2021-12-25 23:34:46 -05:00
parent 0c465b34e6
commit 591ecfe72f
4 changed files with 81 additions and 12 deletions

View file

@ -68,5 +68,6 @@
<file>resources/hourglass-top.png</file>
<file>resources/error.png</file>
<file>resources/alert-triangle.png</file>
<file>resources/online-library.png</file>
</qresource>
</RCC>

View file

@ -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"));

View file

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>649</width>
<width>706</width>
<height>601</height>
</rect>
</property>
@ -34,7 +34,10 @@
<widget class="QLabel" name="batteryLabel">
<property name="font">
<font>
<family>Inter</family>
<pointsize>11</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -91,7 +94,11 @@
<widget class="QLabel" name="inkboxLabel">
<property name="font">
<font>
<family>Inter</family>
<pointsize>11</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="text">
@ -120,8 +127,10 @@
<widget class="QLabel" name="timeLabel">
<property name="font">
<font>
<family>Inter</family>
<pointsize>11</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -201,7 +210,10 @@
<widget class="QLabel" name="quoteHeadingLabel">
<property name="font">
<font>
<family>Inter</family>
<pointsize>11</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -264,7 +276,10 @@
<property name="font">
<font>
<family>Chivo</family>
<pointsize>11</pointsize>
<weight>50</weight>
<italic>true</italic>
<bold>false</bold>
</font>
</property>
<property name="text">
@ -310,7 +325,10 @@
<property name="font">
<font>
<family>Chivo</family>
<pointsize>11</pointsize>
<weight>50</weight>
<italic>true</italic>
<bold>false</bold>
</font>
</property>
<property name="text">
@ -432,10 +450,36 @@
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_5">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="4">
<widget class="QPushButton" name="libraryButton">
<property name="font">
<font>
<family>Inter</family>
<pointsize>11</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>
Library
</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton">
<property name="font">
<font>
<family>Inter</family>
<pointsize>11</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -446,6 +490,18 @@ Reader
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="Line" name="line_10">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_5">
<property name="frameShadow">
@ -471,8 +527,10 @@ Reader
</property>
<property name="font">
<font>
<family>Inter</family>
<pointsize>10</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -503,8 +561,10 @@ Search
</property>
<property name="font">
<font>
<family>Inter</family>
<pointsize>10</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -535,8 +595,10 @@ Settings
</property>
<property name="font">
<font>
<family>Inter</family>
<pointsize>10</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -573,8 +635,10 @@ Apps
</property>
<property name="font">
<font>
<family>Inter</family>
<pointsize>10</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB