Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions UnityRiftGUI/UnityRiftGUIForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3666,6 +3666,16 @@ private void ApplyTheme(bool dark)
previewPanel.BackColor = dark ? DarkContent : LightChrome;
FMODpanel.BackColor = dark ? DarkContent : LightChrome;

// The preview overlay labels (asset info + the FMOD audio player) are hardcoded
// white in the Designer for the dark preview background; that is unreadable on the
// light background, so theme their foreground to match the current mode.
foreach (var lbl in new Label[] { assetInfoLabel, FMODstatusLabel, FMODinfoLabel,
FMODtimerLabel, FMODaudioChannelsLabel, FMODcopyrightLabel })
{
if (lbl != null)
lbl.ForeColor = fore;
}

panel1.BackColor = chrome;
panel1.ForeColor = fore;

Expand Down
Loading