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++

Add line-height to visible-by-default text-props, add padding below add-properties.

Wolthera van Hövell tot Westerfliere21e20127b8f
diff --git a/plugins/dockers/textproperties/qml/LineHeight.qml b/plugins/dockers/textproperties/qml/LineHeight.qml
index fa507939af..36f8381e1d 100644
--- a/plugins/dockers/textproperties/qml/LineHeight.qml
+++ b/plugins/dockers/textproperties/qml/LineHeight.qml
@@ -14,6 +14,7 @@ TextPropertyBase {
propertyTitle: i18nc("@label", "Line Height");
propertyName: "line-height";
propertyType: TextPropertyConfigModel.Character;
+ visibilityState: TextPropertyConfigModel.AlwaysVisible;
toolTip: i18nc("@info:tooltip",
"Line height controls the line height used for the range of text.");
searchTerms: i18nc("comma separated search terms for the line-height property, matching is case-insensitive",
diff --git a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
index f99515b27e..c00a094e42 100644
--- a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
+++ b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
@@ -444,4 +444,9 @@ ColumnLayout {
}
}
+
+ Item {
+ id: bottomPadding;
+ height: Math.floor(spacing/2);
+ }
}