mirror of
https://github.com/KDE/latte-dock.git
synced 2025-08-15 09:49:35 +03:00
expose new properties to applets
-paddingThickness -marginLength -paddingLength --are now provided through LatteBridge to applets
This commit is contained in:
@ -356,7 +356,7 @@ Item{
|
||||
return wrapper.layoutThickness;
|
||||
}
|
||||
|
||||
var wrapperContainerThickness = wrapper.zoomScaleThickness * (metrics.iconSize/* appletItem.metrics.totals.thickness*/);
|
||||
var wrapperContainerThickness = appletItem.screenEdgeMarginSupported ? appletItem.metrics.totals.thickness : wrapper.zoomScaleThickness * metrics.iconSize;
|
||||
return appletItem.screenEdgeMarginSupported ? wrapperContainerThickness + appletItem.metrics.margin.screenEdge : wrapperContainerThickness;
|
||||
}
|
||||
}
|
||||
|
@ -98,6 +98,30 @@ Item{
|
||||
// @since: 0.10
|
||||
readonly property int screenEdgeMargin: appletItem.metrics.margin.screenEdge
|
||||
|
||||
// NAME: thicknessPadding
|
||||
// USAGE: read-only
|
||||
// EXPLANATION: The thickness padding around applet in pixels
|
||||
// USE CASE: it can be used from applets that want to be informed what is the thickness padding
|
||||
// currently applied
|
||||
// @since: 0.10
|
||||
readonly property int thicknessPadding: appletItem.metrics.margin.thickness
|
||||
|
||||
// NAME: lengthMargin
|
||||
// USAGE: read-only
|
||||
// EXPLANATION: The length margin around applet in pixels
|
||||
// USE CASE: it can be used from applets that want to be informed what is the length margin
|
||||
// currently applied
|
||||
// @since: 0.10
|
||||
readonly property int lengthMargin: appletItem.metrics.margin.length
|
||||
|
||||
// NAME: lengthPadding
|
||||
// USAGE: read-only
|
||||
// EXPLANATION: The length padding around applet in pixels
|
||||
// USE CASE: it can be used from applets that want to be informed what is the length padding
|
||||
// currently applied
|
||||
// @since: 0.10
|
||||
readonly property int lengthPadding: appletItem.lengthAppletPadding
|
||||
|
||||
// NAME: maxZoomFactor
|
||||
// USAGE: read-only
|
||||
// EXPLANATION: The maximum zoom factor currently used
|
||||
|
Reference in New Issue
Block a user