Stepped keyboard zoom and a steady tab strip (12.9b)

This commit is contained in:
雷电芽衣 committed 2026-09-28 13:18:10 -04:00
1 parent fdb62978c5
commit 9ac3b1b81c
17 files changed
+533 -38

No files matched your search

+11
View File
@@ -315,6 +315,17 @@ void EditorSession::zoom(double value, std::optional<QPointF> anchor)
notify();
}
void EditorSession::zoomKeyboard(int step)
{
if (!m_document)
return;
const double target = viewport.keyboardZoomTarget(step);
if (target == viewport.zoom())
return;
viewport.setZoom(target, viewport.center(), m_document->size());
notify();
}
void EditorSession::setShowsPixelGrid(bool shows)
{
m_showsPixelGrid = shows;