Skip to content

Commit 3fd319d

Browse files
fix(pin): correct OCR button size in pin screenshot toolbar
The OCR icon SVG (ocr-normal_32px.svg) has a 36x36 viewBox with built-in padding around the 18x18 glyph. Setting iconSize and fixedSize to 32x32 scaled the SVG down, making both the icon and its hover background visually smaller than adjacent buttons. Change both to 36x36 to match the SVG's native size and align with the main screenshot toolbar where the same icon uses TOOL_ICON_SIZE (36x36) and TOOL_BUTTON_SIZE (36x36). bug: https://pms.uniontech.com/bug-view-356087.html
1 parent 551a05c commit 3fd319d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pin_screenshots/ui/subtoolwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void SubToolWidget::initShotLable()
4040
m_ocrButton = new ToolButton(this);
4141
m_ocrButton->setObjectName(AC_SUBTOOLWIDGET_PIN_OCR_BUT);
4242
m_ocrButton->setAccessibleName(AC_SUBTOOLWIDGET_PIN_OCR_BUT);
43-
m_ocrButton->setIconSize(QSize(32, 32));
44-
m_ocrButton->setFixedSize(32, 32);
43+
m_ocrButton->setIconSize(QSize(36, 36));
44+
m_ocrButton->setFixedSize(36, 36);
4545
m_ocrButton->setIcon(QIcon::fromTheme("ocr-normal"));
4646
m_ocrButton->setToolTip(tr("Extract Text"));
4747
connect(m_ocrButton, SIGNAL(clicked()), this, SIGNAL(signalOcrButtonClicked()));

0 commit comments

Comments
 (0)