Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove some extraneous padding from text properties docker.

Wolthera van Hövell tot Westerflier517524af30f6
diff --git a/plugins/dockers/textproperties/qml/CollapsibleGroupProperty.qml b/plugins/dockers/textproperties/qml/CollapsibleGroupProperty.qml
index 2b999f68ba..87e04a7017 100644
--- a/plugins/dockers/textproperties/qml/CollapsibleGroupProperty.qml
+++ b/plugins/dockers/textproperties/qml/CollapsibleGroupProperty.qml
@@ -11,7 +11,7 @@ TextPropertyBase {
id: root;
property alias contentItem: contentItemContainer.data;
property alias titleItem: titleItemContainer.data;
- spacing: columnSpacing;
+ spacing: contentItemContainer.visible? columnSpacing: 0;
GridLayout {
diff --git a/plugins/dockers/textproperties/qml/TextPropertyBase.qml b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
index fb9d0859f6..dda7a6d614 100644
--- a/plugins/dockers/textproperties/qml/TextPropertyBase.qml
+++ b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
@@ -13,6 +13,7 @@ Column {
property int firstColumnWidth: 32;
property int columnSpacing: 5;
padding: columnSpacing;
+ bottomPadding: 0;
width: ListView.view? ListView.view.width - (padding * 2): 100;
height: visible? implicitHeight: 0;
@@ -68,7 +69,7 @@ Column {
id: separator;
orientation: Qt.Horizontal;
width: parent && typeof parent != 'undefined'? parent.width: 100;
- topPadding: parent.padding;
+ bottomPadding: 0;
}", root)
}