Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【1061】【5.5.1.0】【显示】插件区的功能面板背景色调异常 #5187

Open
SuperEffie opened this issue Aug 15, 2023 · 3 comments
Assignees
Labels
P3 一般优先

Comments

@SuperEffie
Copy link

SuperEffie commented Aug 15, 2023

SUMMARY | 问题概要

【bug链接】:https://pms.uniontech.com/bug-view-211649.html
【问题备注】:社区版v23 beta中暂未复现该bug

SOFTWARE/OS VERSIONS | 软件/系统版本信息

[环境]
1.内核:Linux uos-PC 4.19.0-loongson-3-desktop #6032
2.镜像地址:https://cdimage.uniontech.com/daily-iso/1060-update1/professional/daily-stable/20230724/
3.镜像:uos-desktop-20-professional-1061-loongarch64.iso
4.仓库:
deb  [trusted=yes] https://aptly.uniontech.com/pkg/eagle-1061/release-candidate/44CQMTA2MSBEREXjgJE3LjI05o-Q5rWLMjAyMy0wNy0yMiAxODo0MjowNw/  unstable main
deb  [trusted=yes] https://aptly.uniontech.com/pkg/nonfree-eagle-1061/release-candidate/44CQMTA2MSBEREXjgJE3LjI05o-Q5rWLMjAyMy0wNy0yMiAxODo0MjowNw/  unstable non-free
5.应用版本:dde-control-center  5.6.16-1
6.硬件设备:清华同方3A5000笔记本

PRE-REQUIREMENT | 预置条件

无线网络和有线网络均为已连接

STEPS TO REPRODUCE | 复现步骤

1.测试机安装镜像+仓库升级,然后重启后进入系统,连接uniontech-m
2.打开任务栏插件区的音量、网络、磁盘、蓝牙等面板,检查面板背景色

OBSERVED RESULT | 观察到的结果

插件区的功能面板背景色调异常
截图

EXPECTED RESULT | 期望的结果

插件区的功能面板背景色调显示正常

ADDITIONAL INFORMATION | 额外补充

No response

@SuperEffie SuperEffie added the P3 一般优先 label Aug 15, 2023
@babyfengfjx babyfengfjx assigned kegechen and unassigned babyfengfjx Aug 15, 2023
@babyfengfjx babyfengfjx removed this from V23 Beta2 Aug 15, 2023
@SuperEffie SuperEffie changed the title 【deepin_V23_beta2】【一般】【有空】【发散测试】【DTK】插件区的功能面板背景色调异常 【1061】【5.5.1.0】【显示】插件区的功能面板背景色调异常 Aug 15, 2023
@babyfengfjx
Copy link

@kegechen 专业版反馈的问题,请帮忙分析,原bug链接:https://pms.uniontech.com/bug-view-211649.html。

@kegechen
Copy link

kegechen commented Aug 16, 2023

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QWidget w;
    w.setAttribute(Qt::WA_TranslucentBackground);


    w.setAttribute(Qt::WA_NativeWindow); // DPlatformWindowHandle  ensureWindowHandle
    
    // fix
    if (w.testAttribute(Qt::WA_TranslucentBackground))
    {
         QSurfaceFormat format = w.windowHandle()->format();
         const int oldAlpha = format.alphaBufferSize();
         if (oldAlpha != 8) {
             format.setAlphaBufferSize(8);
             w.windowHandle()->setFormat(format);
        }
    }

    w.windowHandle()->winId();           // DWindowManagerHelper::currentWorkspaceWindows

    w.resize({300, 300});
    w.show();
    return a.exec();
}

image

image

@kegechen
Copy link

setAttribute(Qt::WA_TranslucentBackground) 时如果窗口 handle 未创建不会设置透明通道 ( updateIsTranslucent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 一般优先
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants