diff --git a/0001-Solve-the-problem-of-not-being-able-to-shrink-after-magnification.patch b/0001-Solve-the-problem-of-not-being-able-to-shrink-after-magnification.patch new file mode 100644 index 0000000000000000000000000000000000000000..07d9327f59904f68140f022caa0de348929703a0 --- /dev/null +++ b/0001-Solve-the-problem-of-not-being-able-to-shrink-after-magnification.patch @@ -0,0 +1,71 @@ +From b81dafbd4fca202cfd65a51cfd38293c8d014ddc Mon Sep 17 00:00:00 2001 +From: maqi +Date: Mon, 13 May 2024 15:09:33 +0800 +Subject: [PATCH] Solve the problem of not being able to shrink after + magnification + +--- + src/windowedframe.cpp | 11 ----------- + 1 file changed, 11 deletions(-) + +diff --git a/src/windowedframe.cpp b/src/windowedframe.cpp +index 55c34069..bf997690 100644 +--- a/src/windowedframe.cpp ++++ b/src/windowedframe.cpp +@@ -87,18 +87,14 @@ WindowedFrame::WindowedFrame(QWidget *parent) + , m_displayMode(All) + , m_calcUtil(CalculateUtil::instance()) + , m_focusPos(Applist) +- , m_modeToggleBtn(new ModeToggleButton(this)) + , m_searcherEdit(new DSearchEdit(this)) + , m_enterSearchEdit(false) + , m_dockFrontInfc(new DBusDockInterface(this)) + { +- if (!getDConfigValue("enableFullScreenMode", true).toBool()) +- m_modeToggleBtn->hide(); + + m_searcherEdit->setAccessibleName("searcherEdit"); + m_maskBg->setAccessibleName("MaskBg"); + m_switchBtn->setAccessibleName("switchBtn"); +- m_modeToggleBtn->setAccessibleName("modeToggleBtn"); + m_tipsLabel->setAccessibleName("tipsLabel"); + + setMaskColor(DBlurEffectWidget::AutoColor); +@@ -135,7 +131,6 @@ WindowedFrame::WindowedFrame(QWidget *parent) + searchLayout->setContentsMargins(9, 0, DLauncher::MINI_FRAME_LAYOUT_SPACE2, 0); + searchLayout->addWidget(m_searcherEdit); + searchLayout->setSpacing(6); +- searchLayout->addWidget(m_modeToggleBtn); + + QHBoxLayout *appsLayout = new QHBoxLayout; + appsLayout->setContentsMargins(DLauncher::MINI_FRAME_LAYOUT_SPACE1, 0, 0, 0); +@@ -225,7 +220,6 @@ WindowedFrame::WindowedFrame(QWidget *parent) + connect(m_delayHideTimer, &QTimer::timeout, this, &WindowedFrame::prepareHideLauncher, Qt::QueuedConnection); + + connect(m_appearanceInter, &Appearance::OpacityChanged, this, &WindowedFrame::onOpacityChanged); +- connect(m_modeToggleBtn, &DToolButton::clicked, this, &WindowedFrame::onToggleFullScreen); + + QTimer::singleShot(1, this, &WindowedFrame::onWMCompositeChanged); + onOpacityChanged(m_appearanceInter->opacity()); +@@ -235,10 +229,6 @@ WindowedFrame::WindowedFrame(QWidget *parent) + connect(this, &WindowedFrame::visibleChanged, this, &WindowedFrame::onHideMenu); + + // 状态切换 +- m_switchBtn->updateStatus(All); +- m_modeToggleBtn->setIconSize(QSize(32,32)); +- m_modeToggleBtn->setFixedSize(40, 40); +- m_modeToggleBtn->setFocusPolicy(Qt::NoFocus); + + // 重置控件样式 + resetWidgetStyle(); +@@ -928,7 +918,6 @@ void WindowedFrame::onToggleFullScreen() + if (delegate) + delegate->setActived(false); + +- m_modeToggleBtn->setHovered(false); + + // 全屏状态标识 + m_calcUtil->setFullScreen(true); +-- +2.39.3 + diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 1ce2d46533a6892a27e3c1704c780d8dbfbaa1ab..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,37 +0,0 @@ -# dde-launcher - -#### Description -dde launcher: Launcher helps you manage all the installed applications, where you can quickly find an application by category navigation or by a search - -#### Software Architecture -Software architecture description - -#### Installation - -1. dnf install dde-launcher - -#### Instructions - -1. Switch Launcher Modes,There are two display modes of Launcher: fullscreen mode and mini mode. Click the icon at the upper right corner to switch modes. -2. Sort Applications,In fullscreen mode, all applications in Launcher are listed by the installation time by default. You can sort the application icons as the ways below,Hover the cursor over an application icon, hold down the left key of mouse, drag and drop the application icon to arrange it freely. -3. Find Applications,If you already know the application name, just search for it. -4. Create App Shortcut,Select Send to desktop to create a shortcut on the desktop.Select Send to dock to fix the application icon in Dock. -5. Run Applications,Click the application icon in Dock or right-click it and select open. -6. For the frequently-used applications, right-click the app icon and select Add to startup to run it when the computer boots. - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index b224ecd25cadf7a82d68600bef8f19828034a102..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# dde-launcher - -#### 介绍 -dde launcher:帮助您管理系统中已安装的所有应用,在启动器中使用分类导航或搜索功能可以快速找到您需要的应用程序 - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. dnf install dde-launcher - -#### 使用说明 - -1. 模式切换,启动器有全屏和小窗口两种模式。单击启动器界面右上角的图标来切换模式。 -2. 排列应用,全屏模式下,系统默认按照安装时间排列所有应用,也可以将鼠标悬停在应用图标上,按住鼠标左键不放,将应用图标拖拽到指定的位置自由排列。 -3. 应用查找,直接在搜索框中输入关键字,快速定位到需要的应用。 -4. 创建快捷方式,打开应用图片右键发送应用到任务栏或者桌面创建快捷方式 -5. 运行应用,在启动器中直接单击应用图标打开,或右键单击应用图标选择打开 -6. 对于经常使用的应用,您可以在启动器中,右键单击应用图标选择 开机自动启动 - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/dde-launcher-5.5.37.tar.gz b/dde-launcher-5.5.37.tar.gz deleted file mode 100644 index 4d8e08ccfb43c4ebc5a9a7b95e713d295c21b6e4..0000000000000000000000000000000000000000 Binary files a/dde-launcher-5.5.37.tar.gz and /dev/null differ diff --git a/dde-launcher-5.6.10.tar.gz b/dde-launcher-5.6.10.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7b14fb29d8fff82af217e9ba53a6268218ce887a Binary files /dev/null and b/dde-launcher-5.6.10.tar.gz differ diff --git a/dde-launcher.spec b/dde-launcher.spec index 7159979675cc82141a02c9a2ed92973fda9a95b2..b557886e4147754bffbed5464ab1114254acfb13 100644 --- a/dde-launcher.spec +++ b/dde-launcher.spec @@ -1,13 +1,12 @@ %global sname dde-launcher Name: dde-launcher -Version: 5.5.37 -Release: 2 +Version: 5.6.10 +Release: 2%{?dist} Summary: dde desktop-environment - Launcher module License: GPLv3 -URL: https://github.com/linuxdeepin/dde-launcher -Source0: %{name}-%{version}.tar.gz -Source1: org.deepin.dde.launcher.override.json +URL: https://github.com/linuxdeepin/%{name} +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: cmake(Qt5LinguistTools) @@ -21,7 +20,13 @@ BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: qt5-qtbase-private-devel -BuildRequires: gtest-devel gmock +BuildRequires: gtest-devel +BuildRequires: libarchive +BuildRequires: dtkgui-devel +BuildRequires: dtkcommon-devel +BuildRequires: qt5-qttools-devel +BuildRequires: gmock-devel +Patch: 0001-Solve-the-problem-of-not-being-able-to-shrink-after-magnification.patch %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} Requires: deepin-menu Requires: dde-daemon @@ -34,7 +39,7 @@ Requires: libqtxdg %prep -%setup -q -n %{name}-%{version} +%autosetup -p1 sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh %build @@ -44,10 +49,6 @@ sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh %install %make_install INSTALL_ROOT=%{buildroot} -# override -mkdir -p %{buildroot}/etc/dsg/configs/overrides/org.deepin.dde.launcher/ -install -Dm644 %{SOURCE1} %{buildroot}/etc/dsg/configs/overrides/org.deepin.dde.launcher/ - %files %license LICENSE %{_bindir}/%{name} @@ -58,30 +59,23 @@ install -Dm644 %{SOURCE1} %{buildroot}/etc/dsg/configs/overrides/org.deepin.dde. %{_datadir}/icons/hicolor/scalable/apps/deepin-launcher.svg %{_datadir}/glib-2.0/schemas/com.deepin.dde.launcher.gschema.xml %{_datadir}/dsg/configs/org.deepin.dde.launcher/org.deepin.dde.launcher.json -%{_sysconfdir}/dsg/configs/overrides/org.deepin.dde.launcher/ %changelog -* Mon Sep 18 2023 leeffo - 5.5.37-2 -- disable fullscreenmode - -* Tue Aug 01 2023 leeffo - 5.5.37-1 -- upgrade to version 5.5.37 - -* Thu Mar 30 2023 liweiganga - 5.4.45-1 -- update: update to 5.4.45 +* Mon May 13 2024 maqi - 5.6.10-2 +- fix: Solve the problem of not being able to shrink after magnification -* Mon Jul 18 2022 konglidong - 5.4.13-1 -- Update to 5.4.13 +* Mon Oct 09 2023 liweigang - 5.6.10-1 +- update: update to version 5.6.10 -* Thu Jul 08 2021 weidong - 5.3.0.23-3 -- update 5.3.0.23 +* Wed Aug 16 2023 liuzhilin - 5.6.7-1 +- update: update to 5.6.7 -* Thu Sep 3 2020 weidong - 5.1.0.6-3 -- fix source url in spec +* Thu Mar 09 2023 liweiganga - 5.5.37-2 +- feat: fix dde-launcher disable icon(bugid:187227) -* Tue Aug 18 2020 chenbo pan - 5.1.0.6-2 -- fix compile fail +* Wed Dec 28 2022 liweiganga - 5.5.37-1 +- update: update to 5.5.37 -* Thu Jul 30 2020 openEuler Buildteam - 5.1.0.6-1 -- Package init +* Mon Jun 13 2022 uoser - 5.4.45-1.01 +- update: update to 5.4.45-1.01 diff --git a/dde-launcher.yaml b/dde-launcher.yaml deleted file mode 100644 index 2256c3e235b0be23b29a571d0df23804aa3f588d..0000000000000000000000000000000000000000 --- a/dde-launcher.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: linuxdeepin/dde-launcher -tag_prefix: ^v -seperator: . diff --git a/org.deepin.dde.launcher.override.json b/org.deepin.dde.launcher.override.json deleted file mode 100644 index 419e33cb7467f286508be416741b43002cef30a1..0000000000000000000000000000000000000000 --- a/org.deepin.dde.launcher.override.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "contents": { - "enableFullScreenMode": { - "permissions": "readwrite", - "serial": 0, - "value": false - } - }, - "magic": "dsg.config.override", - "version": "1.0" -}