forked from qt-creator/qt-creator
Welcome: Readjust link buttons to Diana's metrics
The hover area is 30px high and the spacing 5px Change-Id: I252f87b1961768d54a65ddf69c8106e87790b2a3 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -142,6 +142,7 @@ public:
|
||||
: QWidget(parent), m_iconSource(iconSource), m_title(title), m_openUrl(openUrl)
|
||||
{
|
||||
setAutoFillBackground(true);
|
||||
setMinimumHeight(30);
|
||||
|
||||
const QString fileName = QString(":/welcome/images/%1.png").arg(iconSource);
|
||||
const Icon icon({{ fileName, Theme::Welcome_ForegroundPrimaryColor }}, Icon::Tint);
|
||||
@@ -251,7 +252,7 @@ public:
|
||||
{
|
||||
auto l = new QVBoxLayout;
|
||||
l->setContentsMargins(0, 0, 0, 0);
|
||||
l->setSpacing(sd + 3);
|
||||
l->setSpacing(5);
|
||||
l->addWidget(new IconAndLink("qtaccount", tr("Qt Account"), "https://account.qt.io", this));
|
||||
l->addWidget(new IconAndLink("community", tr("Online Community"), "http://forum.qt.io", this));
|
||||
l->addWidget(new IconAndLink("blogs", tr("Blogs"), "http://planet.qt.io", this));
|
||||
|
||||
Reference in New Issue
Block a user