diff --git a/hide_idle_rate.patch b/hide_idle_rate.patch new file mode 100644 index 0000000000000000000000000000000000000000..049297daa5799afe3eb9c879f1a3beaf38b971e6 --- /dev/null +++ b/hide_idle_rate.patch @@ -0,0 +1,13 @@ +diff -Naur ukui-system-monitor-1.0.1/src/cpuratewidget.cpp ukui-system-monitor-1.0.1~/src/cpuratewidget.cpp +--- ukui-system-monitor-1.0.1/src/cpuratewidget.cpp 2019-05-27 15:48:18.000000000 +0800 ++++ ukui-system-monitor-1.0.1~/src/cpuratewidget.cpp 2021-08-31 22:55:24.266527686 +0800 +@@ -353,6 +353,9 @@ + m_cpuIdleRateText = new QLabel; + m_cpuIdleRateText->setStyleSheet("QLabel{background:transparent;font-size:20px;color:palette(windowTexg);}"); + ++ m_cpuIdleRateText->hide(); ++ m_cpuIdleRateTitle->hide(); ++ + m_cpuRunTimeTitle = new QLabel; + // m_cpuRunTimeTitle->setStyleSheet("QLabel{background:transparent;font-size:12px;color:palette(windowTexg);}"); + m_cpuRunTimeTitle->setText(tr("The running time of system")); diff --git a/ukui-system-monitor.spec b/ukui-system-monitor.spec index 8a5dc16f3411fe12b63129e2741ae11d4e984689..0844e91576e7be70da50fe903dc1c63798df1986 100644 --- a/ukui-system-monitor.spec +++ b/ukui-system-monitor.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: ukui-system-monitor Version: 1.0.1 -Release: 2 +Release: 3 Summary: A simple system monitor written in QT License: GPL-3+ GPL-2+ URL: http://www.ukui.org @@ -33,13 +33,14 @@ Requires: pciutils Requires: libpcap patch0: 0001-removes-transparency.patch - +patch1: hide_idle_rate.patch %description A simple system monitor written in QT %prep %setup -q %patch0 -p1 +%patch1 -p1 %build export PATH=%{_qt5_bindir}:$PATH @@ -70,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/glib-2.0/schemas/org.ukui.system-monitor.menu.gschema.xml %changelog +* Wed Sep 1 2021 douyan - 1.0.1-3 +- hide idle rate + * Wed Dec 16 2020 lvhan - 1.0.1-2 - removes transparency