mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-06 07:08:13 -05:00
Add a Light device type with a bulb icon
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -116,6 +116,7 @@ enum
|
||||
DEVICE_TYPE_HEADSET,
|
||||
DEVICE_TYPE_HEADSET_STAND,
|
||||
DEVICE_TYPE_GAMEPAD,
|
||||
DEVICE_TYPE_LIGHT,
|
||||
DEVICE_TYPE_UNKNOWN
|
||||
};
|
||||
|
||||
|
||||
@@ -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
qt/light.png
Normal file
BIN
qt/light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 186 B |
BIN
qt/light_dark.png
Normal file
BIN
qt/light_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 191 B |
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user