mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:15:53 +08:00
Make opacity depend on enabled
Simplifies the code a bit. Contributes to issue CURA-5128.
This commit is contained in:
parent
e8491b4a83
commit
8a36f1e074
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2017 Ultimaker B.V.
|
// Copyright (c) 2018 Ultimaker B.V.
|
||||||
// PluginBrowser is released under the terms of the LGPLv3 or higher.
|
// PluginBrowser is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
@ -140,17 +140,7 @@ Component {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
opacity:
|
opacity: enabled ? 1.0 : 0.5
|
||||||
{
|
|
||||||
if ( pluginList.activePlugin == model )
|
|
||||||
{
|
|
||||||
return 1.0
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
manager.isDownloading ? 0.5 : 1.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
visible: model.external && ((model.status !== "installed") || model.can_upgrade)
|
visible: model.external && ((model.status !== "installed") || model.can_upgrade)
|
||||||
style: ButtonStyle {
|
style: ButtonStyle {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user