mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-10 20:58:18 +03:00
improvements for Latte Tasks used in Plasma
This commit is contained in:
parent
691fef2c76
commit
dbdb95f402
@ -26,10 +26,10 @@
|
||||
<default></default>
|
||||
</entry>
|
||||
<entry name="showBarLine" type="Bool">
|
||||
<default>true</default>
|
||||
<default>false</default>
|
||||
</entry>
|
||||
<entry name="showShadows" type="Bool">
|
||||
<default>true</default>
|
||||
<default>false</default>
|
||||
</entry>
|
||||
<entry name="showGlow" type="Bool">
|
||||
<default>true</default>
|
||||
|
@ -49,8 +49,8 @@ Item {
|
||||
Layout.fillWidth: scrollingEnabled && !root.vertical
|
||||
Layout.fillHeight: scrollingEnabled && root.vertical
|
||||
|
||||
Layout.minimumWidth: -1
|
||||
Layout.minimumHeight: -1
|
||||
Layout.minimumWidth: inPlasma && root.isHorizontal ? minimumLength : -1
|
||||
Layout.minimumHeight: inPlasma && !root.isHorizontal ? minimumLength : -1
|
||||
Layout.preferredWidth: tasksWidth
|
||||
Layout.preferredHeight: tasksHeight
|
||||
Layout.maximumWidth: -1
|
||||
@ -103,6 +103,8 @@ Item {
|
||||
property int internalWidthMargins: root.vertical ? appletAbilities.metrics.totals.thicknessEdges : appletAbilities.metrics.totals.lengthPaddings
|
||||
property int internalHeightMargins: !root.vertical ? appletAbilities.metrics.totals.thicknessEdges : appletAbilities.metrics.totals.lengthPaddings
|
||||
|
||||
readonly property int minimumLength: inPlasma ? (root.isHorizontal ? tasksWidth : tasksHeight) : -1;
|
||||
|
||||
property real textColorBrightness: ColorizerTools.colorBrightness(themeTextColor)
|
||||
|
||||
property color themeTextColor: theme.textColor
|
||||
@ -210,7 +212,7 @@ Item {
|
||||
//END Latte Dock Communicator
|
||||
|
||||
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
|
||||
Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground
|
||||
Plasmoid.backgroundHints: inPlasmaDesktop ? PlasmaCore.Types.StandardBackground : PlasmaCore.Types.NoBackground
|
||||
|
||||
signal draggingFinished();
|
||||
signal hiddenTasksUpdated();
|
||||
@ -313,7 +315,7 @@ Item {
|
||||
return appletAbilities.myView.alignment;
|
||||
}
|
||||
|
||||
return !root.vertical ? LatteCore.Types.Left : LatteCore.Types.Top;
|
||||
return LatteCore.Types.Center;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user