kblincoe / VisualGit_SE701_2019_1

1 stars 0 forks source link

Fixes #251 Clean up color.ts #295

Closed AbhinavBehal closed 5 years ago

AbhinavBehal commented 5 years ago

Related Issue/Keyword:

Closes #251

Description:

The color.ts file located in app/misc/ was previously very messy, containing large amounts of duplicated code and poorly named variables. I have reworked this design by separating each different theme into its own file, using a common interface ITheme. These themes can now be applied directly through the constants in theme.ts, and any new themes can be easily implemented by adding a new theme file.

Testing:

Steps for manual testing:

  1. Login to VisualGit
  2. Using the Style dropdown menu, select a different theme
  3. Ensure that all the themes can be applied to the application without any errors

Note: Some aspects of the UI aren't being themed properly, I suspect this might be due to the fact that these UI elements were added after the themes had been originally created. We should create a new issue to address these theming problems.

Checklist: