From 21fad341040e3fb475a53d9f6c43138c4e6f1408 Mon Sep 17 00:00:00 2001 From: dou33 Date: Wed, 1 Sep 2021 10:59:00 +0800 Subject: [PATCH] hide idle rate --- hide_idle_rate.patch | 13 +++++++++++++ ukui-system-monitor.spec | 8 ++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 hide_idle_rate.patch diff --git a/hide_idle_rate.patch b/hide_idle_rate.patch new file mode 100644 index 0000000..049297d --- /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 8a5dc16..0844e91 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