Add a Light device type with a bulb icon
This commit is contained in:
parent
87c99d31cf
commit
1e4eacd337
6 changed files with 8 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue