Add a Light device type with a bulb icon

This commit is contained in:
Adam Honse committed 2020-11-04 09:23:17 -06:00
1 parent 87c99d31cf
commit 1e4eacd337
6 files changed
+8

No files matched your search

+2
View File
@@ -1418,6 +1418,8 @@ std::string device_type_to_str(device_type type)
return "Headset Stand";
case DEVICE_TYPE_GAMEPAD:
return "Gamepad";
case DEVICE_TYPE_LIGHT:
return "Light";
default:
return "Unknown";
}
+1
View File
@@ -116,6 +116,7 @@ enum
DEVICE_TYPE_HEADSET,
DEVICE_TYPE_HEADSET_STAND,
DEVICE_TYPE_GAMEPAD,
DEVICE_TYPE_LIGHT,
DEVICE_TYPE_UNKNOWN
};
+3
View File
@@ -53,6 +53,9 @@ static QString GetIconString(device_type type, bool dark)
case DEVICE_TYPE_GAMEPAD:
filename = "gamepad";
break;
case DEVICE_TYPE_LIGHT:
filename = "light";
break;
default:
filename = "unknown";
break;
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

+2
View File
@@ -27,5 +27,7 @@
<file>tools_dark.png</file>
<file>gamepad.png</file>
<file>gamepad_dark.png</file>
<file>light.png</file>
<file>light_dark.png</file>
</qresource>
</RCC>