diff --git a/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/colors.dei b/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/colors.dei index 3500f32bda..ae0cdcc598 100644 --- a/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/colors.dei +++ b/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/colors.dei @@ -110,5 +110,9 @@ gamefilter { # home { - color icon.shadow { rgb $= label.shadow.rgb } + color icon.shadow { rgb $= label.shadow.rgb } + color icon.doom { rgb <1.0, 0.7, 0.2, 1.0> } + color icon.heretic { rgb <0.2, 0.7, 0.2, 1.0> } + color icon.hexen { rgb <1.0, 0.25, 0.1, 1.0> } + color icon.other { rgb <1.0, 1.0, 1.0, 1.0> } } diff --git a/doomsday/apps/client/src/ui/home/gamepanelbuttonwidget.cpp b/doomsday/apps/client/src/ui/home/gamepanelbuttonwidget.cpp index 5dba0b5c54..d497172bb3 100644 --- a/doomsday/apps/client/src/ui/home/gamepanelbuttonwidget.cpp +++ b/doomsday/apps/client/src/ui/home/gamepanelbuttonwidget.cpp @@ -169,10 +169,14 @@ DENG_GUI_PIMPL(GamePanelButtonWidget) IdTech1Image img(title.isEmpty()? titlePic : title, playPal); // Apply VGA aspect correction while downscaling 50%. - self.icon().setImage(img.toQImage().scaled(img.width()/2, - img.height()/2 * 1.2f, - Qt::IgnoreAspectRatio, - Qt::SmoothTransformation)); + Image::Size const finalSize(img.width()/2, img.height()/2 * 1.2f); + + String colorId = "home.icon." + (game().family().isEmpty()? "other" : game().family()); + + self.icon().setImage(Image(img.toQImage().scaled(finalSize.x, finalSize.y, + Qt::IgnoreAspectRatio, + Qt::SmoothTransformation)) + .colorized(Vector4ub(style().colors().color(colorId), 255))); } catch(Error const &er) {