update linux deploy script & fix warnings

This commit is contained in:
uncor3
2026-01-20 00:11:59 +00:00
parent 2102e6d072
commit d8325c0223
18 changed files with 118 additions and 44 deletions
+18
View File
@@ -90,6 +90,24 @@ plugins=(
"libgstapp.so"
"libgstautodetect.so"
"libgstaudioresample.so"
"libgstvideoparsersbad.so"
"libgstvaapi.so"
"libgstva.so"
"libgstvideo4linux2.so"
"libgstvideoconvertscale.so"
"libgstvideoconvert.so"
"libgstvideoscale.so"
"libgstvideofilter.so"
"libgstjpeg.so"
"libgstimagefreeze.so"
"libgstximagesink.so"
"libgstxvimagesink.so"
"libgstgtk.so"
"libgstgl.so"
"libgstrtp.so"
"libgstrtpmanager.so"
"libgsttypefindfunctions.so"
"libgstisomp4.so"
)
for i in "${plugins[@]}"; do
+2 -2
View File
@@ -525,8 +525,6 @@ void AfcExplorerWidget::setupFileExplorer()
m_navWidget = new QWidget();
m_navWidget->setObjectName("navWidget");
m_navWidget->setFocusPolicy(Qt::StrongFocus); // Make it focusable
connect(qApp, &QApplication::paletteChanged, this,
&AfcExplorerWidget::updateNavStyles);
m_navWidget->setMaximumWidth(500);
m_navWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
@@ -693,6 +691,8 @@ void AfcExplorerWidget::onAddToFavoritesClicked()
void AfcExplorerWidget::updateNavStyles()
{
if (!m_navWidget || !m_addressBar)
return;
bool isDark = isDarkMode();
QColor lightColor = qApp->palette().color(QPalette::Light);
QColor darkColor = qApp->palette().color(QPalette::Dark);
+9
View File
@@ -117,6 +117,15 @@ private:
void updateNavStyles();
void updateButtonStates();
void goUp();
protected:
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::PaletteChange) {
updateNavStyles();
}
QWidget::changeEvent(event);
}
};
#endif // AFCEXPLORER_H
+2
View File
@@ -248,6 +248,7 @@ void AirPlayWindow::showTutorialView()
m_stackedWidget->setCurrentWidget(m_tutorialWidget);
if (m_tutorialPlayer) {
m_tutorialPlayer->play();
m_loadingIndicator->start();
}
}
@@ -387,6 +388,7 @@ void AirPlayWindow::onClientConnectionChanged(bool connected)
showStreamingView();
} else {
m_loadingLabel->setText("Waiting for device connection...");
m_videoLabel->clear();
showTutorialView();
}
}
+2 -8
View File
@@ -107,20 +107,14 @@ void AppsWidget::setupUI()
mainLayout->addWidget(headerWidget);
static ZIcon searchIcon(":/resources/icons/MdiLightMagnify.png");
m_searchIcon = ZIcon(":/resources/icons/MdiLightMagnify.png");
m_searchAction = m_searchEdit->addAction(
searchIcon.getThemedPixmap(QSize(16, 16), palette()),
m_searchIcon.getThemedPixmap(QSize(16, 16), palette()),
QLineEdit::TrailingPosition);
m_searchAction->setToolTip("Search");
connect(m_searchAction, &QAction::triggered, this,
&AppsWidget::performSearch);
// Update search icon when theme changes
connect(qApp, &QApplication::paletteChanged, this, [this]() {
m_searchAction->setIcon(
searchIcon.getThemedPixmap(QSize(16, 16), palette()));
});
headerLayout->addWidget(m_searchEdit);
headerLayout->addStretch();
headerLayout->addWidget(m_statusLabel);
+14
View File
@@ -21,6 +21,7 @@
#define APPSWIDGET_H
#include "appstoremanager.h"
#include "iDescriptor-ui.h"
#include "qprocessindicator.h"
#include <QAction>
#include <QComboBox>
@@ -136,6 +137,19 @@ private:
QJsonArray m_goldSponsors;
QJsonArray m_silverSponsors;
QJsonArray m_bronzeSponsors;
ZIcon m_searchIcon;
protected:
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::PaletteChange) {
if (m_searchAction && !m_searchIcon.isNull()) {
m_searchAction->setIcon(
m_searchIcon.getThemedPixmap(QSize(16, 16), palette()));
}
}
QWidget::changeEvent(event);
}
};
#endif // APPSWIDGET_H
+7 -1
View File
@@ -32,8 +32,14 @@ BatteryWidget::BatteryWidget(float value, bool isCharging, QWidget *parent)
{
setMinimumSize(30, 30);
setMaximumSize(40, 40);
}
connect(qApp, &QApplication::paletteChanged, this, [this]() { update(); });
void BatteryWidget::changeEvent(QEvent *event)
{
if (event->type() == QEvent::PaletteChange) {
update();
}
QWidget::changeEvent(event);
}
void BatteryWidget::resizeEvent(QResizeEvent *)
+3
View File
@@ -35,6 +35,9 @@ public:
void setValue(float newValue);
float getValue() const;
protected:
void changeEvent(QEvent *event) override;
private:
QRectF widgetFrame;
QRectF mainBatteryFrame;
+3 -3
View File
@@ -60,9 +60,9 @@ ExportProgressDialog::ExportProgressDialog(ExportManager *exportManager,
connect(m_transferRateTimer, &QTimer::timeout, this,
&ExportProgressDialog::updateTransferRate);
// Listen for palette changes
connect(qApp, &QApplication::paletteChanged, this,
&ExportProgressDialog::updateColors);
// FIXME:Listen for palette changes
// connect(qApp, &QApplication::paletteChanged, this,
// &ExportProgressDialog::updateColors);
updateColors();
}
+20 -9
View File
@@ -152,11 +152,6 @@ public:
updateIconSize();
setCursor(Qt::PointingHandCursor);
connect(qApp, &QApplication::paletteChanged, this,
[this] { update(); });
connect(qApp, &QApplication::fontChanged, this,
[this] { updateIconSize(); });
}
void setIcon(const ZIcon &icon)
@@ -193,6 +188,16 @@ protected:
m_icon.paint(&painter, iconRect, palette(), devicePixelRatioF());
}
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::ApplicationFontChange) {
updateIconSize();
} else if (event->type() == QEvent::ApplicationPaletteChange) {
update();
}
QAbstractButton::changeEvent(event);
}
private:
void updateIconSize()
{
@@ -224,10 +229,6 @@ public:
{
setToolTip(tooltip);
updateIconSize();
connect(qApp, &QApplication::paletteChanged, this,
[this]() { update(); });
connect(qApp, &QApplication::fontChanged, this,
[this]() { updateIconSize(); });
}
void setIcon(const QIcon &icon)
{
@@ -261,6 +262,16 @@ protected:
m_icon.paint(&painter, iconRect, palette(), devicePixelRatioF());
}
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::ApplicationFontChange) {
updateIconSize();
} else if (event->type() == QEvent::ApplicationPaletteChange) {
update();
}
QLabel::changeEvent(event);
}
private:
void updateIconSize()
{
-6
View File
@@ -196,12 +196,6 @@ void InstalledAppsWidget::setupUI()
// Start in loading state
showLoadingState();
connect(qApp, &QApplication::paletteChanged, this, [this]() {
for (AppTabWidget *tab : m_appTabs) {
tab->updateStyles();
}
});
}
void InstalledAppsWidget::showLoadingState()
+7
View File
@@ -66,6 +66,13 @@ signals:
protected:
void mousePressEvent(QMouseEvent *event) override;
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::PaletteChange) {
updateStyles();
}
QGroupBox::changeEvent(event);
};
private:
void fetchAppIcon();
-5
View File
@@ -99,11 +99,6 @@ void NetworkDevicesWidget::setupUI()
m_scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
m_scrollArea->setStyleSheet(
"QScrollArea { background: transparent; border: none; }");
/* FIXME: We need a better approach to theme awareness */
connect(qApp, &QApplication::paletteChanged, this, [this]() {
m_scrollArea->setStyleSheet(
"QScrollArea { background: transparent; border: none; }");
});
// Scroll content
m_scrollContent = new QWidget();
+12
View File
@@ -63,6 +63,18 @@ private:
#endif
QList<QWidget *> m_deviceCards;
protected:
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::PaletteChange) {
if (m_scrollArea) {
m_scrollArea->setStyleSheet(
"QScrollArea { background: transparent; border: none; }");
}
}
QWidget::changeEvent(event);
};
};
#endif // NETWORKDEVICESWIDGET_H
-2
View File
@@ -35,8 +35,6 @@ QProcessIndicator::QProcessIndicator(QWidget *parent)
m_timer = new QTimer();
connect(m_timer, SIGNAL(timeout()), this, SLOT(onTimeout()));
connect(qApp, &QApplication::paletteChanged, this,
&QProcessIndicator::updateStyle);
}
void QProcessIndicator::updateStyle()
{
+9
View File
@@ -77,6 +77,15 @@ private:
qreal m_scale;
QTimer *m_timer;
protected:
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::PaletteChange) {
updateStyle();
}
QWidget::changeEvent(event);
};
};
#endif // QPROCESSINDICATOR_H
+1 -8
View File
@@ -28,14 +28,7 @@ ZLineEdit::ZLineEdit(const QString &text, QWidget *parent)
setupStyles();
}
void ZLineEdit::setupStyles()
{
updateStyles();
// Connect to palette changes for dynamic theme updates
connect(qApp, &QApplication::paletteChanged, this,
&ZLineEdit::updateStyles);
}
void ZLineEdit::setupStyles() { updateStyles(); }
void ZLineEdit::updateStyles()
{
+9
View File
@@ -35,4 +35,13 @@ private slots:
private:
void setupStyles();
protected:
void changeEvent(QEvent *event) override
{
if (event->type() == QEvent::PaletteChange) {
updateStyles();
}
QLineEdit::changeEvent(event);
}
};