ui: finalized design for history list

This commit is contained in:
Eberhard Graether
2017-05-31 12:31:11 +02:00
parent 29cfbe0f66
commit 539377339a
3 changed files with 11 additions and 8 deletions
@@ -1,16 +1,19 @@
#history_list {
background: <color:search/popup/background>;
border: none;
}
QListWidget::item {
border: none;
border-bottom: 1px solid <color:search/popup/background>;
}
#history_list {
background: <color:search/popup/background>;
}
#history_item, #history_item_current {
border: none;
color: <color:search/popup/text>;
font-family: "<setting:font_name>";
font-size: <setting:font_size>px;
padding-left: 20px;
padding-left: 22px;
padding-top: 1px;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 350 B

+3 -3
View File
@@ -37,7 +37,7 @@ QtHistoryItem::QtHistoryItem(const SearchMatch& match, size_t index, bool isCurr
QSize size = getSizeHint();
m_indicator = new QWidget(m_name);
m_indicator->setGeometry(5, 2, 12, size.height() - 4);
m_indicator->setGeometry(0, 1, 12, size.height());
m_indicator->show();
ColorScheme* scheme = ColorScheme::getInstance().get();
@@ -63,7 +63,7 @@ QtHistoryItem::QtHistoryItem(const SearchMatch& match, size_t index, bool isCurr
QLabel* arrow = new QLabel(this);
arrow->setPixmap(utility::colorizePixmap(pixmap.pixmap(), QColor(scheme->getColor("search/popup/text").c_str())));
arrow->setGeometry(size.height() / 3, size.height() / 3, size.height() / 3, size.height() / 3);
arrow->setGeometry(15, size.height() / 3, size.height() / 3, size.height() / 3);
arrow->show();
}
}
@@ -131,7 +131,7 @@ QtHistoryList::QtHistoryList(const std::vector<SearchMatch>& history, size_t cur
void QtHistoryList::showPopup(QPoint pos)
{
QSize size(50, 1);
QSize size(50, 0);
for (int i = 0; i < count(); i++)
{
QtHistoryItem* it = dynamic_cast<QtHistoryItem*>(itemWidget(item(i)));