Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions src/themes/ThonnyDefaultLight.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { ITheme } from "./ITheme";

// Matches the thonny theme defined here:
// https://github.com/thonny/thonny/blob/4fffa98e5c47e58ce72190c004f2ebc00879e4cd/thonny/plugins/base_syntax_themes.py#L5
export const ThonnyDefaultLight: ITheme = {
DisplayName: 'Thonny Default Light',
CodeStyles: {
Keyword: {
Color: '7f0055',
FontWeight: 'bold'
},
Comment: {
Color: 'a9a9a9'
},
Plaintext: {
Color: '000000'
},
Punctuation: {
Color: '000000'
},
String: {
Color: '006400'
},
Literal: {
Color: 'b04600'
},
Type: {
Color: '7f0055'
}
},
BackgroundStyle: {},
LineNumberStyle: {
Background: 'none'
}
};
4 changes: 3 additions & 1 deletion src/themes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { AtelierCaveLight } from './AtelierCaveLight';
import { AtelierCaveDark } from './AtelierCaveDark';
import { BlueHintGray } from './BlueHintGray';
import { ChatGPTDark } from './ChatGPTDark';
import { ThonnyDefaultLight } from './ThonnyDefaultLight';

type ThemeDictionary = { [key: string]: ITheme };

Expand Down Expand Up @@ -43,7 +44,8 @@ export const Themes: ThemeDictionary = {
AtelierCaveLight,
AtelierCaveDark,
BlueHintGray,
ChatGPTDark
ChatGPTDark,
ThonnyDefaultLight,
}

export function GetLineNumberStyle(theme: string) {
Expand Down