update
This commit is contained in:
@@ -106,6 +106,10 @@ Singleton {
|
||||
running: false
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
if (BackgroundService.isProcessing) {
|
||||
reloadTimer.restart();
|
||||
return ;
|
||||
}
|
||||
reloadColors(ShellState.colorState);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,7 @@ Variants {
|
||||
id: leftLayout
|
||||
|
||||
height: parent.height - Style.marginXS * 2
|
||||
spacing: Style.marginM
|
||||
|
||||
anchors {
|
||||
left: parent.left
|
||||
@@ -92,22 +93,20 @@ Variants {
|
||||
}
|
||||
|
||||
Separator {
|
||||
implicitWidth: Style.marginXL
|
||||
}
|
||||
|
||||
Workspace {
|
||||
screen: modelData
|
||||
horizontalPadding: 0
|
||||
}
|
||||
|
||||
Separator {
|
||||
implicitWidth: Style.marginXL
|
||||
}
|
||||
|
||||
CavaBar {
|
||||
}
|
||||
|
||||
Separator {
|
||||
implicitWidth: Style.marginXL
|
||||
}
|
||||
|
||||
FocusedWindow {
|
||||
@@ -134,6 +133,7 @@ Variants {
|
||||
id: rightLayout
|
||||
|
||||
height: parent.height - Style.marginXS * 2
|
||||
spacing: Style.marginM
|
||||
|
||||
anchors {
|
||||
right: parent.right
|
||||
@@ -167,6 +167,7 @@ Variants {
|
||||
y: LyricsService.showLyricsBar ? Style.barHeight : 0
|
||||
opacity: LyricsService.showLyricsBar ? 0 : 1
|
||||
spacing: Style.marginM
|
||||
anchors.margins: 0
|
||||
Component.onCompleted: {
|
||||
if (!LyricsService.showLyricsBar)
|
||||
SystemStatService.registerComponent("BarMonitors");
|
||||
@@ -204,9 +205,6 @@ Variants {
|
||||
screen: modelData
|
||||
}
|
||||
|
||||
Volume {
|
||||
}
|
||||
|
||||
Behavior on y {
|
||||
NumberAnimation {
|
||||
duration: 300
|
||||
@@ -261,6 +259,9 @@ Variants {
|
||||
|
||||
}
|
||||
|
||||
Volume {
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ Singleton {
|
||||
property string previewPath: ""
|
||||
property string displayPath: ""
|
||||
property bool inPreviewMode: false
|
||||
property bool isProcessing: false
|
||||
// Preserved for getBlurredOverview
|
||||
readonly property string tintColor: Colors.mSurface
|
||||
readonly property real tintOpacity: 0.5
|
||||
@@ -24,9 +25,12 @@ Singleton {
|
||||
function loadBackground() {
|
||||
if (!SettingsService.backgroundPath) {
|
||||
Logger.w("BackgroundService", "No background path set, skipping loading background.");
|
||||
isProcessing = false;
|
||||
return ;
|
||||
}
|
||||
isProcessing = true;
|
||||
ImageCacheService.getLarge(SettingsService.backgroundPath, backgroundWidth, backgroundHeight, function(path) {
|
||||
isProcessing = false;
|
||||
if (!path) {
|
||||
Logger.e("BackgroundService", "Failed to load background image from path: " + SettingsService.backgroundPath);
|
||||
cachedPath = "";
|
||||
@@ -55,12 +59,13 @@ Singleton {
|
||||
if (!path)
|
||||
return ;
|
||||
|
||||
previewPath = ""; // clear preview path
|
||||
cachedPath = ""; // clear cached path
|
||||
previewPath = "";
|
||||
isProcessing = true;
|
||||
ImageCacheService.checkFileExists(path, function(exists) {
|
||||
if (!exists)
|
||||
if (!exists) {
|
||||
isProcessing = false;
|
||||
return ;
|
||||
|
||||
}
|
||||
SettingsService.backgroundPath = path;
|
||||
loadTimer.restart();
|
||||
});
|
||||
@@ -106,16 +111,6 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: setDisplayTimer
|
||||
|
||||
interval: 100
|
||||
running: false
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: wallreelProcess
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ Singleton {
|
||||
}
|
||||
const player = this.queuedPlayer.toLowerCase();
|
||||
this.queuedPlayer = "";
|
||||
this.command = ["lrcfetch", "--player", player, "fetch"];
|
||||
this.command = ["lrx", "--player", player, "fetch"];
|
||||
this.running = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user