Commit e9a39700 authored by Ezike Ebuka's avatar Ezike Ebuka Committed by Elvis Angelaccio

Improve padding in the Places View

parent 957cc92f
......@@ -2517,7 +2517,7 @@ void KItemListView::updateGroupHeaderHeight()
groupHeaderHeight += 2 * m_styleOption.horizontalMargin;
groupHeaderMargin = m_styleOption.horizontalMargin;
} else if (m_itemSize.isEmpty()){
groupHeaderHeight += 4 * m_styleOption.padding;
groupHeaderHeight += 2 * m_styleOption.padding;
groupHeaderMargin = m_styleOption.iconSize / 2;
} else {
groupHeaderHeight += 2 * m_styleOption.padding + m_styleOption.verticalMargin;
......
......@@ -26,6 +26,7 @@ void PlacesView::setIconSize(int size)
KItemListStyleOption option = styleOption();
option.iconSize = size;
option.padding = 4;
setStyleOption(option);
}
}
......
Markdown is supported
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