Skip to content

Commit

Permalink
fix: IThemeManager#getThemeForScope return type ITokenProvider to ITheme
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jun 9, 2023
1 parent 6f782d4 commit 7f44dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public IThemeAssociation[] getAllThemeAssociations() {
}

@Override
public ITokenProvider getThemeForScope(final String scopeName, final RGB background) {
public ITheme getThemeForScope(final String scopeName, final RGB background) {
return getThemeForScope(scopeName, 0.299 * background.red
+ 0.587 * background.green
+ 0.114 * background.blue < 128);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ public interface IThemeManager {
*
* @return the theme that will fit best for the defined background color
*/
ITokenProvider getThemeForScope(String scopeName, RGB background);
ITheme getThemeForScope(String scopeName, RGB background);
}

0 comments on commit 7f44dd8

Please sign in to comment.