public HomeLayoutNinja() { _theme = new CustomTheme(); _chief = new Masterchief(); SetUpMainAndContainer(); SetUpHeader(); SetUpItems(); SetUpLatestProjects(); SetUpFooter(); }//HomeLayoutNinja()
public static void InitializeTheme() { string type = ReadThemeType(); _accent = ReadAccent(); if(type == Themes.LIGHT) { _theme = new LightTheme(_accent); _lastSavedAccent = _theme.GetAccentColor(); } else if(type == Themes.DARK) { _theme = new DarkTheme(_accent); _lastSavedAccent = _theme.GetAccentColor(); } else if(type == Themes.CUSTOM) { _theme = new CustomTheme(_accent); _lastSavedAccent = _theme.GetBackground(); } }//InitializeTheme()