Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Smaller icons in bin and asset panel

parent 8c70a9c1
......@@ -54,6 +54,9 @@ AssetPanel::AssetPanel(QWidget *parent)
{
QToolBar *buttonToolbar = new QToolBar(this);
buttonToolbar->addWidget(m_assetTitle);
int size = style()->pixelMetric(QStyle::PM_SmallIconSize);
QSize iconSize(size, size);
buttonToolbar->setIconSize(iconSize);
// spacer
QWidget* empty = new QWidget();
......
......@@ -567,6 +567,9 @@ Bin::Bin(const std::shared_ptr<ProjectItemModel> &model, QWidget *parent)
// Create toolbar for buttons
m_toolbar = new QToolBar(this);
int size = style()->pixelMetric(QStyle::PM_SmallIconSize);
QSize iconSize(size, size);
m_toolbar->setIconSize(iconSize);
m_toolbar->setToolButtonStyle(Qt::ToolButtonIconOnly);
m_layout->addWidget(m_toolbar);
m_layout->setSpacing(0);
......
......@@ -70,12 +70,6 @@ CollapsibleEffectView::CollapsibleEffectView(std::shared_ptr<EffectItemModel> ef
// m_info.fromString(effect.attribute(QStringLiteral("kdenlive_info")));
// setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
buttonUp->setIcon(QIcon::fromTheme(QStringLiteral("kdenlive-up")));
QSize iconSize = buttonUp->iconSize();
buttonUp->setMaximumSize(iconSize);
buttonDown->setMaximumSize(iconSize);
menuButton->setMaximumSize(iconSize);
enabledButton->setMaximumSize(iconSize);
buttonDel->setMaximumSize(iconSize);
buttonUp->setToolTip(i18n("Move effect up"));
buttonDown->setIcon(QIcon::fromTheme(QStringLiteral("kdenlive-down")));
buttonDown->setToolTip(i18n("Move effect down"));
......
......@@ -208,12 +208,13 @@ Rectangle {
}
ToolButton {
iconName: 'kdenlive-track_has_effect'
checkable: true
checked: trackHeadRoot.isStackEnabled
//checkable: true
//checked: trackHeadRoot.isStackEnabled
visible: trackHeadRoot.effectNames != ''
implicitHeight: trackHeadRoot.iconSize
implicitWidth: trackHeadRoot.iconSize
onClicked: controller.setTrackStackEnabled(trackId, !isStackEnabled)
onClicked: timeline.showTrackAsset(trackId)
//onClicked: controller.setTrackStackEnabled(trackId, !isStackEnabled)
}
ToolButton {
id: thumbsButton
......
......@@ -47,7 +47,7 @@
<property name="bottomMargin">
<number>0</number>
</property>
<property name="verticalSpacing">
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
......@@ -65,6 +65,9 @@
<enum>QFrame::Plain</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
......@@ -105,12 +108,6 @@
</item>
<item>
<widget class="QToolButton" name="enabledButton">
<property name="maximumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
......@@ -124,12 +121,6 @@
</item>
<item>
<widget class="QToolButton" name="menuButton">
<property name="maximumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
......@@ -143,12 +134,6 @@
</item>
<item>
<widget class="QToolButton" name="buttonUp">
<property name="maximumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
......@@ -159,12 +144,6 @@
</item>
<item>
<widget class="QToolButton" name="buttonDown">
<property name="maximumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
......@@ -175,12 +154,6 @@
</item>
<item>
<widget class="QToolButton" name="buttonDel">
<property name="maximumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
......
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