@Gowtham_rg said in Qt Creator: is it possible to change the font size of the side bar?:
What source code changes have you done? Can you please share the change you've done?
Those changes were all the way back in 2016 so I can't say if they're likely to still apply to the most recent version of Qt Creator. And now that I have a larger monitor I'm just running unmodified Qt Creator at this point, so I haven't merged these changes into a later version since probably 2017. But I made the following two changes.
Right before the call to initView() in the constructor of ProjectTreeWidget in src/plugins/projectexplorer/projecttreewidget.cpp I added:
m_view->setIndentation(12);
m_view->setIconSize(QSize(8, 8));
QFont font(tr("Your Font Here"), 13);
font.setStretch(QFont::SemiCondensed);
m_view->setFont(font);
initView();
and I added the line markWidth *= 0.6; into TextEditorWidget::extraAreaWidth in src/plugins/texteditor/texteditor.cpp thusly:
if (d->m_marksVisible) {
markWidth += documentLayout->maxMarkWidthFactor * fm.lineSpacing() + 2;
// if (documentLayout->doubleMarkCount)
// markWidth += fm.lineSpacing() / 3;
markWidth *= 0.6;
space += markWidth;
} else {
space += 2;
}
Again, this was Qt Creator 3.6.0, so I can't say if these changes will still work.