diff --git a/src/eink.qrc b/src/eink.qrc index 24db7e4..981b094 100644 --- a/src/eink.qrc +++ b/src/eink.qrc @@ -111,7 +111,7 @@ resources/checkbox-indeterminate.png resources/egg/0.jpg resources/egg/1.jpg - resources/music-note.png + resources/music-note.png resources/music-library.png resources/next.png resources/music-queue.png @@ -119,5 +119,6 @@ resources/previous.png resources/pause.png resources/clean.png + resources/usbms-inverted.png diff --git a/src/resources/usbms-inverted.png b/src/resources/usbms-inverted.png new file mode 100644 index 0000000..5ea6bcc Binary files /dev/null and b/src/resources/usbms-inverted.png differ diff --git a/src/settings/settings.cpp b/src/settings/settings.cpp index e561ff0..8edcc56 100644 --- a/src/settings/settings.cpp +++ b/src/settings/settings.cpp @@ -28,6 +28,14 @@ settings::settings(QWidget *parent) : ui->tzComboBox->setFont(QFont("u001")); ui->uiScaleNumberLabel->setFont(QFont("Inter")); ui->aboutBtn->setFont(QFont("u001")); + ui->headerBtn->setFont(QFont("Inter")); + ui->headerLabel->setFont(QFont("Chivo")); + ui->readingSettingsBtn->setFont(QFont("Chivo")); + ui->homeSettingsBtn->setFont(QFont("Chivo")); + ui->librarySettingsBtn->setFont(QFont("Chivo")); + ui->storageSettingsBtn->setFont(QFont("Chivo")); + ui->systemSettingsBtn->setFont(QFont("Chivo")); + ui->securitySettingsBtn->setFont(QFont("Chivo")); ui->okBtn->setFont(QFont("Inter")); ui->setPasscodeBtn->setProperty("type", "borderless"); @@ -40,8 +48,6 @@ settings::settings(QWidget *parent) : ui->showSystemInfoBtn->setProperty("type", "borderless"); ui->generateSystemReportBtn->setProperty("type", "borderless"); ui->checkOtaUpdateBtn->setProperty("type", "borderless"); - ui->previousBtn->setProperty("type", "borderless"); - ui->nextBtn->setProperty("type", "borderless"); ui->repackBtn->setProperty("type", "borderless"); ui->exportHighlightsBtn->setProperty("type", "borderless"); ui->label->setStyleSheet("font-size: 10.5pt; font-weight: bold"); @@ -61,35 +67,75 @@ settings::settings(QWidget *parent) : ui->exportHighlightsBtn->setStyleSheet("font-size: 9pt"); ui->uiScaleNumberLabel->setStyleSheet("font-size: 9pt; font-weight: bold"); - if(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "kt\n") { - ui->previousBtn->setStyleSheet("padding: 7.5px;"); - ui->nextBtn->setStyleSheet("padding: 7.5px;"); + // Getting the screen's size + sW = QGuiApplication::screens()[0]->size().width(); + sH = QGuiApplication::screens()[0]->size().height(); + + // Defining what the default icon size will be + if(global::deviceID == "n705\n") { + homeIconWidth = sW / 18; + homeIconHeight = sW / 18; } else { - ui->previousBtn->setStyleSheet("padding: 10px;"); - ui->nextBtn->setStyleSheet("padding: 10px"); + homeIconWidth = sW / 20; + homeIconHeight = sW / 20; } - ui->previousBtn->setText(""); - ui->previousBtn->setIcon(QIcon(":/resources/chevron-left.png")); - ui->nextBtn->setText(""); - ui->nextBtn->setIcon(QIcon(":/resources/chevron-right.png")); + ui->headerBtn->hide(); + ui->headerLabel->hide(); + ui->line_12->hide(); + ui->headerBtn->setIcon(QIcon(":/resources/chevron-left.png")); + //ui->headerBtn->setIconSize(QSize(homeIconWidth, homeIconHeight)); + + ui->headerBtn->setProperty("type", "borderless"); + ui->headerBtn->setStyleSheet("font-size: 9pt; font-weight: bold; padding: 15px"); + ui->headerLabel->setStyleSheet("padding: 15px"); + + ui->readingSettingsBtn->setText("\t\t\tReading"); + ui->readingSettingsBtn->setProperty("type", "borderless"); + ui->readingSettingsBtn->setStyleSheet("padding: 25px; Text-align: left"); + ui->readingSettingsBtn->setIcon(QIcon(":/resources/book.png")); + ui->readingSettingsBtn->setIconSize(QSize(homeIconWidth, homeIconHeight)); + + ui->homeSettingsBtn->setText("\t\t\tHome"); + ui->homeSettingsBtn->setProperty("type", "borderless"); + ui->homeSettingsBtn->setStyleSheet("padding: 25px; Text-align:left"); + ui->homeSettingsBtn->setIcon(QIcon(":/resources/home.png")); + ui->homeSettingsBtn->setIconSize(QSize(homeIconWidth, homeIconHeight)); + + ui->librarySettingsBtn->setText("\t\t\tLibrary"); + ui->librarySettingsBtn->setProperty("type", "borderless"); + ui->librarySettingsBtn->setStyleSheet("padding: 25px; Text-align:left"); + ui->librarySettingsBtn->setIcon(QIcon(":/resources/online-library.png")); + ui->storageSettingsBtn->setIconSize(QSize(homeIconWidth, homeIconHeight)); + + ui->storageSettingsBtn->setText("\t\t\tStorage"); + ui->storageSettingsBtn->setProperty("type", "borderless"); + ui->storageSettingsBtn->setStyleSheet("padding: 25px; Text-align:left"); + ui->storageSettingsBtn->setIcon(QIcon(":/resources/usbms-inverted.png")); + ui->storageSettingsBtn->setIconSize(QSize(homeIconWidth, homeIconHeight)); + + ui->systemSettingsBtn->setText("\t\t\tSystem"); + ui->systemSettingsBtn->setProperty("type", "borderless"); + ui->systemSettingsBtn->setStyleSheet("padding: 25px; Text-align:left"); + ui->systemSettingsBtn->setIcon(QIcon(":/resources/settings.png")); + ui->systemSettingsBtn->setIconSize(QSize(homeIconWidth, homeIconHeight)); + + ui->securitySettingsBtn->setText("\t\t\tSecurity"); + ui->securitySettingsBtn->setProperty("type", "borderless"); + ui->securitySettingsBtn->setStyleSheet("padding: 25px; Text-align:left"); + ui->securitySettingsBtn->setIcon(QIcon(":/resources/lock.png")); + ui->securitySettingsBtn->setIconSize(QSize(homeIconWidth, homeIconHeight)); ui->requestLeaseBtn->hide(); ui->usbmsBtn->hide(); - ui->label_3->hide(); ui->label_4->hide(); - ui->label_5->hide(); ui->label_6->hide(); - ui->line_3->hide(); - ui->line_7->hide(); ui->updateBtn->hide(); ui->updateLabel->hide(); ui->enableLockscreenCheckBox->hide(); ui->setPasscodeBtn->hide(); ui->setPasscodeLabel->hide(); - ui->securityLabel->hide(); - ui->line_2->hide(); // Variables defineDefaultPageSize(0); @@ -386,25 +432,16 @@ settings::settings(QWidget *parent) : if(checkconfig("/external_root/opt/root/rooted") == true) { ui->requestLeaseBtn->show(); ui->label_4->show(); - ui->label_3->show(); - ui->line_3->show(); } else { ui->requestLeaseBtn->hide(); ui->label_4->hide(); - ui->label_3->hide(); - ui->line_3->hide(); } - ui->securityLabel->show(); - ui->line_2->show(); ui->enableLockscreenCheckBox->show(); ui->setPasscodeBtn->show(); ui->setPasscodeLabel->show(); ui->usbmsBtn->show(); - ui->label_5->show(); ui->label_6->show(); - ui->line_7->show(); - ui->okBtn->setText("OK"); } else { ui->label_8->setText("Reset InkBox"); @@ -548,85 +585,6 @@ void settings::on_usbmsBtn_clicked() usbms_launch(); } -// Now I know that QStackedWidgets exist... ;p - -void settings::on_previousBtn_clicked() -{ - log("'Previous' button clicked", className); - settings_page = settings_page - 1; - if(settings_page == 1) { - ui->stackedWidget->setCurrentIndex(0); - - if(checkconfig("/opt/inkbox_genuine") == true) { - // Enforcing security policy if the user has not rooted the device - if(checkconfig("/external_root/opt/root/rooted") == true) { - ui->requestLeaseBtn->show(); - ui->label_4->show(); - ui->label_3->show(); - ui->line_3->show(); - } - else { - ui->requestLeaseBtn->hide(); - ui->label_4->hide(); - ui->label_3->hide(); - ui->line_3->hide(); - } - } - } - else { - if(settings_page == 2) { - ui->stackedWidget->setCurrentIndex(1); - if(checkconfig("/opt/inkbox_genuine") == true) { - if(checkconfig("/mnt/onboard/onboard/.inkbox/can_update") == true) { - ui->updateBtn->show(); - ui->updateLabel->show(); - } - else { - ui->updateBtn->show(); - ui->updateLabel->show(); - } - } - } - if(settings_page <= 0) { - // Prevent unwanted accesses - settings_page = settings_page + 1; - } - } -} - -void settings::on_nextBtn_clicked() -{ - log("'Next' button clicked", className); - settings_page = settings_page + 1; - if(settings_page == 2) { - ui->stackedWidget->setCurrentIndex(1); - - if(checkconfig("/opt/inkbox_genuine") == true) { - // Enforcing security policy if the user has not rooted the device - if(checkconfig("/external_root/opt/root/rooted") == true) { - ui->requestLeaseBtn->show(); - ui->label_4->show(); - ui->label_3->show(); - ui->line_3->show(); - } - else { - ui->requestLeaseBtn->hide(); - ui->label_4->hide(); - ui->label_3->hide(); - ui->line_3->hide(); - } - - if(checkconfig("/mnt/onboard/onboard/.inkbox/can_update") == true) { - ui->updateBtn->show(); - ui->updateLabel->show(); - } - } - } - if(settings_page >= 3) { - settings_page = settings_page - 1; - } -} - void settings::on_updateBtn_clicked() { log("'Update' button clicked", className); @@ -1162,3 +1120,61 @@ void settings::on_lockscreenBackgroundComboBox_currentTextChanged(const QString log("Set lockscreen background to 'background'", className); } } + +void settings::on_settingsStackedWidget_currentChanged(int arg1) +{ + if(ui->settingsStackedWidget->currentIndex() != 0) { + ui->headerLabel->setText(ui->settingsStackedWidget->currentWidget()->objectName()); + ui->headerBtn->show(); + ui->headerLabel->show(); + ui->line_12->show(); + } + else { + ui->headerBtn->hide(); + ui->headerLabel->hide(); + ui->line_12->hide(); + } +} + + +void settings::on_readingSettingsBtn_clicked() +{ + ui->settingsStackedWidget->setCurrentIndex(1); +} + + +void settings::on_homeSettingsBtn_clicked() +{ + ui->settingsStackedWidget->setCurrentIndex(2); +} + + +void settings::on_librarySettingsBtn_clicked() +{ + ui->settingsStackedWidget->setCurrentIndex(3); +} + + +void settings::on_storageSettingsBtn_clicked() +{ + ui->settingsStackedWidget->setCurrentIndex(4); +} + + +void settings::on_systemSettingsBtn_clicked() +{ + ui->settingsStackedWidget->setCurrentIndex(5); +} + + +void settings::on_securitySettingsBtn_clicked() +{ + ui->settingsStackedWidget->setCurrentIndex(6); +} + + +void settings::on_headerBtn_clicked() +{ + // "Home" button + ui->settingsStackedWidget->setCurrentIndex(0); +} diff --git a/src/settings/settings.h b/src/settings/settings.h index e6f1138..d8ec4c9 100644 --- a/src/settings/settings.h +++ b/src/settings/settings.h @@ -28,6 +28,11 @@ public: bool timezone_not_user_change = true; bool enableEncryptedStorageUserChange = false; + float sW; + float sH; + float homeIconWidth; + float homeIconHeight; + explicit settings(QWidget *parent = nullptr); ~settings(); @@ -39,8 +44,6 @@ private slots: void on_quoteCheckBox_toggled(bool checked); void on_requestLeaseBtn_clicked(); void on_usbmsBtn_clicked(); - void on_previousBtn_clicked(); - void on_nextBtn_clicked(); void on_updateBtn_clicked(); void on_darkModeCheckBox_toggled(bool checked); void on_uiScalingSlider_valueChanged(int value); @@ -79,6 +82,14 @@ private slots: void on_autoCheckUpdatesBox_clicked(bool checked); void on_lockscreenBackgroundComboBox_currentTextChanged(const QString &arg1); void saveDeferredSettings(); + void on_settingsStackedWidget_currentChanged(int arg1); + void on_readingSettingsBtn_clicked(); + void on_homeSettingsBtn_clicked(); + void on_librarySettingsBtn_clicked(); + void on_storageSettingsBtn_clicked(); + void on_systemSettingsBtn_clicked(); + void on_securitySettingsBtn_clicked(); + void on_headerBtn_clicked(); signals: void showToast(QString messageToDisplay); diff --git a/src/settings/settings.ui b/src/settings/settings.ui index e24de5c..097cd52 100644 --- a/src/settings/settings.ui +++ b/src/settings/settings.ui @@ -16,27 +16,7 @@ - - - - About InkBox - - - - - - - QFrame::Plain - - - 5 - - - Qt::Horizontal - - - - + QFrame::Plain @@ -49,1182 +29,38 @@ - - - - QFrame::NoFrame - - - QFrame::Plain - - - 0 - - - true - - - - - 0 - 0 - 457 - 650 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 0 - - - 0 - - - - - 6 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 0 - - - 0 - - - - - 0 - - - - - Screen refresh - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - Every page - - - - - 1 page - - - - - 2 pages - - - - - 3 pages - - - - - 4 pages - - - - - 5 pages - - - - - 6 pages - - - - - Never refresh - - - - - - - - - - Always show status bar - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - - Chivo - true - - - - Local library - - - - - - - Show folders - - - - - - - Disable authors quotes - - - - - - - Disable "Welcome to InkBox" message - - - - - - - Show scroll bar if needed - - - - - - - Qt::Vertical - - - QSizePolicy::MinimumExpanding - - - - 0 - 0 - - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - 0 - - - - - Export highlights - - - - - - - - true - - - - Export - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - 0 - - - - - - - - - :/resources/plus.png:/resources/plus.png - - - - - - - 30 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Words number/page (plain text files) - - - - - - - - - - - :/resources/minus.png:/resources/minus.png - - - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Enter USB Mass Storage session - - - - - - - - true - - - - Go - - - - - - - - - - Chivo - true - - - - USB networking - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Request DHCP lease - - - - - - - - true - - - - Request - - - - - - - - - Global reading settings - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - :/resources/minus.png:/resources/minus.png - - - - - - - - - - - :/resources/minus.png:/resources/minus.png - - - - - - - - - - - :/resources/plus.png:/resources/plus.png - - - - - - - - - - - :/resources/plus.png:/resources/plus.png - - - - - - - ePUB size: - - - - - - - Width: - - - - - - - 450 - - - - - - - Height: - - - - - - - 450 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - Chivo - true - false - - - - Reading - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - - Chivo - true - false - - - - Home - - - - - - - Clock: Show seconds - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - - Chivo - true - false - - - - Storage - - - - - - - Show USB Mass Storage dialog - - - - - - - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 0 - - - - - - Chivo - true - - - - System - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - 0 - - - - - - true - - - - Generate - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Generate system report - - - - - - - - - - Chivo - true - - - - Storage encryption - - - - - - - - Chivo - true - - - - Security - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - Enable lock screen and passcode - - - - - - - 0 - - - - - Timezone - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - 0 - - - 0 - - - - - System info - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - true - - - - Show - - - - - - - - - 0 - - - - - - true - - - - 1 - - - - - - - 0 - - - 2 - - - 1 - - - 1 - - - 0 - - - Qt::Horizontal - - - - - - - UI scaling factor - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - - QFrame::Plain - - - Qt::Horizontal - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Lockscreen background - - - - - - - - Blank - - - - - Screensaver picture - - - - - Device's screen - - - - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - true - - - - Set - - - - - - - Set a passcode - - - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Check for updates - - - - - - - - true - - - - Check - - - - - - - - - 0 - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Repack - - - - - - - - true - - - - Repack - - - - - - - - - Enable - - - - - - - Enable night mode - - - - - - - 0 - - - - - Reset this device - - - - - - - - true - - - - Reset - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - 0 - 0 - - - - Automatically check for updates - - - - - - - 0 - - - - - Update InkBox - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - true - - - - Update - - - - - - - - - - - - - - - 0 + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + @@ -1239,84 +75,1368 @@ - - - - Next - - - - - - - Previous - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - + 0 - - - - - true - - - - -OK - - - - - - - - QFrame::Plain - - - 2 + + + + + + 0 + + + + + Back + + + + Qt::Horizontal + + + 40 + 20 + + + + + + + + headerLabel + + + + + QFrame::Plain + + + 2 + + + Qt::Horizontal + + + + + + + 0 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + QFrame::NoFrame + + + true + + + + + 0 + 0 + 457 + 610 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Reading + + + + + + + QFrame::Plain + + + Qt::Horizontal + + + + + + + Home + + + + + + + QFrame::Plain + + + Qt::Horizontal + + + + + + + Library + + + + + + + QFrame::Plain + + + Qt::Horizontal + + + + + + + Storage + + + + + + + QFrame::Plain + + + Qt::Horizontal + + + + + + + System + + + + + + + QFrame::Plain + + + Qt::Horizontal + + + + + + + Security + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + QFrame::Plain + + + 2 + + + Qt::Horizontal + + + + + + + About InkBox + + + + + + + QFrame::Plain + + + 2 + + + Qt::Horizontal + + + + + + + + true + + + + +Save && Quit + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Words number/page (plain text files) + + + + + + + + + + + :/resources/minus.png:/resources/minus.png + + + + + + + 30 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + :/resources/plus.png:/resources/plus.png + + + + + + + + + 0 + + + + + + + + + :/resources/minus.png:/resources/minus.png + + + + + + + + + + + :/resources/minus.png:/resources/minus.png + + + + + + + + + + + :/resources/plus.png:/resources/plus.png + + + + + + + + + + + :/resources/plus.png:/resources/plus.png + + + + + + + 450 + + + + + + + Height: + + + + + + + 450 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Width: + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + ePUB size: + + + + + + + + + 0 + + + + + Screen refresh + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + Every page + + + + + 1 page + + + + + 2 pages + + + + + 3 pages + + + + + 4 pages + + + + + 5 pages + + + + + 6 pages + + + + + Never refresh + + + + + + + + + + Global reading settings + + + + + + + Show scroll bar if needed + + + + + + + Always show status bar + + + + + + + 0 + + + + + + true + + + + Export + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Export highlights + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Disable authors quotes + + + + + + + Disable "Welcome to InkBox" message + + + + + + + Clock: Show seconds + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + Show folders + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 0 + + + + + 0 + + + + + Enter USB Mass Storage session + + + + + + + + true + + + + Go + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Show USB Mass Storage dialog + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 0 + + + + + 0 + + + + + + true + + + + Reset + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Reset this device + + + + + + + + + 0 + + + + + + true + + + + Update + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Update InkBox + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + 0 + + + + + + true + + + + 1 + + + + + + + 0 + + + 2 + + + 1 + + + 1 + + + 0 + + + Qt::Horizontal + + + + + + + UI scaling factor + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + 0 + + + + + + true + + + + Request + + + + + + + Request DHCP lease + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + + + 0 + + + + + System info + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + true + + + + Show + + + + + + + + + 0 + + + + + + true + + + + Generate + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Generate system report + + + + + + + + + Enable night mode + + + + + + + + 0 + 0 + + + + Automatically check for updates + + + + + + + 0 + + + + + + true + + + + Check + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Check for updates + + + + + + + + + 0 + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + Timezone + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 0 + + + + + 0 + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Repack + + + + + + + + true + + + + Repack + + + + + + + + + 0 + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + Blank + + + + + Screensaver picture + + + + + Device's screen + + + + + + + + Lockscreen background + + + + + + + + + Enable + + + + + + + Enable lock screen and passcode + + + + + + + + Chivo + true + + + + Storage encryption + + + + + + + QFrame::Plain + + + Qt::Horizontal + + + + + + + 0 + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Set a passcode + + + + + + + + true + + + + Set + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + +