//Desc: Sets side panel buttons to match top panel color //Pre: array of buttons private void setSidePaneltoTopPanelColor(Button[] btn) { for(int i = 0; i<btn.Count(); i++) { if(sidepanelclosedon == "round") { btn[i].Background = getRoundTopPanelSolidColor(); } else if(sidepanelclosedon == "course") { btn[i].Background = getCourseTopPanelSolidColor(); } else if(sidepanelclosedon == "disc") { btn[i].Background = getDiscTopPanelSolidColor(); } else if(sidepanelclosedon == "stats") { btn[i].Background = getStatsTopPanelSolidColor(); } else { return; } } }
//Desc: sets side panel buttons to visible coresponding to top panel button pressed //Pre: array of buttons private void setSidePanelButtonsVisible(Button[] btns) { for(int i = 0; i<btns.Count(); i++) { btns[i].Visibility = Visibility.Visible; } }
//Desc: sets non clicked side panel buttons dark, sets pushed panel button light, sets page color to light, sets foregrounds //Pre: array of buttons, button private void setSidePanelButtons(Button[] darkBtns, Button lightBtn) { //sets pages to light backgroud color pageload3_f.Background = getCurrentTopPanelButtonSolidColor(); for (int i = 0; i < darkBtns.Count(); i++) { darkBtns[i].Background = getWindowButtonDarkColor(); darkBtns[i].Foreground = Brushes.Black; } lightBtn.Background = getCurrentTopPanelButtonSolidColor(); lightBtn.Foreground = Brushes.White; }
//Sets array of buttons generic //Pre: array of buttons private void setSidePanelButtonsGenericColor(Button[] btns) { for(int i = 0; i<btns.Count(); i++) { btns[i].Background = getWindowButtonGenericColor(); } }
//Descs: sets forground black //Pre: array of buttons private void setSidePanelButtonForegroundBlack(Button[] black) { for(int i = 0; i<black.Count(); i++) { black[i].Foreground = Brushes.Black; } }