Browse Source

Add storage device type

Commit amended from original XPG Spectrix S40G merge request by Adam Honse <calcprogrammer1@gmail.com>
merge-requests/879/head
NicolasNewman 10 months ago
committed by Adam Honse
parent
commit
7b63813cdb
  1. 2
      RGBController/RGBController.cpp
  2. 1
      RGBController/RGBController.h
  3. 3
      qt/OpenRGBDialog2.cpp
  4. 2
      qt/resources.qrc
  5. BIN
      qt/storage.png
  6. BIN
      qt/storage_dark.png

2
RGBController/RGBController.cpp

@ -1605,6 +1605,8 @@ std::string device_type_to_str(device_type type)
return "Light";
case DEVICE_TYPE_SPEAKER:
return "Speaker";
case DEVICE_TYPE_STORAGE:
return "Storage";
case DEVICE_TYPE_VIRTUAL:
return "Virtual";
default:

1
RGBController/RGBController.h

@ -131,6 +131,7 @@ enum
DEVICE_TYPE_LIGHT,
DEVICE_TYPE_SPEAKER,
DEVICE_TYPE_VIRTUAL,
DEVICE_TYPE_STORAGE,
DEVICE_TYPE_UNKNOWN
};

3
qt/OpenRGBDialog2.cpp

@ -73,6 +73,9 @@ static QString GetIconString(device_type type, bool dark)
case DEVICE_TYPE_VIRTUAL:
filename = "virtual";
break;
case DEVICE_TYPE_STORAGE:
filename = "storage";
break;
default:
filename = "unknown";
break;

2
qt/resources.qrc

@ -46,5 +46,7 @@
<file>wireless_dark.png</file>
<file>console.png</file>
<file>console_dark.png</file>
<file>storage.png</file>
<file>storage_dark.png</file>
</qresource>
</RCC>

BIN
qt/storage.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
qt/storage_dark.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Loading…
Cancel
Save