ecere/gui/DropBox: Fixed File Dialogs having blacked out selected 'Look in'
authorJerome St-Louis <jerome@ecere.com>
Tue, 26 Apr 2016 02:30:55 +0000 (22:30 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 29 Apr 2016 16:27:03 +0000 (12:27 -0400)
- Was using guiApp.currentSkin which is not yet set up during global instances construction

ecere/src/gui/controls/DropBox.ec

index aacf773..3600b69 100644 (file)
@@ -938,6 +938,7 @@ private:
    DataRow noneRow;
    ColorAlpha selectionColor, selectionText;
 
-   selectionColor = SELECTION_COLOR;
-   selectionText = SELECTION_TEXT;
+   // TO REVIEW: This was blacked out when currentSkin was not yet initialized
+   selectionColor = guiApp.currentSkin ? SELECTION_COLOR : Color { 10, 36, 106 };
+   selectionText = guiApp.currentSkin ? SELECTION_TEXT : white;
 };