mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-25 19:21:41 +03:00
expose backgroundThickness through Metrics
--this way Tasks scrolling shadows work ok again and also they are decoupled from containment
This commit is contained in:
parent
f715c5bbd5
commit
0d023dff37
@ -29,6 +29,7 @@ Ability.MetricsPrivate {
|
||||
//! Public Properties
|
||||
iconSize: autosizeEnabled && autosize.iconSize > 0 ? Math.min(autosize.iconSize, maxIconSize) : maxIconSize
|
||||
maxIconSize: portionIconSize!==-1 ? portionIconSize : plasmoid.configuration.iconSize
|
||||
backgroundThickness: background.thickness
|
||||
|
||||
margin.length: fraction.lengthMargin * iconSize
|
||||
margin.thickness: fraction.thicknessMargin * iconSize
|
||||
|
@ -28,6 +28,7 @@ ContainerAbility.Metrics {
|
||||
id: mets
|
||||
property Item animations: null
|
||||
property Item autosize: null
|
||||
property Item background: null
|
||||
property Item indicators: null
|
||||
|
||||
//! Private Properties
|
||||
|
@ -1593,6 +1593,7 @@ Item {
|
||||
id: _metrics
|
||||
animations: _animations
|
||||
autosize: _autosize
|
||||
background: _background
|
||||
indicators: indicatorsManager
|
||||
}
|
||||
|
||||
|
@ -26,6 +26,7 @@ AbilityDefinition.Metrics {
|
||||
|
||||
iconSize: ref.metrics.iconSize
|
||||
maxIconSize: ref.metrics.maxIconSize
|
||||
backgroundThickness: ref.metrics.backgroundThickness
|
||||
|
||||
margin: ref.metrics.margin
|
||||
padding: ref.metrics.padding
|
||||
|
@ -27,6 +27,7 @@ AbilityDefinition.Metrics {
|
||||
readonly property Item publicApi: Item {
|
||||
readonly property alias iconSize: apis.iconSize
|
||||
readonly property alias maxIconSize: apis.maxIconSize
|
||||
readonly property alias backgroundThickness: apis.backgroundThickness
|
||||
|
||||
readonly property alias margin: apis.margin
|
||||
readonly property alias padding: apis.padding
|
||||
|
@ -24,6 +24,7 @@ import "./metrics" as MetricsTypes
|
||||
Item {
|
||||
property int iconSize: 48
|
||||
property int maxIconSize: 48
|
||||
property int backgroundThickness: 16
|
||||
|
||||
property MetricsTypes.Margin margin: MetricsTypes.Margin{}
|
||||
property MetricsTypes.Padding padding: MetricsTypes.Padding{}
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
Item {
|
||||
readonly property int length: iconSize + lengthEdges
|
||||
readonly property int lengthEdge: margin.length + padding.length
|
||||
readonly property int lengthEdges: 2 * lengthEdge
|
||||
|
@ -26,6 +26,7 @@ import org.kde.latte.abilities.applets 0.1 as AppletAbility
|
||||
AppletAbility.Metrics {
|
||||
//! Public Local Properties
|
||||
local.iconSize: Math.max(plasmoid.configuration.iconSize, 16)
|
||||
local.backgroundThickness: totals.thickness
|
||||
|
||||
local.margin.length: 0.1 * iconSize
|
||||
local.margin.thickness: 0.16 * iconSize
|
||||
|
@ -27,7 +27,7 @@ Item {
|
||||
opacity: 0.4
|
||||
|
||||
readonly property int gradientLength: metrics.iconSize / 3
|
||||
readonly property int thickness: latteView ? latteView.realPanelSize : metrics.totals.thickness
|
||||
readonly property int thickness: metrics.backgroundThickness
|
||||
readonly property color appliedColor: root.appShadowColorSolid
|
||||
|
||||
property Item flickable
|
||||
|
Loading…
Reference in New Issue
Block a user