[Share Experiences] 20220513 内测更新后桌面图标间距太宽?试试这个
Tofloor
poster avatar
deepin-superuser
deepin
2022-05-14 06:49
Author

20220513 内测更新后桌面图标间距太宽?试试这个

dde-desktop.zip

使用方法

#下载文件
wget -t 3 -T 15 https://storage.deepin.org/thread/202205132245399430_dde-desktop.zip

#解压
unzip 202205132245399430_dde-desktop.zip

#替换系统文件
pkill dde-desktop && sudo cp ./dde-desktop /usr/bin/dde-desktop

还原方法

sudo apt reinstall dde-desktop
Reply Favorite View the author
All Replies
1 / 2
To page
liwl
deepin
2022-05-14 07:01
#1

无物桌面自带免疫

tail

Reply View the author
七彩时光
deepin
2022-05-14 17:21
#2

嘿嘿,厉害了我的哥😁

Reply View the author
g5rz90
deepin
2022-05-14 19:05
#3
liwl

无物桌面自带免疫

tail

+1

Reply View the author
mardou
deepin
2022-05-15 05:32
#4

按照你提供的方法,我一试,发现出现以下问题:

image.png

Reply View the author
deepin-superuser
deepin
2022-05-15 05:42
#5
mardou

按照你提供的方法,我一试,发现出现以下问题:

image.png

pkill dde-desktop && sudo cp ./dde-desktop /usr/bin/dde-desktop
试试这个

Reply View the author
神末shenmo
Moderator
Spark-App
2022-05-15 05:43
#6

似乎这个改动很奇怪

Reply View the author
deepin-superuser
deepin
2022-05-15 05:55
#7
神末shenmo

似乎这个改动很奇怪

确实 开始我还以为我自己乱编译把系统搞坏了,后来看到大家都这样就放心了

Reply View the author
神末shenmo
Moderator
Spark-App
2022-05-15 09:20
#8
deepin-superuser

确实 开始我还以为我自己乱编译把系统搞坏了,后来看到大家都这样就放心了

@babyfengfjx

感觉这个改动似乎社区不太满意

Reply View the author
mardou
deepin
2022-05-16 00:47
#9
deepin-superuser

pkill dde-desktop && sudo cp ./dde-desktop /usr/bin/dde-desktop
试试这个

根据你的经验,我试了一下,这个问题果然解决得非常完满呀

各位兄弟姐妹,出现类似我这种情况,那就在终端输入以下内容解决问题:

wget -t 3 -T 15 https://storage.deepin.org/thread/202205132245399430_dde-desktop.zip #解压 unzip 202205132245399430_dde-desktop.zip #替换系统文件 pkill dde-desktop && sudo cp ./dde-desktop /usr/bin/dde-desktop

😄

Reply View the author
神末shenmo
Moderator
Spark-App
2022-05-21 17:34
#10

这是改了源码哪里?恐怕以后都要手动改了,可以fork一份出来了

Reply View the author
deepin-superuser
deepin
2022-05-21 18:26
#11
神末shenmo

这是改了源码哪里?恐怕以后都要手动改了,可以fork一份出来了

dde-file-manager/src/dde-desktop/view/desktopitemdelegate.cpp

void DesktopItemDelegate::updateItemSizeHint()
{
    DIconItemDelegate::updateItemSizeHint();
    // update word width
    textFontWidth = parent()->parent()->fontMetrics().width("中");
    auto iconSize = parent()->parent()->iconSize();

    int width;
    {
        // defalut word num
        const int minWidth = iconSize.width() + ICON_TOP_SPACE_DESKTOP * 2;
        int num = 9;
        int index = iconSizes.indexOf(iconSize.width());
        if (index >= 0 && index < charOfLine.size())
            num = charOfLine.at(index);

        width = TEXT_PADDING + num * textFontWidth + TEXT_PADDING;
        if (Q_UNLIKELY(width < minWidth))
            width = minWidth;
    }

    int height = iconSize.height() + ICON_BOTTOM_SPACING_DESKTOP + TEXT_PADDING + 2 * d_ptr->textLineHeight + TEXT_PADDING;
-    d_ptr->itemSizeHint = QSize(width, height);
+    d_ptr->itemSizeHint = QSize(height, height);
}
Reply View the author
神末shenmo
Moderator
Spark-App
2022-05-21 18:29
#12
deepin-superuser

dde-file-manager/src/dde-desktop/view/desktopitemdelegate.cpp

void DesktopItemDelegate::updateItemSizeHint()
{
    DIconItemDelegate::updateItemSizeHint();
    // update word width
    textFontWidth = parent()->parent()->fontMetrics().width("中");
    auto iconSize = parent()->parent()->iconSize();

    int width;
    {
        // defalut word num
        const int minWidth = iconSize.width() + ICON_TOP_SPACE_DESKTOP * 2;
        int num = 9;
        int index = iconSizes.indexOf(iconSize.width());
        if (index >= 0 && index < charOfLine.size())
            num = charOfLine.at(index);

        width = TEXT_PADDING + num * textFontWidth + TEXT_PADDING;
        if (Q_UNLIKELY(width < minWidth))
            width = minWidth;
    }

    int height = iconSize.height() + ICON_BOTTOM_SPACING_DESKTOP + TEXT_PADDING + 2 * d_ptr->textLineHeight + TEXT_PADDING;
-    d_ptr->itemSizeHint = QSize(width, height);
+    d_ptr->itemSizeHint = QSize(height, height);
}

我在考虑是不是把这东西上到星火商店直接替换原版

Reply View the author
deepin-superuser
deepin
2022-05-21 18:35
#13
神末shenmo

我在考虑是不是把这东西上到星火商店直接替换原版

可以的 我看吐槽的人不少,应该会有人喜欢

Reply View the author
坐井观天下
deepin beta test group
2022-05-26 15:45
#14

把这三行东西放到一个文本文件里,进入命令行模式,用sh执行文本文件。更改成功。

Reply View the author
卖了摩托继续写Bug
deepin
2022-06-01 18:48
#15

倒逼用户降级~like

Reply View the author
cuijun1225
deepin
2022-06-01 19:11
#16
mardou

按照你提供的方法,我一试,发现出现以下问题:

image.png

需要管理员身份运行,或者直接手动替换文件,亲测可行!image.png

Reply View the author
cuijun1225
deepin
2022-06-01 19:15
#17

教程完美,亲测已成功,不过不要管理员权限运行哦!

Reply View the author
落魄魂师
deepin
2022-06-01 19:35
#18

👍 👍 👍

Reply View the author
Yurii.Huang
deepin
2022-06-01 21:50
#19

建议做个配置文件可以指定桌面间隙

Reply View the author
jjcui8595
Moderator
2022-06-01 23:16
#20

路过,桌面从来不放东西

Reply View the author
1 / 2
To page