ui: Updated style of QtBookmarkBrowser

This commit is contained in:
Eberhard Graether
2017-03-21 17:05:23 +01:00
parent 8ffc2f281c
commit faf0ab3ac7
3 changed files with 14 additions and 15 deletions
@@ -43,18 +43,18 @@
/* Bookmark category */
#bookmark_category {
background: #297BBD;
background: #DADADA;
border-bottom: 1px solid white;
padding: 1px 10px 0px 5px;
padding: 4px 10px 3px 5px;
}
#bookmark_category:hover {
background: #2C85CC;
background: #DEDEDE;
}
#category_name {
color: white;
font-size: 12px;
color: black;
font-size: 14px;
margin-left: 1px;
}
@@ -80,17 +80,16 @@
#activate_button {
background: white;
border: none;
border: 2px solid white;
border-radius: 8px;
color: black;
font-size: 16px;
padding: 3px 8px 2px;
font-size: 14px;
padding: 4px 8px 3px;
text-align: right;
}
#activate_button:hover {
color: white;
background: #2D3C86;
border-color: #2D3C86;
}
#date_label {
+2 -2
View File
@@ -48,12 +48,12 @@ QtBookmark::QtBookmark()
m_activateButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
buttonsLayout->addWidget(m_activateButton);
buttonsLayout->addStretch();
m_dateLabel = new QLabel();
m_dateLabel->setObjectName("date_label");
buttonsLayout->addWidget(m_dateLabel);
buttonsLayout->addStretch();
m_editButton = new QPushButton();
m_editButton->setObjectName("edit_button");
m_editButton->setToolTip("Edit bookmark");
@@ -24,7 +24,7 @@ QtBookmarkCategory::QtBookmarkCategory()
m_expandButton->setToolTip("Show/Hide bookmarks in this category");
m_expandButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
m_expandButton->setIcon(QPixmap((ResourcePaths::getGuiPath() + "bookmark_view/images/arrow_down.png").c_str()));
m_expandButton->setIconSize(QSize(8, 8));
m_expandButton->setIconSize(QSize(10, 10));
layout->addWidget(m_expandButton);
connect(m_expandButton, SIGNAL(clicked()), this, SLOT(expandClicked()));
@@ -93,12 +93,12 @@ void QtBookmarkCategory::updateArrow()
if (m_treeItem->isExpanded())
{
QPixmap pixmap((ResourcePaths::getGuiPath() + "bookmark_view/images/arrow_down.png").c_str());
m_expandButton->setIcon(QIcon(utility::colorizePixmap(pixmap, "white")));
m_expandButton->setIcon(QIcon(utility::colorizePixmap(pixmap, "black")));
}
else
{
QPixmap pixmap((ResourcePaths::getGuiPath() + "bookmark_view/images/arrow_right.png").c_str());
m_expandButton->setIcon(QIcon(utility::colorizePixmap(pixmap, "white")));
m_expandButton->setIcon(QIcon(utility::colorizePixmap(pixmap, "black")));
}
}
}