From f6854f986a1e50d8468610eaba868bc9945dadde Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Sat, 21 Nov 2026 22:00:20 +0800 Subject: [PATCH 1/4] Control center: a clear keyboard ring, and the keys in reading order The keyboard's place was the cell's border turning accent: invisible on a lit tile (the accent itself) and faint on the brightness slider. It is now a ring just outside the cell. The first key starts top left and Tab walks rows left to right, as the cells sit, not in the order they were made. Assisted-by: LLM --- .../shell/controlcenter/ControlCenter.qml | 46 ++++++++++++++----- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/desktop/shell/shell/controlcenter/ControlCenter.qml b/desktop/shell/shell/controlcenter/ControlCenter.qml index a5ae6c3..a2dfc4e 100644 --- a/desktop/shell/shell/controlcenter/ControlCenter.qml +++ b/desktop/shell/shell/controlcenter/ControlCenter.qml @@ -281,7 +281,15 @@ Item { root.focusables = list } function focusedCell() { return focusIndex >= 0 && focusIndex < focusables.length ? focusables[focusIndex] : null } - function visibleCells() { return focusables.filter(function(c) { return c && c.visible && c.focusable }) } + // In reading order: rows top to bottom, each left to right. + function visibleCells() { + var cells = focusables.filter(function(c) { return c && c.visible && c.focusable }) + var at = function(c) { return c.mapToItem(card, 0, 0) } + return cells.sort(function(a, b) { + var p = at(a), q = at(b) + return Math.abs(p.y - q.y) > 4 ? p.y - q.y : p.x - q.x + }) + } function moveFocus(dx, dy) { var cells = visibleCells() if (cells.length === 0) return @@ -870,8 +878,20 @@ Item { scale: pressed ? 0.96 : 1 Behavior on scale { NumberAnimation { duration: Style.duration(120); easing.type: Easing.OutCubic } } border.width: Math.max(1, Style.space(1)) - border.color: focused ? Commons.Color.accent : (on && available ? root.onFill : Style.normalBorderColor) + border.color: on && available ? root.onFill : Style.normalBorderColor opacity: available ? 1 : 0.45 + // The keyboard's place: a ring just outside the cell, clear of its fill + // (a lit tile is the accent itself) and of its border. + Rectangle { + z: 100 + visible: cell.focused + anchors.fill: parent + anchors.margins: -Style.space(4) + radius: cell.radius > 0 ? cell.radius + Style.space(4) : 0 + color: "transparent" + border.width: Math.max(2, Style.space(2)) + border.color: Commons.Color.accent + } } component Tile: Cell { @@ -1028,17 +1048,21 @@ Item { onActivated: slider.longPressed() function adjust(delta) { if (slider.available) slider.moved(Math.max(0, Math.min(1, slider.value + delta))) } color: Style.controlFill(false, false, root.text, Commons.Color.accent) - clip: true scale: drag.holding ? 0.96 : 1 Behavior on scale { NumberAnimation { duration: Style.duration(140); easing.type: Easing.OutCubic } } - Rectangle { - x: 0 - y: slider.vertical ? parent.height * (1 - slider.value) : 0 - width: slider.vertical ? parent.width : parent.width * slider.value - height: slider.vertical ? parent.height * slider.value : parent.height - color: root.text - opacity: 0.85 + // The level, clipped to the cell (the focus ring lies outside it). + Item { + anchors.fill: parent + clip: true + Rectangle { + x: 0 + y: slider.vertical ? parent.height * (1 - slider.value) : 0 + width: slider.vertical ? parent.width : parent.width * slider.value + height: slider.vertical ? parent.height * slider.value : parent.height + color: root.text + opacity: 0.85 + } } Text { @@ -1178,7 +1202,7 @@ Item { visible: root.batteryLine !== "" page: "omarchy.power" color: "transparent" - border.width: focused ? Math.max(1, Style.space(1)) : 0 + border.width: 0 width: batteryRow.implicitWidth + Style.space(16) height: parent.height onActivated: root.openPage("omarchy.power") From 05ea0d39e93620dc033c4daddc6e366f1fe922ed Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Sat, 21 Nov 2026 22:03:12 +0800 Subject: [PATCH 2/4] Control center: Enter opens a cell's page, also a disabled one's Enter opens the page of a cell that has one (the Wi-Fi and Bluetooth tiles, the sliders, the battery line); Space switches it. A cell that can't be used is no longer skipped when it has a page, which says why (no adapter, no device): a finger reaches it with a long press, the keyboard with Enter. Assisted-by: LLM --- desktop/shell/shell/controlcenter/ControlCenter.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/desktop/shell/shell/controlcenter/ControlCenter.qml b/desktop/shell/shell/controlcenter/ControlCenter.qml index a2dfc4e..8545f2d 100644 --- a/desktop/shell/shell/controlcenter/ControlCenter.qml +++ b/desktop/shell/shell/controlcenter/ControlCenter.qml @@ -609,7 +609,12 @@ Item { if (cell && cell.adjust) cell.adjust(0.05) else if (cell && cell.page) root.openPage(cell.page) else root.moveFocus(1, 0); break - case Qt.Key_Return: case Qt.Key_Enter: case Qt.Key_Space: + // Enter opens a cell's page, where it has one; Space switches it. + case Qt.Key_Return: case Qt.Key_Enter: + if (cell && cell.page) root.openPage(cell.page) + else if (cell && cell.activate) cell.activate() + break + case Qt.Key_Space: if (cell && cell.activate) cell.activate(); break default: return } @@ -763,6 +768,7 @@ Item { available: root.brightness >= 0 note: root.autoBrightness ? Commons.I18n.t("controlCenter.auto") : "" pageArrow: true + page: "omarchy.monitor" onMoved: function(v) { root.setBrightness(v * 100) } onLongPressed: root.openPage("omarchy.monitor") } @@ -774,6 +780,7 @@ Item { value: root.volume available: !!(root.sink && root.sink.audio) chip: root.outputName + page: "omarchy.audio" onMoved: function(v) { root.setVolume(v) } onLongPressed: root.openPage("omarchy.audio") } @@ -865,7 +872,9 @@ Item { property bool on: false property bool available: true property string page: "" - property bool focusable: available + // A cell that can't be used is skipped, unless it has a page: the page + // says why (no adapter, no device), and Enter is the way there. + property bool focusable: available || page !== "" readonly property bool focused: root.focusables[root.focusIndex] === cell property bool pressed: false signal activated() From 8ad96ca93b5096804eff806fc1d79a35fd1383cd Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Sat, 21 Nov 2026 22:05:08 +0800 Subject: [PATCH 3/4] Control center: Right moves, never opens a page Enter opens a page now; Right opening one on a tile with a chevron made the arrow mean two things. Assisted-by: LLM --- desktop/shell/shell/controlcenter/ControlCenter.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desktop/shell/shell/controlcenter/ControlCenter.qml b/desktop/shell/shell/controlcenter/ControlCenter.qml index 8545f2d..8d53ee2 100644 --- a/desktop/shell/shell/controlcenter/ControlCenter.qml +++ b/desktop/shell/shell/controlcenter/ControlCenter.qml @@ -606,9 +606,7 @@ Item { case Qt.Key_Left: if (cell && cell.adjust) cell.adjust(-0.05); else root.moveFocus(-1, 0); break case Qt.Key_Right: - if (cell && cell.adjust) cell.adjust(0.05) - else if (cell && cell.page) root.openPage(cell.page) - else root.moveFocus(1, 0); break + if (cell && cell.adjust) cell.adjust(0.05); else root.moveFocus(1, 0); break // Enter opens a cell's page, where it has one; Space switches it. case Qt.Key_Return: case Qt.Key_Enter: if (cell && cell.page) root.openPage(cell.page) From 7bbb83fd495136fabd103b6fbadb064bda8e88e3 Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Sat, 21 Nov 2026 22:06:52 +0800 Subject: [PATCH 4/4] Control center keeps the keyboard's place across a switch; notification center rows and columns A switch rebuilds the toggles, and the focus pointed at a cell that was gone. It is now the cell's name, which the new cell has too. The notification center walks rows (the header, then each card, an open stack's all) with Up and Down, and along a row with Left and Right: Focus and Clear all, a card, then its buttons and its reply field. Enter opens or presses, Space opens or closes a stack, Delete clears a card. The place is a ring as in the control center, and stays in sight as the list scrolls. Assisted-by: LLM --- .../shell/controlcenter/ControlCenter.qml | 40 +++-- .../notificationcenter/NotificationCenter.qml | 150 +++++++++++++++--- 2 files changed, 155 insertions(+), 35 deletions(-) diff --git a/desktop/shell/shell/controlcenter/ControlCenter.qml b/desktop/shell/shell/controlcenter/ControlCenter.qml index 8d53ee2..01bde2a 100644 --- a/desktop/shell/shell/controlcenter/ControlCenter.qml +++ b/desktop/shell/shell/controlcenter/ControlCenter.qml @@ -272,15 +272,25 @@ Item { { glyph: "󰝚", label: Commons.I18n.t("controlCenter.media") } ] - // Keyboard: the focused cell, or none until the keyboard is used. + // Keyboard: the focused cell, by its name, or none until the keyboard is + // used. By name, since a switch remakes the toggles (their list is + // rebuilt with every state) and the focus stays on the new cell. property var focusables: [] - property int focusIndex: -1 + property string focusKey: "" function registerCell(item) { - var list = root.focusables.slice() + var list = root.focusables.filter(function(c) { return !!c }) if (list.indexOf(item) < 0) list.push(item) root.focusables = list } - function focusedCell() { return focusIndex >= 0 && focusIndex < focusables.length ? focusables[focusIndex] : null } + function unregisterCell(item) { + root.focusables = root.focusables.filter(function(c) { return !!c && c !== item }) + } + function focusedCell() { + if (root.focusKey === "") return null + var cells = visibleCells() + for (var i = 0; i < cells.length; i++) if (cells[i].focusKey === root.focusKey) return cells[i] + return null + } // In reading order: rows top to bottom, each left to right. function visibleCells() { var cells = focusables.filter(function(c) { return c && c.visible && c.focusable }) @@ -294,7 +304,7 @@ Item { var cells = visibleCells() if (cells.length === 0) return var current = focusedCell() - if (!current || cells.indexOf(current) < 0) { root.focusIndex = focusables.indexOf(cells[0]); return } + if (!current) { root.focusKey = cells[0].focusKey; return } var a = current.mapToItem(card, current.width / 2, current.height / 2) var best = null, bestScore = 1e9 for (var i = 0; i < cells.length; i++) { @@ -307,14 +317,14 @@ Item { var score = along + across * 2 if (score < bestScore) { bestScore = score; best = c } } - if (best) root.focusIndex = focusables.indexOf(best) + if (best) root.focusKey = best.focusKey } function stepFocus(delta) { var cells = visibleCells() if (cells.length === 0) return var at = cells.indexOf(focusedCell()) var next = at < 0 ? (delta > 0 ? 0 : cells.length - 1) : (at + delta + cells.length) % cells.length - root.focusIndex = focusables.indexOf(cells[next]) + root.focusKey = cells[next].focusKey } // ----------------------------------------------------------- lifecycle @@ -322,7 +332,7 @@ Item { function prepare() { if (!brightnessRead.running) brightnessRead.running = true if (!autoRead.running) autoRead.running = true - root.focusIndex = -1 + root.focusKey = "" } // A bar panel's popup goes first: the control center is never over one. @@ -622,7 +632,7 @@ Item { // A pointer clears the keyboard's highlight. PointHandler { - onActiveChanged: if (active) root.focusIndex = -1 + onActiveChanged: if (active) root.focusKey = "" } // Pushed up by a finger, it follows and goes away. Above the card, so it @@ -738,6 +748,7 @@ Item { title: Commons.I18n.t("controlCenter.wifi") subtitle: root.wifiSubtitle on: network.wifiEnabled + focusKey: "wifi" page: "omarchy.network" onActivated: root.toggleWifi() } @@ -748,6 +759,7 @@ Item { subtitle: root.bluetoothSubtitle on: bluetooth.enabled available: !!bluetooth.adapter + focusKey: "bluetooth" page: "omarchy.bluetooth" onActivated: root.toggleBluetooth() } @@ -766,6 +778,7 @@ Item { available: root.brightness >= 0 note: root.autoBrightness ? Commons.I18n.t("controlCenter.auto") : "" pageArrow: true + focusKey: "brightness" page: "omarchy.monitor" onMoved: function(v) { root.setBrightness(v * 100) } onLongPressed: root.openPage("omarchy.monitor") @@ -778,6 +791,7 @@ Item { value: root.volume available: !!(root.sink && root.sink.audio) chip: root.outputName + focusKey: "volume" page: "omarchy.audio" onMoved: function(v) { root.setVolume(v) } onLongPressed: root.openPage("omarchy.audio") @@ -798,6 +812,7 @@ Item { label: modelData.label on: modelData.on available: modelData.enabled + focusKey: modelData.key onActivated: modelData.act() } } @@ -812,6 +827,7 @@ Item { // Dimmed until its backend exists; then live like the others. on: modelData.on === true available: !!modelData.act && modelData.enabled === true + focusKey: "later:" + modelData.label onActivated: if (modelData.act) modelData.act() } } @@ -873,11 +889,14 @@ Item { // A cell that can't be used is skipped, unless it has a page: the page // says why (no adapter, no device), and Enter is the way there. property bool focusable: available || page !== "" - readonly property bool focused: root.focusables[root.focusIndex] === cell + // Its name for the keyboard (see focusKey). + property string focusKey: "" + readonly property bool focused: focusKey !== "" && root.focusKey === focusKey && visible property bool pressed: false signal activated() function activate() { if (cell.available) cell.activated() } Component.onCompleted: root.registerCell(cell) + Component.onDestruction: root.unregisterCell(cell) radius: Style.cornerRadius color: !available ? "transparent" : (on ? root.onFill : Style.controlFill(false, false, root.text, Commons.Color.accent)) @@ -1208,6 +1227,7 @@ Item { id: batteryCell visible: root.batteryLine !== "" page: "omarchy.power" + focusKey: "battery" color: "transparent" border.width: 0 width: batteryRow.implicitWidth + Style.space(16) diff --git a/desktop/shell/shell/notificationcenter/NotificationCenter.qml b/desktop/shell/shell/notificationcenter/NotificationCenter.qml index 7d0aba8..a2ce0b9 100644 --- a/desktop/shell/shell/notificationcenter/NotificationCenter.qml +++ b/desktop/shell/shell/notificationcenter/NotificationCenter.qml @@ -197,7 +197,7 @@ Item { root.openGroups = ({}) root.markAllSeen() scroller.contentY = 0 - root.focusIndex = -1 + root.focusRow = "" root.opened = true root.mapped = true if (panel.contentRevealed) root.animateIn() @@ -321,22 +321,83 @@ Item { // ------------------------------------------------------------ keyboard - // Up and Down walk Focus, Clear all and the cards; Enter opens or presses, - // Delete clears a card, Escape closes. - property int focusIndex: -1 - readonly property int focusCount: 2 + root.groups.length - function moveFocus(step) { - if (root.focusCount === 0) return - root.focusIndex = root.focusIndex < 0 ? (step > 0 ? 0 : root.focusCount - 1) - : Math.max(0, Math.min(root.focusCount - 1, root.focusIndex + step)) + // Rows, top to bottom: the header (Focus, Clear all), then each card, an + // open stack's all. Up and Down go between rows, Left and Right along one + // (a card, then its buttons and its reply field). Enter opens or presses, + // Space opens or closes a stack, Delete clears a card, Escape closes. + // The row is a card's notification key, so it stays put as cards come + // and go; "" until the keyboard is used. + property string focusRow: "" + property int focusCol: 0 + property int lastRowIndex: 0 + readonly property var focusRows: { + var rows = ["header"] + for (var i = 0; i < root.groups.length; i++) { + var g = root.groups[i] + if (!g.rows.length) continue + rows.push(String(g.rows[0].key)) + if (root.openGroups[g.key]) for (var j = 1; j < g.rows.length; j++) rows.push(String(g.rows[j].key)) + } + return rows + } + onFocusRowsChanged: { + if (root.focusRow === "" || root.focusRows.indexOf(root.focusRow) >= 0) return + // Its card went: the one now in its place. + root.focusRow = root.focusRows[Math.min(root.lastRowIndex, root.focusRows.length - 1)] + root.focusCol = 0 + } + // The cards on screen, by key, for what only a card knows (its buttons). + property var cardItems: ({}) + function rowParts(row) { + if (row === "header") return root.groups.length > 0 ? 2 : 1 + var card = root.cardItems[row] + return card ? card.parts : 1 + } + function moveRow(step) { + var rows = root.focusRows + var at = rows.indexOf(root.focusRow) + var next = at < 0 ? (step > 0 ? 0 : rows.length - 1) : Math.max(0, Math.min(rows.length - 1, at + step)) + root.lastRowIndex = next + if (rows[next] !== root.focusRow) root.focusCol = 0 + root.focusRow = rows[next] } - function activateFocused() { - if (root.focusIndex === 0) root.toggleFocus() - else if (root.focusIndex === 1) root.clearAll() - else if (root.focusIndex >= 2) root.openGroup(root.groups[root.focusIndex - 2]) + function moveCol(step) { + if (root.focusRow === "") { root.moveRow(1); return } + root.focusCol = Math.max(0, Math.min(root.rowParts(root.focusRow) - 1, root.focusCol + step)) + } + function groupOf(key) { + for (var i = 0; i < root.groups.length; i++) { + var rows = root.groups[i].rows + for (var j = 0; j < rows.length; j++) if (String(rows[j].key) === key) return { group: root.groups[i], entry: rows[j], head: j === 0 } + } + return null + } + function activateFocused(space) { + if (root.focusRow === "header") { + if (root.focusCol === 0) root.toggleFocus(); else root.clearAll() + return + } + var found = root.groupOf(root.focusRow) + if (!found) return + var stack = found.head && found.group.rows.length > 1 + if (space && stack && root.focusCol === 0) { root.toggleGroup(found.group.key); return } + var card = root.cardItems[root.focusRow] + if (card) card.press(root.focusCol) } function forgetFocused() { - if (root.focusIndex >= 2) root.forgetGroup(root.groups[root.focusIndex - 2], false) + var found = root.groupOf(root.focusRow) + if (!found) return + var single = !found.head || !!root.openGroups[found.group.key] + root.forgetGroup(found.group, single, found.entry) + } + // Keeps what the keyboard is on in sight. + function showItem(item) { + if (!item) return + var p = item.mapToItem(scroller.contentItem, 0, 0) + var margin = Style.space(12) + if (p.y - margin < scroller.contentY) scroller.contentY = Math.max(0, p.y - margin) + else if (p.y + item.height + margin > scroller.contentY + scroller.height) + scroller.contentY = Math.min(Math.max(0, scroller.contentHeight - scroller.height), p.y + item.height + margin - scroller.height) } // ------------------------------------------------------------ actions @@ -455,16 +516,19 @@ Item { Keys.onPressed: function(event) { switch (event.key) { case Qt.Key_Escape: root.close(); break - case Qt.Key_Down: case Qt.Key_Tab: root.moveFocus(1); break - case Qt.Key_Up: case Qt.Key_Backtab: root.moveFocus(-1); break - case Qt.Key_Return: case Qt.Key_Enter: case Qt.Key_Space: root.activateFocused(); break + case Qt.Key_Down: case Qt.Key_Tab: root.moveRow(1); break + case Qt.Key_Up: case Qt.Key_Backtab: root.moveRow(-1); break + case Qt.Key_Right: root.moveCol(1); break + case Qt.Key_Left: root.moveCol(-1); break + case Qt.Key_Return: case Qt.Key_Enter: root.activateFocused(false); break + case Qt.Key_Space: root.activateFocused(true); break case Qt.Key_Delete: case Qt.Key_Backspace: root.forgetFocused(); break default: return } event.accepted = true } } - PointHandler { onActiveChanged: if (active) root.focusIndex = -1 } + PointHandler { onActiveChanged: if (active) root.focusRow = "" } // What it shows, sliding down from under the bar: its bottom is where the // finger is. @@ -604,13 +668,13 @@ Item { glyph: "󰽥" label: root.focusOn ? I18n.t("notificationCenter.focusOn") : I18n.t("notificationCenter.focusOff") lit: root.focusOn - focused: root.focusIndex === 0 + focused: root.focusRow === "header" && root.focusCol === 0 onActivated: root.toggleFocus() } HeaderButton { label: I18n.t("notificationCenter.clearAll") enabled: root.groups.length > 0 - focused: root.focusIndex === 1 + focused: root.focusRow === "header" && root.focusCol === 1 onActivated: root.clearAll() } } @@ -692,7 +756,6 @@ Item { // The shapes fade and fold away with the opening, not at once. stacked: groupColumn.more shade: 1 - groupColumn.openness - focused: root.focusIndex === groupColumn.index + 2 onOpened: root.openEntry(entry) onSwiped: root.forgetGroup(groupColumn.modelData, groupColumn.open, entry) onMoreToggled: root.toggleGroup(groupColumn.modelData.key) @@ -761,6 +824,16 @@ Item { // ------------------------------------------------------------ parts // The weather, as the weather panel reads it. + // The keyboard's place, as in the control center: a ring just outside. + component FocusRing: Rectangle { + z: 100 + anchors.fill: parent + anchors.margins: -Style.space(4) + color: "transparent" + border.width: Math.max(2, Style.space(2)) + border.color: Commons.Color.accent + } + component WeatherCard: Rectangle { id: weatherCard // Room the text has inside the card as it is laid out. @@ -829,8 +902,10 @@ Item { height: Style.space(30) color: lit ? Util.alpha(Commons.Color.accent, 0.18) : "transparent" border.width: root.hairline - border.color: focused ? Commons.Color.accent : root.outline + border.color: root.outline opacity: enabled ? 1 : 0.45 + onFocusedChanged: if (focused) root.showItem(button) + FocusRing { visible: button.focused } scale: buttonArea.pressed && buttonArea.containsMouse ? 0.96 : 1 Row { id: buttonRow @@ -876,7 +951,29 @@ Item { property int stacked: more > 0 ? more : 0 // How much of a closed stack's shapes behind it shows (1 closed, 0 open). property real shade: 1 - property bool focused: false + // The keyboard: on this card, and on which part of it (0 the card, then + // its buttons, then its reply field). + readonly property string rowKey: String(entry.key || "") + readonly property bool focused: rowKey !== "" && root.focusRow === rowKey + readonly property int part: focused ? root.focusCol : -1 + readonly property int actionCount: (entry.actions || []).length + readonly property bool canReply: String(entry.reply || "") !== "" + readonly property int parts: 1 + actionCount + (canReply ? 1 : 0) + onRowKeyChanged: register() + Component.onCompleted: register() + Component.onDestruction: if (root.cardItems[registered] === card) delete root.cardItems[registered] + property string registered: "" + function register() { + if (registered !== "" && root.cardItems[registered] === card) delete root.cardItems[registered] + registered = rowKey + if (rowKey !== "") root.cardItems[rowKey] = card + } + onFocusedChanged: if (focused) root.showItem(card) + function press(at) { + if (at <= 0) card.opened() + else if (at <= actionCount) card.actionPressed(String(entry.actions[at - 1].id)) + else if (canReply) { root.beginReply(false); replyInput.forceActiveFocus() } + } signal opened() signal swiped() signal moreToggled() @@ -921,8 +1018,9 @@ Item { width: card.width height: content.implicitHeight + Style.space(24) color: root.cardFill - border.width: root.focused ? Math.max(1, root.hairline) : root.hairline - border.color: card.focused ? Commons.Color.accent : root.outline + border.width: root.hairline + border.color: root.outline + FocusRing { visible: card.part === 0 } opacity: Math.max(0, 1 - Math.abs(card.swipeX) / (card.width * 0.5)) layer.enabled: root.gpu && (card.fling !== "" || swipe.active) @@ -1068,6 +1166,7 @@ Item { border.width: index === 0 ? 0 : root.hairline border.color: root.outline scale: actionArea.pressed && actionArea.containsMouse ? 0.96 : 1 + FocusRing { visible: card.part === parent.index + 1 } Text { anchors.centerIn: parent width: parent.width - Style.space(12) @@ -1102,6 +1201,7 @@ Item { color: Util.alpha(Commons.Color.background, 0.7) border.width: replyInput.activeFocus && root.typing ? Math.max(1, root.hairline) : root.hairline border.color: replyInput.activeFocus && root.typing ? Commons.Color.accent : root.outline + FocusRing { visible: card.canReply && card.part === card.parts - 1 && !(replyInput.activeFocus && root.typing) } TextInput { id: replyInput anchors.fill: parent