MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / setSelectionColor

Method setSelectionColor

qt/DeviceView.cpp:1041–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041void DeviceView::setSelectionColor(RGBColor color)
1042{
1043 if(selectedLeds.isEmpty())
1044 {
1045 controller->SetAllLEDs(color);
1046 }
1047 else
1048 {
1049 for(int led_idx: selectedLeds)
1050 {
1051 controller->SetLED(led_idx, color);
1052 }
1053 }
1054 controller->UpdateLEDs();
1055 update();
1056}

Callers 2

colorChangedMethod · 0.80

Calls 4

SetAllLEDsMethod · 0.80
updateFunction · 0.50
SetLEDMethod · 0.45
UpdateLEDsMethod · 0.45

Tested by

no test coverage detected