Compare commits
12 Commits
23d3930bcd
...
470c9aa760
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
470c9aa760 | ||
|
|
d3deb77861 | ||
|
|
5021e879a0 | ||
|
|
c37944fec9 | ||
|
|
a8aee68123 | ||
|
|
7ec2fee64c | ||
|
|
f3e73144ef | ||
|
|
c957f393dc | ||
|
|
5803b3096e | ||
|
|
485c3219ca | ||
|
|
90aaaea559 | ||
|
|
46856822dd |
29
0001-fix-ukui-kwin-data-install-error.patch
Normal file
29
0001-fix-ukui-kwin-data-install-error.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From be68f4e91c2ea7511e65a13b6a39caca4c065025 Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
Date: Wed, 15 Feb 2023 19:53:47 +0800
|
||||
Subject: [PATCH] fix ukui-kwin-data install error
|
||||
|
||||
---
|
||||
po/tr/{kwin.po => ukui-kwin.po} | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
rename po/tr/{kwin.po => ukui-kwin.po} (99%)
|
||||
|
||||
diff --git a/po/tr/kwin.po b/po/tr/ukui-kwin.po
|
||||
similarity index 99%
|
||||
rename from po/tr/kwin.po
|
||||
rename to po/tr/ukui-kwin.po
|
||||
index 99e2269..2ba3b31 100644
|
||||
--- a/po/tr/kwin.po
|
||||
+++ b/po/tr/ukui-kwin.po
|
||||
@@ -12,7 +12,7 @@
|
||||
# Kaan Ozdincer <kaanozdincer@gmail.com>, 2014.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
-"Project-Id-Version: kwin\n"
|
||||
+"Project-Id-Version: kdeorg\n"
|
||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||
"POT-Creation-Date: 2020-05-13 03:54+0200\n"
|
||||
"PO-Revision-Date: 2017-06-09 14:24+0100\n"
|
||||
--
|
||||
2.33.0
|
||||
|
||||
43
0002-fix-mate-terminal-theme.patch
Normal file
43
0002-fix-mate-terminal-theme.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From b1400c71a92d0893103d3a1a616976fac0787117 Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
Date: Thu, 9 Mar 2023 14:10:33 +0800
|
||||
Subject: [PATCH] fix mate-terminal theme
|
||||
|
||||
---
|
||||
decorations/decorationbridge.cpp | 19 +++++++++++++++++++
|
||||
1 files changed, 19 insertions(+)
|
||||
|
||||
diff --git a/decorations/decorationbridge.cpp b/decorations/decorationbridge.cpp
|
||||
index 10e766c..a19fe8a 100644
|
||||
--- a/decorations/decorationbridge.cpp
|
||||
+++ b/decorations/decorationbridge.cpp
|
||||
@@ -156,7 +156,26 @@ void DecorationBridge::init()
|
||||
m_dpi = 30; //设置一个限度,不允许dpi小于30
|
||||
}
|
||||
}
|
||||
+ QGSettings* pThemeSettings = new QGSettings("org.ukui.style", "/org/ukui/style/", this);
|
||||
|
||||
+ QString strTheme;
|
||||
+ if (true == pThemeSettings->keys().contains("styleName")){
|
||||
+ strTheme = pThemeSettings->get("style-name").toString();
|
||||
+ qDebug() << "DecorationBridge::init theme:" << strTheme;
|
||||
+ }
|
||||
+
|
||||
+ if("ukui-light" == strTheme)
|
||||
+ {
|
||||
+ m_themeId = 0;
|
||||
+ }
|
||||
+ else if("ukui-dark" == strTheme)
|
||||
+ {
|
||||
+ m_themeId = 1;
|
||||
+ }
|
||||
+ else //默认ukui-default
|
||||
+ {
|
||||
+ m_themeId = 0;
|
||||
+ }
|
||||
|
||||
const QFont font = QFontDatabase::systemFont(QFontDatabase::TitleFont);
|
||||
m_nFont = font.pointSize();
|
||||
--
|
||||
2.39.1
|
||||
|
||||
71
0003-fix-build-error-about-windowClass.patch
Normal file
71
0003-fix-build-error-about-windowClass.patch
Normal file
@ -0,0 +1,71 @@
|
||||
From 174735784266ba42ee5bcb1733ac3d8e4b307b04 Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
Date: Mon, 21 Aug 2023 09:59:49 +0800
|
||||
Subject: [PATCH] fix build error about windowClass
|
||||
|
||||
---
|
||||
decorations/decoratedclient.cpp | 5 +++++
|
||||
decorations/decoratedclient.h | 1 +
|
||||
kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp | 5 +++++
|
||||
kcmkwin/kwindecoration/declarative-plugin/previewclient.h | 1 +
|
||||
4 files changed, 12 insertions(+)
|
||||
|
||||
diff --git a/decorations/decoratedclient.cpp b/decorations/decoratedclient.cpp
|
||||
index c4c0c88..1ac88f4 100644
|
||||
--- a/decorations/decoratedclient.cpp
|
||||
+++ b/decorations/decoratedclient.cpp
|
||||
@@ -263,6 +263,11 @@ int DecoratedClientImpl::width() const
|
||||
return m_clientSize.width();
|
||||
}
|
||||
|
||||
+QString DecoratedClientImpl::windowClass() const
|
||||
+{
|
||||
+ return QString();
|
||||
+}
|
||||
+
|
||||
int DecoratedClientImpl::height() const
|
||||
{
|
||||
return m_clientSize.height();
|
||||
diff --git a/decorations/decoratedclient.h b/decorations/decoratedclient.h
|
||||
index 49f8be5..7ba92d0 100644
|
||||
--- a/decorations/decoratedclient.h
|
||||
+++ b/decorations/decoratedclient.h
|
||||
@@ -58,6 +58,7 @@ public:
|
||||
QSize size() const override;
|
||||
int width() const override;
|
||||
WId windowId() const override;
|
||||
+ QString windowClass() const override;
|
||||
|
||||
Qt::Edges adjacentScreenEdges() const override;
|
||||
|
||||
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp
|
||||
index ace02c8..08be8e3 100644
|
||||
--- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp
|
||||
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp
|
||||
@@ -133,6 +133,11 @@ int PreviewClient::width() const
|
||||
return m_width;
|
||||
}
|
||||
|
||||
+QString PreviewClient::windowClass() const
|
||||
+{
|
||||
+ return QString();
|
||||
+}
|
||||
+
|
||||
int PreviewClient::height() const
|
||||
{
|
||||
return m_height;
|
||||
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
|
||||
index fe043db..1e35f00 100644
|
||||
--- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
|
||||
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
|
||||
@@ -87,6 +87,7 @@ public:
|
||||
bool isShadeable() const override;
|
||||
bool isShaded() const override;
|
||||
bool providesContextHelp() const override;
|
||||
+ QString windowClass() const override;
|
||||
|
||||
int width() const override;
|
||||
int height() const override;
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,11 +1,14 @@
|
||||
Name: ukui-kwin
|
||||
Version: 1.0.5
|
||||
Release: 2
|
||||
Release: 7
|
||||
Summary: KDE Window Manager for UKUI desktop environment
|
||||
License: GPL-2.0-or-later and LGPL-2.0-or-later
|
||||
URL: https://github.com/ukui/ukui-kwin
|
||||
|
||||
Source0: ukui-kwin-1.0.5.tar.gz
|
||||
Patch01: 0001-fix-ukui-kwin-data-install-error.patch
|
||||
Patch02: 0002-fix-mate-terminal-theme.patch
|
||||
Patch03: 0003-fix-build-error-about-windowClass.patch
|
||||
|
||||
BuildRequires: cmake extra-cmake-modules
|
||||
BuildRequires: kf5-kinit-devel kscreenlocker-devel libcap-devel libdrm-devel >= 2.4.62 mesa-libEGL-devel libepoxy-devel >= 1.2 fontconfig-devel freetype-devel libgbm-devel libICE-devel libinput-devel >= 1.15.5 kdecoration-devel
|
||||
@ -13,7 +16,7 @@ BuildRequires: kf5-kactivities-devel kf5-kcompletion-devel kf5-kconfig-devel
|
||||
BuildRequires: qt5-qtsensors-devel qt5-qtx11extras-devel
|
||||
BuildRequires: libSM-devel systemd-devel wayland-devel >= 1.2
|
||||
BuildRequires: libX11-devel libxcb-devel xcb-util-cursor xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-devel libXcursor-devel libXi-devel libxkbcommon-devel >= 0.7.0 pkg-config
|
||||
BuildRequires: qt5-qtbase-devel qt5-qtbase-private-devel qt5-qtdeclarative-devel qt5-qtscript-devel qt5-qttools-devel gsettings-qt-devel
|
||||
BuildRequires: qt5-qtbase-devel qt5-qtbase-private-devel qt5-qtdeclarative-devel qt5-qtscript-devel qt5-qttools-static gsettings-qt-devel
|
||||
BuildRequires: kwin-devel libXtst-devel
|
||||
#compile need
|
||||
BuildRequires: kf5-kirigami2-devel plasma-breeze-devel xcb-util-cursor-devel xcb-util-wm-devel xcb-util-image-devel xcb-util-keysyms-devel qt5-qtbase-static kf5-kguiaddons-devel
|
||||
@ -28,7 +31,7 @@ This package is a transitional dummy to depend on the renamed ukui-kwin-x11 and
|
||||
%package -n ukui-kwin-wayland
|
||||
Summary: KDE Window Manager for UKUI desktop environment with experimental Wayland support
|
||||
Requires: ukui-kwin-common
|
||||
Requires: kwayland-integration%
|
||||
Requires: kwayland-integration
|
||||
Requires: xorg-x11-server-Xwayland
|
||||
%description -n ukui-kwin-wayland
|
||||
%{summary}.
|
||||
@ -37,6 +40,7 @@ Requires: xorg-x11-server-Xwayland
|
||||
%package -n ukui-kwin-common
|
||||
Summary: UKUI window manager, common files
|
||||
Requires: ukui-kwin-data kf5-kglobalaccel libukui-kwineffects12 kf5-kirigami2 kf5-kdeclarative qt5-qtmultimedia
|
||||
Obsoletes: ukui-kwin-libs
|
||||
Recommends: qt5-qtvirtualkeyboard
|
||||
%description -n ukui-kwin-common
|
||||
%{summary}.
|
||||
@ -91,7 +95,7 @@ Summary: UKUI window manager effects library
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
@ -201,6 +205,21 @@ cp COPYING* %{buildroot}%{_datadir}/licenses/ukui-kwin/
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Aug 29 2023 peijiankang<peijiankang@kylinos.cn> - 1.0.5-7
|
||||
- update qt5-qttools-devel to qt5-qttools-static
|
||||
|
||||
* Mon Aug 21 2023 peijiankang<peijiankang@kylinos.cn> - 1.0.5-6
|
||||
- add 0003-fix-build-error-about-windowClass.patch
|
||||
|
||||
* Thu Jun 01 2023 peijiankang<peijiankang@kylinos.cn> - 1.0.5-5
|
||||
- add Obsoletes ukui-kwin-libs
|
||||
|
||||
* Thu Mar 09 2023 peijiankang<peijiankang@kylinos.cn> - 1.0.5-4
|
||||
- fix mate-terminal theme
|
||||
|
||||
* Thu Feb 16 2023 peijiankang<peijiankang@kylinos.cn> - 1.0.5-3
|
||||
- fix ukui-kwin-data install error
|
||||
|
||||
* Tue Dec 6 2022 peijiankang<peijiankang@kylinos.cn> - 1.0.5-2
|
||||
- modify install error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user