mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-18 02:04:32 +03:00
plasmatheme:define max background opacity to 1%
BUG:443366
This commit is contained in:
parent
54ccf51cda
commit
899c0155c7
@ -140,6 +140,12 @@ void PanelBackground::updateMaxOpacity(Plasma::Svg *svg)
|
|||||||
|
|
||||||
m_maxOpacity = alphasum / (float)(2 * CENTERWIDTH);
|
m_maxOpacity = alphasum / (float)(2 * CENTERWIDTH);
|
||||||
|
|
||||||
|
//! minimum acceptable panel background opacity is 1%. Such is a case is when
|
||||||
|
//! panel background is fully transparent but it provides a border. In such case
|
||||||
|
//! previous approach was identifying as background max opacity 0% and in such case
|
||||||
|
//! all the upcoming calculations where returning a fully transparent plasma svg to the user
|
||||||
|
m_maxOpacity = qMax(0.01f, m_maxOpacity);
|
||||||
|
|
||||||
emit maxOpacityChanged();
|
emit maxOpacityChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,6 +245,9 @@ BackgroundProperties{
|
|||||||
|
|
||||||
property int animationTime: 6*animations.speedFactor.current*animations.duration.small
|
property int animationTime: 6*animations.speedFactor.current*animations.duration.small
|
||||||
|
|
||||||
|
//! Opacity related
|
||||||
|
readonly property bool isDefaultOpacityEnabled: plasmoid.configuration.panelTransparency===-1
|
||||||
|
|
||||||
//! Metrics related
|
//! Metrics related
|
||||||
readonly property bool isGreaterThanItemThickness: root.useThemePanel && (totals.visualThickness >= (metrics.iconSize + metrics.margin.tailThickness))
|
readonly property bool isGreaterThanItemThickness: root.useThemePanel && (totals.visualThickness >= (metrics.iconSize + metrics.margin.tailThickness))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user