Skip to content

Commit 0b275b2

Browse files
committed
added 'hc-light' theme option to available editor themes
1 parent 04cbc19 commit 0b275b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

flaskcode/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""".format(app_title=default_config.FLASKCODE_APP_TITLE)
1616

1717

18-
themes = ['vs', 'vs-dark', 'hc-black']
18+
themes = ['vs', 'vs-dark', 'hc-black', 'hc-light']
1919

2020

2121
def add_auth(blueprint, username, password, realm=default_config.FLASKCODE_APP_TITLE):

flaskcode/static/js/flaskcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ flaskcode.editorStates = {
3333
};
3434

3535
flaskcode.defaultEditorTheme = 'vs-dark';
36-
flaskcode.availableEditorThemes = ['vs', 'vs-dark', 'hc-black'];
36+
flaskcode.availableEditorThemes = ['vs', 'vs-dark', 'hc-black', 'hc-light'];
3737

3838
flaskcode.APP_BUSY = false;
3939

flaskcode/templates/flaskcode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h4 class="modal-title" id="fileNameModalLabel">Create New File</h4>
6767
</span>
6868
</div>
6969
<!-- Editor Widget -->
70-
<div id="editor-container" class="editor-container{% if editor_theme == 'vs' %} light-theme{% endif %}">
70+
<div id="editor-container" class="editor-container{% if editor_theme in ['vs', 'hc-light'] %} light-theme{% endif %}">
7171
<div class="editor-preloader" style="display:none;">
7272
<div class="loading-center">
7373
<div class="loading-center-absolute">Requesting...</div>

0 commit comments

Comments
 (0)