MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / LTable_RowColor

Function LTable_RowColor

src/LWidgets.c:766–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766BitmapCol LTable_RowColor(int row, cc_bool selected, cc_bool featured) {
767 BitmapCol featSelColor = BitmapColor_RGB( 50, 53, 0);
768 BitmapCol featuredColor = BitmapColor_RGB(101, 107, 0);
769 BitmapCol selectedColor = BitmapColor_RGB( 40, 40, 40);
770
771 if (featured) {
772 return selected ? featSelColor : featuredColor;
773 } else if (selected) {
774 return selectedColor;
775 }
776
777 if (!Launcher_Theme.ClassicBackground) {
778 return BitmapColor_RGB(20, 20, 10);
779 } else {
780 return (row & 1) == 0 ? Launcher_Theme.BackgroundColor : 0;
781 }
782}
783#endif

Callers 3

LBackend_TableShowFunction · 0.85
java_tableGetColorFunction · 0.85
LBackend_TableRowColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected