38d9e404e8eb0b7fc98e76da24fbe1db71836b9fb0f8c1d4cecb8f7aeafa62f1326ecb41225b907d7daa5c213c4736f1747b15541cc4ead68d000c1f3613fe 676 B

123456789101112131415161718192021
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. export class EditorTheme {
  6. constructor(theme) {
  7. this._theme = theme;
  8. }
  9. get type() {
  10. return this._theme.type;
  11. }
  12. get value() {
  13. return this._theme;
  14. }
  15. update(theme) {
  16. this._theme = theme;
  17. }
  18. getColor(color) {
  19. return this._theme.getColor(color);
  20. }
  21. }