Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions panels/dock/OverflowContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Item {
layoutDirection: Qt.LeftToRight
verticalLayoutDirection: ListView.TopToBottom
interactive: false
Accessible.role: Accessible.List
}

function calculateImplicitWidth(prev, current) {
Expand Down
3 changes: 3 additions & 0 deletions panels/dock/multitaskview/package/multitaskview.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ AppletDockItem {
id: toggleworkspace
dockOrder: 15

Accessible.role: Accessible.Button
Accessible.name: toolTip.text

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个应该使用dock插件的名称,例如App let.name


PanelToolTip {
id: toolTip
text: qsTr("Multitasking View")
Expand Down
6 changes: 6 additions & 0 deletions panels/dock/package/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ Window {
visible: dockLeftPartModel.count > 0
implicitWidth: leftLoader.implicitWidth
implicitHeight: leftLoader.implicitHeight
Accessible.role: Accessible.Grouping
Accessible.name: qsTr("Dock Left Area")
OverflowContainer {
id: leftLoader
anchors.fill: parent
Expand All @@ -536,6 +538,8 @@ Window {
id: dockCenterPart
implicitWidth: centerLoader.implicitWidth
implicitHeight: centerLoader.implicitHeight
Accessible.role: Accessible.Grouping
Accessible.name: qsTr("Dock Center Area")
Layout.maximumWidth: useColumnLayout ? -1 : dockRawCenterSpace
Layout.maximumHeight: useColumnLayout ? dockRawCenterSpace : -1
onXChanged: dockCenterPartPosChanged()
Expand Down Expand Up @@ -584,6 +588,8 @@ Window {
id: dockRightPart
implicitWidth: rightLoader.implicitWidth
implicitHeight: rightLoader.implicitHeight
Accessible.role: Accessible.Grouping
Accessible.name: qsTr("Dock Right Area")
anchors.right: parent.right
anchors.bottom: parent.bottom
OverflowContainer {
Expand Down
5 changes: 4 additions & 1 deletion panels/dock/showdesktop/package/showdesktop.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -30,6 +30,9 @@ AppletItem {
anchors.fill: parent
radius: 0

Accessible.role: Accessible.Button
Accessible.name: toolTip.text

Rectangle {
property D.Palette lineColor: DockPalette.showDesktopLineColor
// Use device pixel ratio to ensure the line is always 1 physical pixel regardless of system scaling
Expand Down
4 changes: 4 additions & 0 deletions panels/dock/taskmanager/package/AppItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Item {
Drag.hotSpot.y: icon.height / 2
Drag.dragType: Drag.Automatic
Drag.mimeData: { "text/x-dde-dock-dnd-appid": itemId, "text/x-dde-dock-dnd-source": "taskbar", "text/x-dde-dock-dnd-winid": windows.length > 0 ? windows[0] : ""}

Accessible.role: Accessible.Button
Accessible.name: root.name
Accessible.description: root.attention ? qsTr("Demands attention") : (root.active ? qsTr("Active") : "")

property bool useColumnLayout: Panel.rootObject.useColumnLayout
property real iconSize: Panel.rootObject.dockItemMaxSize * 9 / 14
Expand Down
3 changes: 3 additions & 0 deletions panels/dock/taskmanager/package/TaskManager.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ ContainmentItem {
property bool useColumnLayout: Panel.rootObject.useColumnLayout
property int dockOrder: 16

Accessible.role: Accessible.Grouping
Accessible.name: qsTr("Task Manager")

function calcRemainingSpace(baseSize) {
const otherCount = Panel.rootObject.dockCenterPartCount - 1;
const otherOccupied = otherCount > 0 ? otherCount * baseSize * multitaskViewIconRatio : 0;
Expand Down
2 changes: 2 additions & 0 deletions panels/dock/tray/ShellSurfaceItemProxy.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Item {
implicitWidth: shellSurface ? shellSurface.width : 16
implicitHeight: shellSurface ? shellSurface.height : 16

Accessible.name: shellSurface ? (shellSurface.displayName || "") : ""

function takeFocus() {
impl.takeFocus()
}
Expand Down
3 changes: 3 additions & 0 deletions panels/dock/tray/package/ActionShowStashDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ AppletItemButton {

padding: itemPadding

Accessible.role: Accessible.Button
Accessible.name: toolTip.text

D.ColorSelector.hovered: (isDropHover && DDT.TraySortOrderModel.actionsAlwaysVisible) || hovered || stashedPopup.popupVisible

property var itemGlobalPoint: {
Expand Down
5 changes: 4 additions & 1 deletion panels/dock/tray/package/ActionToggleCollapseDelegate.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -17,6 +17,9 @@ AppletItemButton {
hoverEnabled: inputEventsEnabled
autoClosePopup: true

Accessible.role: Accessible.Button
Accessible.name: toolTip.text

z: 5

icon.name: isHorizontal ? "expand-left" : "expand-up"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -13,4 +13,7 @@ QuickPanel {
useColumnLayout: !isHorizontal
trayItemPluginId: Applet.rootObject.quickpanelTrayItemPluginId
trayItemMargins: itemPadding

Accessible.role: Accessible.Button
Accessible.name: qsTr("Quick actions")
}
Loading