mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
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:
parent
0c465b34e6
commit
591ecfe72f
4 changed files with 81 additions and 12 deletions
1
eink.qrc
1
eink.qrc
|
@ -68,5 +68,6 @@
|
||||||
<file>resources/hourglass-top.png</file>
|
<file>resources/hourglass-top.png</file>
|
||||||
<file>resources/error.png</file>
|
<file>resources/error.png</file>
|
||||||
<file>resources/alert-triangle.png</file>
|
<file>resources/alert-triangle.png</file>
|
||||||
|
<file>resources/online-library.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
@ -34,13 +34,15 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
ui->quitBtn->setProperty("type", "borderless");
|
ui->quitBtn->setProperty("type", "borderless");
|
||||||
ui->searchBtn->setProperty("type", "borderless");
|
ui->searchBtn->setProperty("type", "borderless");
|
||||||
ui->pushButton->setProperty("type", "borderless");
|
ui->pushButton->setProperty("type", "borderless");
|
||||||
|
ui->libraryButton->setProperty("type", "borderless");
|
||||||
ui->brightnessBtn->setProperty("type", "borderless");
|
ui->brightnessBtn->setProperty("type", "borderless");
|
||||||
ui->homeBtn->setProperty("type", "borderless");
|
ui->homeBtn->setProperty("type", "borderless");
|
||||||
ui->wifiBtn->setProperty("type", "borderless");
|
ui->wifiBtn->setProperty("type", "borderless");
|
||||||
|
|
||||||
ui->settingsBtn->setText("");
|
ui->settingsBtn->setText("");
|
||||||
ui->appsBtn->setText("");
|
ui->appsBtn->setText("");
|
||||||
ui->pushButton->setText("");
|
ui->pushButton->setText("\t\tReader");
|
||||||
|
ui->libraryButton->setText("\t\tLibrary");
|
||||||
ui->quitBtn->setText("");
|
ui->quitBtn->setText("");
|
||||||
ui->searchBtn->setText("");
|
ui->searchBtn->setText("");
|
||||||
ui->brightnessBtn->setText("");
|
ui->brightnessBtn->setText("");
|
||||||
|
@ -111,6 +113,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
// Setting icons up
|
// Setting icons up
|
||||||
ui->pushButton->setIcon(QIcon(":/resources/book.png"));
|
ui->pushButton->setIcon(QIcon(":/resources/book.png"));
|
||||||
ui->pushButton->setIconSize(QSize(stdIconWidth, stdIconHeight));
|
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->setIcon(QIcon(":/resources/search.png"));
|
||||||
ui->searchBtn->setIconSize(QSize(stdIconWidth, stdIconHeight));
|
ui->searchBtn->setIconSize(QSize(stdIconWidth, stdIconHeight));
|
||||||
ui->settingsBtn->setIcon(QIcon(":/resources/settings.png"));
|
ui->settingsBtn->setIcon(QIcon(":/resources/settings.png"));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>649</width>
|
<width>706</width>
|
||||||
<height>601</height>
|
<height>601</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -34,7 +34,10 @@
|
||||||
<widget class="QLabel" name="batteryLabel">
|
<widget class="QLabel" name="batteryLabel">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
|
<pointsize>11</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -91,7 +94,11 @@
|
||||||
<widget class="QLabel" name="inkboxLabel">
|
<widget class="QLabel" name="inkboxLabel">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
<pointsize>11</pointsize>
|
<pointsize>11</pointsize>
|
||||||
|
<weight>50</weight>
|
||||||
|
<italic>false</italic>
|
||||||
|
<bold>false</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -120,8 +127,10 @@
|
||||||
<widget class="QLabel" name="timeLabel">
|
<widget class="QLabel" name="timeLabel">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
<pointsize>11</pointsize>
|
<pointsize>11</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -201,7 +210,10 @@
|
||||||
<widget class="QLabel" name="quoteHeadingLabel">
|
<widget class="QLabel" name="quoteHeadingLabel">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
|
<pointsize>11</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -264,7 +276,10 @@
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<family>Chivo</family>
|
<family>Chivo</family>
|
||||||
|
<pointsize>11</pointsize>
|
||||||
|
<weight>50</weight>
|
||||||
<italic>true</italic>
|
<italic>true</italic>
|
||||||
|
<bold>false</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -310,7 +325,10 @@
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<family>Chivo</family>
|
<family>Chivo</family>
|
||||||
|
<pointsize>11</pointsize>
|
||||||
|
<weight>50</weight>
|
||||||
<italic>true</italic>
|
<italic>true</italic>
|
||||||
|
<bold>false</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -432,10 +450,36 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<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">
|
<widget class="QPushButton" name="pushButton">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
|
<pointsize>11</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -446,6 +490,18 @@ Reader
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="Line" name="line_5">
|
<widget class="Line" name="line_5">
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
|
@ -471,8 +527,10 @@ Reader
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -503,8 +561,10 @@ Search
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -535,8 +595,10 @@ Settings
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
@ -573,8 +635,10 @@ Apps
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
<family>Inter</family>
|
||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
|
<italic>false</italic>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
|
BIN
resources/online-library.png
Normal file
BIN
resources/online-library.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Loading…
Reference in a new issue