Commit cd3e7980 authored by loh.tar's avatar loh.tar
Browse files

Fix bad urlbar font size manipulation, respect user config

These old hard coded deviation breaks all GUI conventions. Now we use
some system setting the user can control.

Local merged
utilities/kate!746
parent 49c9eeea
Pipeline #181132 passed with stage
in 13 minutes and 36 seconds
......@@ -573,9 +573,6 @@ public:
setSpacing(0);
connect(qApp, &QApplication::paletteChanged, this, &BreadCrumbView::updatePalette, Qt::QueuedConnection);
auto font = this->font();
font.setPointSize(font.pointSize() - 1);
setFont(font);
updatePalette();
connect(this, &QListView::clicked, this, &BreadCrumbView::onClicked);
......@@ -1110,7 +1107,8 @@ KateUrlBar::KateUrlBar(KateViewSpace *parent)
, m_parentViewSpace(parent)
{
setContentsMargins({});
setFixedHeight(22);
setFont(QApplication::font("QMenu")); // We wan't not the default system font
setFixedHeight(fontMetrics().height());
setupLayout();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment