diff --git a/src/preferences/screensaver/PreviewView.cpp b/src/preferences/screensaver/PreviewView.cpp index fe4b09dfb4..3e6ad9b2ee 100644 --- a/src/preferences/screensaver/PreviewView.cpp +++ b/src/preferences/screensaver/PreviewView.cpp @@ -21,6 +21,9 @@ #include "Utility.h" +static const rgb_color kWhite = (rgb_color){ 255, 255, 255 }; + + #undef B_TRANSLATION_CONTEXT #define B_TRANSLATION_CONTEXT "PreviewView" @@ -117,8 +120,7 @@ PreviewView::AddPreview() B_WILL_DRAW); fNoPreview->SetViewColor(0, 0, 0); fNoPreview->SetLowColor(0, 0, 0); - fNoPreview->SetFontAndColor(be_plain_font, B_FONT_ALL, - &(rgb_color){ 255, 255, 255 }); + fNoPreview->SetFontAndColor(be_plain_font, B_FONT_ALL, &kWhite); fNoPreview->SetText(B_TRANSLATE("No preview available")); fNoPreview->SetAlignment(B_ALIGN_CENTER); fNoPreview->MakeEditable(false);