Autoformating + back to -git

This commit is contained in:
ItsLemmy
2025-11-24 21:38:07 -05:00
parent adfee30f8c
commit ce7b27c316
2 changed files with 17 additions and 12 deletions
+16 -11
View File
@@ -106,19 +106,18 @@ Variants {
}
// For lock keys, use a different color to indicate the lock state
if (currentOSDType === "lockkey") {
return LockKeysService.capsLockOn || LockKeysService.numLockOn || LockKeysService.scrollLockOn
? Color.mPrimary : Color.mOnSurfaceVariant;
return LockKeysService.capsLockOn || LockKeysService.numLockOn || LockKeysService.scrollLockOn ? Color.mPrimary : Color.mOnSurfaceVariant;
}
return Color.mPrimary;
}
function getIconColor() {
const isMutedState = (currentOSDType === "volume" && isMuted) || (currentOSDType === "inputVolume" && isInputMuted);
if (isMutedState) return Color.mError;
if (isMutedState)
return Color.mError;
if (currentOSDType === "lockkey") {
return LockKeysService.capsLockOn || LockKeysService.numLockOn || LockKeysService.scrollLockOn
? Color.mPrimary : Color.mOnSurfaceVariant;
return LockKeysService.capsLockOn || LockKeysService.numLockOn || LockKeysService.scrollLockOn ? Color.mPrimary : Color.mOnSurfaceVariant;
}
return Color.mOnSurface;
@@ -208,22 +207,28 @@ Variants {
function onCapsLockChanged(active) {
root.currentOSDType = "lockkey";
root.lastLockKeyChanged = active ? "CAPS ON" : "CAPS OFF";
if (!root.active) root.active = true;
if (root.item) root.item.showOSD();
if (!root.active)
root.active = true;
if (root.item)
root.item.showOSD();
}
function onNumLockChanged(active) {
root.currentOSDType = "lockkey";
root.lastLockKeyChanged = active ? "NUM ON" : "NUM OFF";
if (!root.active) root.active = true;
if (root.item) root.item.showOSD();
if (!root.active)
root.active = true;
if (root.item)
root.item.showOSD();
}
function onScrollLockChanged(active) {
root.currentOSDType = "lockkey";
root.lastLockKeyChanged = active ? "SCROLL ON" : "SCROLL OFF";
if (!root.active) root.active = true;
if (root.item) root.item.showOSD();
if (!root.active)
root.active = true;
if (root.item)
root.item.showOSD();
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ Singleton {
// Version properties
readonly property string baseVersion: "3.3.1"
readonly property bool isDevelopment: false
readonly property bool isDevelopment: true
readonly property string developmentSuffix: "-git"
readonly property string currentVersion: `v${!isDevelopment ? baseVersion : baseVersion + developmentSuffix}`