MCPcopy Index your code
hub / github.com/corecoding/Vitals / _sensorIconPath

Method _sensorIconPath

extension.js:769–776  ·  view source on GitHub ↗
(sensor, icon = 'icon')

Source from the content-addressed store, hash-verified

767 }
768
769 _sensorIconPath(sensor, icon = 'icon') {
770 // If the sensor is a numbered gpu, use the gpu icon. Otherwise use whatever icon associated with the sensor name.
771 let sensorKey = sensor;
772 if(sensor.startsWith('gpu')) sensorKey = 'gpu';
773
774 const iconPathPrefixIndex = this._settings.get_int('icon-style');
775 return this._extensionObject.path + this._sensorsIconPathPrefix[iconPathPrefixIndex] + this._sensorIcons[sensorKey][icon];
776 }
777
778 _ucFirst(string) {
779 if(string.startsWith('gpu')) return 'Graphics';

Callers 5

_initializeMenuGroupMethod · 0.95
_appendMenuItemMethod · 0.95
_defaultIconMethod · 0.95
_querySensorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected