Skip to content

Commit

Permalink
feat: support readonly property ThemeColor id (#14437)
Browse files Browse the repository at this point in the history
fix #14404

contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <[email protected]>
  • Loading branch information
rschnekenbu authored Nov 14, 2024
1 parent d769658 commit 017e12e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

<!-- ## 1.56.0 - not yet released -->

- [plugin] added support for ThemeColor property id [#14437](https://github.com/eclipse-theia/theia/pull/14437) - Contributed on behalf of STMicroelectronics

## 1.55.0 - 10/31/2024

- [ai] added logic to allow to order and clear AI History view [#14233](https://github.com/eclipse-theia/theia/pull/14233)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/common/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface ThemeChangeEvent {
}

export interface ThemeColor {
id: string;
readonly id: string;
}

export interface ThemeIcon {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/plugin/types-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ export class SnippetString {

@es5ClassCompat
export class ThemeColor {
constructor(public id: string) { }
constructor(public readonly id: string) { }
}

@es5ClassCompat
Expand Down
5 changes: 5 additions & 0 deletions packages/plugin/src/theia.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,11 @@ export module '@theia/plugin' {
* Using a theme color is preferred over a custom color as it gives theme authors and users the possibility to change the color.
*/
export class ThemeColor {
/**
* The id of this color.
*/
readonly id: string;

/**
* Creates a reference to a theme color.
*/
Expand Down

0 comments on commit 017e12e

Please sign in to comment.