解决右键菜单没有毛玻璃的问题
This commit is contained in:
parent
79e52eb50e
commit
c3f8562d3f
25
0002-Fix-the-right-menu-without-frosted-glass-issue.patch
Normal file
25
0002-Fix-the-right-menu-without-frosted-glass-issue.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 4fe3f75353853d7671e93bf036badf7935cccc1f Mon Sep 17 00:00:00 2001
|
||||||
|
From: tanyulong <tanyulong@kylinos.cn>
|
||||||
|
Date: Thu, 8 Jul 2021 17:48:05 +0800
|
||||||
|
Subject: [PATCH] Fix the right menu without frosted glass issue
|
||||||
|
|
||||||
|
---
|
||||||
|
ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp
|
||||||
|
index 2cd9612..e2714a2 100755
|
||||||
|
--- a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp
|
||||||
|
+++ b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp
|
||||||
|
@@ -453,7 +453,7 @@ DeviceSwitchWidget::DeviceSwitchWidget(QWidget *parent) : QWidget (parent)
|
||||||
|
*/
|
||||||
|
void DeviceSwitchWidget::systemTrayMenuInit()
|
||||||
|
{
|
||||||
|
- menu = new QMenu();
|
||||||
|
+ menu = new QMenu(this);
|
||||||
|
qDebug() << "new menu";
|
||||||
|
// menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
// menu->setAttribute();
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: ukui-media
|
Name: ukui-media
|
||||||
Version: 3.0.2
|
Version: 3.0.2
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: UKUI media utilities
|
Summary: UKUI media utilities
|
||||||
License: GPL-2+ GPL-3+ LGPL-2+ BSD-3-Clause
|
License: GPL-2+ GPL-3+ LGPL-2+ BSD-3-Clause
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
@ -33,6 +33,7 @@ Requires: ukui-media-common = %{version}
|
|||||||
Recommends: alsa-utils sound-theme-freedesktop
|
Recommends: alsa-utils sound-theme-freedesktop
|
||||||
|
|
||||||
patch0: 0001-fix-vol-icon-bug.patch
|
patch0: 0001-fix-vol-icon-bug.patch
|
||||||
|
patch1: 0002-Fix-the-right-menu-without-frosted-glass-issue.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A simple and lightweight screensaver written by Qt5.
|
A simple and lightweight screensaver written by Qt5.
|
||||||
@ -51,6 +52,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64
|
./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64
|
||||||
@ -112,6 +114,9 @@ glib-compile-schemas /usr/share/glib-2.0/schemas/
|
|||||||
%{_datadir}/glib-2.0/
|
%{_datadir}/glib-2.0/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 8 2021 tanyulong<tanyulong@kylinos.cn> - 3.0.2-3
|
||||||
|
- Fix the right menu without frosted glass
|
||||||
|
|
||||||
* Mon Dec 7 2020 lvhan <lvhan@kylinos.cn> - 3.0.2-2
|
* Mon Dec 7 2020 lvhan <lvhan@kylinos.cn> - 3.0.2-2
|
||||||
- fix vol icon bug
|
- fix vol icon bug
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user