!20 change markertool opacity
From: @peijiankang Reviewed-by: @tanyulong2021 Signed-off-by: @tanyulong2021
This commit is contained in:
commit
389e64350c
25
0006-change-markertool-opacity.patch
Normal file
25
0006-change-markertool-opacity.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 9949bc701d108f68fbe1e3e16d753db5df98c61b Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
Date: Tue, 28 Jun 2022 17:05:35 +0800
|
||||
Subject: [PATCH] change markertool opacity
|
||||
|
||||
---
|
||||
src/tools/marker/markertool.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/tools/marker/markertool.cpp b/src/tools/marker/markertool.cpp
|
||||
index 980833b..7c16d98 100755
|
||||
--- a/src/tools/marker/markertool.cpp
|
||||
+++ b/src/tools/marker/markertool.cpp
|
||||
@@ -70,7 +70,7 @@ void MarkerTool::process(QPainter &painter, const QPixmap &pixmap, bool recordUn
|
||||
updateBackup(pixmap);
|
||||
}
|
||||
painter.setCompositionMode(QPainter::CompositionMode_Multiply);
|
||||
- painter.setOpacity(0.35);
|
||||
+ painter.setOpacity(0.5);
|
||||
painter.setPen(QPen(m_color, m_thickness));
|
||||
painter.drawLine(m_points.first, m_points.second);
|
||||
}
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
%define debug_package %{nil}
|
||||
Name: kylin-screenshot
|
||||
Version: 1.0.0
|
||||
Release: 9
|
||||
Release: 10
|
||||
Summary: a powerful screenshot and screen recording tool
|
||||
License: GPL-3.0-or-later and LGPL-3.0-or-later and MIT and Apache-2.0
|
||||
URL: https://github.com/ubuntukylin
|
||||
@ -33,6 +33,7 @@ patch2: optimize-the-undo-button-function.patch
|
||||
patch3: 0003-change-kylin-screenshot-to-screenshot.patch
|
||||
patch4: 0004-add-log.patch
|
||||
patch5: 0005-fixed-wayland-cannot-screenshot-top-widget.patch
|
||||
patch6: 0006-change-markertool-opacity.patch
|
||||
|
||||
%description
|
||||
Powerful yet simple-to-use screenshot software
|
||||
@ -50,6 +51,7 @@ patch5: 0005-fixed-wayland-cannot-screenshot-top-widget.patch
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
%build
|
||||
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro
|
||||
@ -100,6 +102,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_datadir}/metainfo/kylinscreenshot.appdata.xml
|
||||
|
||||
%changelog
|
||||
* Tue Jun 28 2022 peijiankang <peijiankang@kylinos.cn> - 1.0.0-10
|
||||
- change markertool opacity
|
||||
|
||||
* Tue Jun 28 2022 peijiankang <peijiankang@kylinos.cn> - 1.0.0-9
|
||||
- fixed wayland cannot screenshot top widget
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user