UX: увеличена зона перетаскивания, календарь без налезаний

- SplitView handle: implicit 6, видимая линия 1 + хит-зона 16 (cocoa 16, vertical 16), cursor SplitH/VCursor, hover ToolTip, для файлового дерева/живого просмотра/графа-календаря
- MonthCalendar: RowLayout spacing 4, кнопки 28x28 radius 14, background Theme.surface/hover/selected + border, Label месяца/года разделены (70+42, font 11, elide, минимум 90+44 → всегда влезает 'сентябрь 2026'), убрана прозрачность
- RightPanel: удалён дублирующий ToolButton 'Сегодня' (☷) из calBox header, оставлен только в MonthCalendar (⌂)
This commit is contained in:
2026-09-01 22:23:09 +03:00
parent b5a3639e46
commit d6cc460b52
4 changed files with 88 additions and 36 deletions
+21 -9
View File
@@ -37,11 +37,30 @@ Item {
Connections { target: vaultIndex; function onIndexChanged() { root.refreshLinksTags() } }
Timer { id: rebuildDebounce; interval: 800; onTriggered: if (fileStore.ready) vaultIndex.rebuild(fileStore.vault) }
// Делаем панели ресайзабельными внутри правой колонки
// Делаем панели ресайзабельными внутри правой колонки — увеличенная зона
SplitView {
anchors.fill: parent
orientation: Qt.Vertical
handle: Rectangle { implicitHeight: 1; color: Theme.divider }
handle: Rectangle {
implicitHeight: 6
color: Theme.divider
Rectangle {
anchors.centerIn: parent
height: 1; width: parent.width
color: Theme.divider
}
Rectangle {
anchors.centerIn: parent
height: 16; width: parent.width
color: "transparent"
MouseArea {
anchors.fill: parent
cursorShape: Qt.SplitVCursor
hoverEnabled: true
onPressed: mouse.accepted = false
}
}
}
// Календарь
Rectangle {
@@ -63,13 +82,6 @@ Item {
anchors.leftMargin: 8; anchors.rightMargin: 4
Label { text: qsTr("Календарь"); font.bold: true; color: Theme.textSecondary; font.pixelSize: 12 }
Item { Layout.fillWidth: true }
ToolButton {
text: "\u2637"
font.pixelSize: 12
ToolTip.text: qsTr("Сегодня")
ToolTip.visible: hovered
onClicked: cal.currentMonth = new Date()
}
}
}
Rectangle { Layout.fillWidth: true; height: 1; color: Theme.divider }