mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-02 03:28:28 -04:00
qs: improve initial load of wallpaper, dock, and desktop plugins
This commit is contained in:
@@ -359,6 +359,17 @@ Item {
|
||||
anchors.fill: parent
|
||||
active: root.widgetEnabled && root.activeComponent !== null
|
||||
sourceComponent: root.activeComponent
|
||||
opacity: 0
|
||||
|
||||
NumberAnimation {
|
||||
id: revealFade
|
||||
target: contentLoader
|
||||
property: "opacity"
|
||||
from: 0
|
||||
to: 1
|
||||
duration: Theme.mediumDuration
|
||||
easing.type: Theme.standardEasing
|
||||
}
|
||||
|
||||
function reloadComponent() {
|
||||
active = false;
|
||||
@@ -384,6 +395,8 @@ Item {
|
||||
if (!item)
|
||||
return;
|
||||
|
||||
revealFade.restart();
|
||||
|
||||
if (item.pluginService !== undefined) {
|
||||
item.pluginService = root.isInstance ? instanceScopedPluginService : root.pluginService;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user