mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06: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 changed files with 2 additions and 12 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue