@Override public void render(File file, Gui gui, Minecraft mc, int x, int y, int width, int height, boolean selected) { Color bgColor = new Color(Laptop.getSystem().getSettings().getColorScheme().getBackgroundColor()); Gui.drawRect(x, y, x + width, y + height, selected ? bgColor.brighter().brighter().getRGB() : bgColor.brighter().getRGB()); GlStateManager.color(1.0F, 1.0F, 1.0F); Minecraft.getMinecraft().getTextureManager().bindTexture(ASSETS); if(file.isFolder()) { RenderUtil.drawRectWithTexture(x + 3, y + 2, 0, 0, 14, 14, 14, 14); } else { AppInfo info = ApplicationManager.getApplication(file.getOpeningApp()); RenderUtil.drawApplicationIcon(info, x + 3, y + 2); } gui.drawString(Minecraft.getMinecraft().fontRenderer, file.getName(), x + 22, y + 5, file.isProtected() ? PROTECTED_FILE.getRGB() : Laptop.getSystem().getSettings().getColorScheme().getTextColor()); } };