mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
IconGroup: Correctly set highlight opacity on start (#1642)
This commit is contained in:
parent
e0ef54ce66
commit
7c379480d3
@ -48,14 +48,21 @@ namespace Gala {
|
||||
return _active;
|
||||
}
|
||||
set {
|
||||
if (_active == value)
|
||||
if (_active == value) {
|
||||
return;
|
||||
|
||||
if (get_transition ("backdrop-opacity") != null)
|
||||
remove_transition ("backdrop-opacity");
|
||||
}
|
||||
|
||||
_active = value;
|
||||
|
||||
if (get_stage () == null) {
|
||||
backdrop_opacity = 40;
|
||||
return;
|
||||
}
|
||||
|
||||
if (get_transition ("backdrop-opacity") != null) {
|
||||
remove_transition ("backdrop-opacity");
|
||||
}
|
||||
|
||||
var transition = new Clutter.PropertyTransition ("backdrop-opacity") {
|
||||
duration = 300,
|
||||
remove_on_complete = true
|
||||
|
Loading…
Reference in New Issue
Block a user