Skip to content

[dtk6declarative] DialogWindow的标题背景及Hover效果异常 #194

Description

@rb-union

SUMMARY | 问题概要

  1. DialogWindow 下的按钮在深色主题下没有hover状态,浅色主题正常,对话框下使用的按钮在 hoveredDark 好像没有设置 crystal 颜色族下的效果(FlowStyle.qml);
  2. DialogWindow 在切换主题色后显示颜色错误,DialogTitleBar 内部也使用了 D.InWindowBlur ,应该是相同问题。

DTK and OS VERSIONS | DTK&系统版本信息

Distribution: v23 0719
Pacakge: dtk6declarative 6.0.16+u003

Minimal Reproducible Case Code | 最小复现案例代码

Demo:
DialogTest.zip

Button {
    anchors.centerIn: parent
    text: qsTr("Button")

    onClicked: dialog.show()

    DialogWindow {
        id: dialog

        height: 180
        title: "test"
        width: 400

        header: DialogTitleBar {
            // 使用了D.InWindowBlur
            enableInWindowBlendBlur: false
        }

        Row {
            Button {
                text: "button"
            }

            RecommandButton {
                text: "recommand button"
            }
        }
    }
}

OBSERVED RESULT | 观察到的结果

_DialogTest_20240814103713.mp4

EXPECTED RESULT | 期望的结果

切换主题后显示正常,DialogWindow在深色主题下按钮hover效果正常

ADDITIONAL INFORMATION | 额外补充

https://pms.uniontech.com/bug-view-268489.html
https://pms.uniontech.com/bug-view-268509.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions