mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-26 22:42:50 -05:00
dgop was rebranded
This commit is contained in:
@@ -54,29 +54,29 @@ Item {
|
||||
"text": "CPU Usage",
|
||||
"description": "CPU usage indicator",
|
||||
"icon": "memory",
|
||||
"enabled": DankgopService.dankgopAvailable,
|
||||
"warning": !DankgopService.dankgopAvailable ? "Requires 'dankgop' tool" : undefined
|
||||
"enabled": DgopService.dgopAvailable,
|
||||
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined
|
||||
}, {
|
||||
"id": "memUsage",
|
||||
"text": "Memory Usage",
|
||||
"description": "Memory usage indicator",
|
||||
"icon": "storage",
|
||||
"enabled": DankgopService.dankgopAvailable,
|
||||
"warning": !DankgopService.dankgopAvailable ? "Requires 'dankgop' tool" : undefined
|
||||
"enabled": DgopService.dgopAvailable,
|
||||
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined
|
||||
}, {
|
||||
"id": "cpuTemp",
|
||||
"text": "CPU Temperature",
|
||||
"description": "CPU temperature display",
|
||||
"icon": "device_thermostat",
|
||||
"enabled": DankgopService.dankgopAvailable,
|
||||
"warning": !DankgopService.dankgopAvailable ? "Requires 'dankgop' tool" : undefined
|
||||
"enabled": DgopService.dgopAvailable,
|
||||
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : undefined
|
||||
}, {
|
||||
"id": "gpuTemp",
|
||||
"text": "GPU Temperature",
|
||||
"description": "GPU temperature display",
|
||||
"icon": "auto_awesome_mosaic",
|
||||
"warning": !DankgopService.dankgopAvailable ? "Requires 'dankgop' tool" : "This widget prevents GPU power off states, which can significantly impact battery life on laptops. It is not recommended to use this on laptops with hybrid graphics.",
|
||||
"enabled": DankgopService.dankgopAvailable
|
||||
"warning": !DgopService.dgopAvailable ? "Requires 'dgop' tool" : "This widget prevents GPU power off states, which can significantly impact battery life on laptops. It is not recommended to use this on laptops with hybrid graphics.",
|
||||
"enabled": DgopService.dgopAvailable
|
||||
}, {
|
||||
"id": "systemTray",
|
||||
"text": "System Tray",
|
||||
@@ -315,14 +315,14 @@ Item {
|
||||
"id": widget,
|
||||
"enabled": true,
|
||||
"selectedGpuIndex": selectedGpuIndex,
|
||||
"pciId": DankgopService.availableGpus && DankgopService.availableGpus.length > selectedGpuIndex ? DankgopService.availableGpus[selectedGpuIndex].pciId : ""
|
||||
"pciId": DgopService.availableGpus && DgopService.availableGpus.length > selectedGpuIndex ? DgopService.availableGpus[selectedGpuIndex].pciId : ""
|
||||
}
|
||||
} else {
|
||||
var newWidget = {
|
||||
"id": widget.id,
|
||||
"enabled": widget.enabled,
|
||||
"selectedGpuIndex": selectedGpuIndex,
|
||||
"pciId": DankgopService.availableGpus && DankgopService.availableGpus.length > selectedGpuIndex ? DankgopService.availableGpus[selectedGpuIndex].pciId : ""
|
||||
"pciId": DgopService.availableGpus && DgopService.availableGpus.length > selectedGpuIndex ? DgopService.availableGpus[selectedGpuIndex].pciId : ""
|
||||
}
|
||||
if (widget.size !== undefined) newWidget.size = widget.size
|
||||
widgets[widgetIndex] = newWidget
|
||||
|
||||
@@ -148,22 +148,22 @@ Column {
|
||||
currentValue: {
|
||||
var selectedIndex = modelData.selectedGpuIndex
|
||||
!== undefined ? modelData.selectedGpuIndex : 0
|
||||
if (DankgopService.availableGpus
|
||||
&& DankgopService.availableGpus.length > selectedIndex
|
||||
if (DgopService.availableGpus
|
||||
&& DgopService.availableGpus.length > selectedIndex
|
||||
&& selectedIndex >= 0) {
|
||||
var gpu = DankgopService.availableGpus[selectedIndex]
|
||||
var gpu = DgopService.availableGpus[selectedIndex]
|
||||
return gpu.driver.toUpperCase()
|
||||
}
|
||||
return DankgopService.availableGpus
|
||||
&& DankgopService.availableGpus.length
|
||||
> 0 ? DankgopService.availableGpus[0].driver.toUpperCase() : ""
|
||||
return DgopService.availableGpus
|
||||
&& DgopService.availableGpus.length
|
||||
> 0 ? DgopService.availableGpus[0].driver.toUpperCase() : ""
|
||||
}
|
||||
options: {
|
||||
var gpuOptions = []
|
||||
if (DankgopService.availableGpus
|
||||
&& DankgopService.availableGpus.length > 0) {
|
||||
for (var i = 0; i < DankgopService.availableGpus.length; i++) {
|
||||
var gpu = DankgopService.availableGpus[i]
|
||||
if (DgopService.availableGpus
|
||||
&& DgopService.availableGpus.length > 0) {
|
||||
for (var i = 0; i < DgopService.availableGpus.length; i++) {
|
||||
var gpu = DgopService.availableGpus[i]
|
||||
gpuOptions.push(gpu.driver.toUpperCase())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user