From 833ec647e2c3c52b15b22e7781f1699583c0a85a Mon Sep 17 00:00:00 2001 From: Prasun Anand Date: Sat, 21 Dec 2024 15:22:24 +0530 Subject: [PATCH] nits --- ui/public/images/editor/java-icon.svg | 1 + ui/public/images/editor/unknown-file-icon.svg | 1 + ui/src/ide/IDE.scss | 13 +++++++++++++ ui/src/ide/sidebar/FileBrowser.tsx | 5 ++++- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 ui/public/images/editor/java-icon.svg create mode 100644 ui/public/images/editor/unknown-file-icon.svg diff --git a/ui/public/images/editor/java-icon.svg b/ui/public/images/editor/java-icon.svg new file mode 100644 index 0000000..69e0ad9 --- /dev/null +++ b/ui/public/images/editor/java-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/public/images/editor/unknown-file-icon.svg b/ui/public/images/editor/unknown-file-icon.svg new file mode 100644 index 0000000..6587f11 --- /dev/null +++ b/ui/public/images/editor/unknown-file-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/src/ide/IDE.scss b/ui/src/ide/IDE.scss index 985f314..8554fd3 100644 --- a/ui/src/ide/IDE.scss +++ b/ui/src/ide/IDE.scss @@ -85,6 +85,8 @@ a { .projectName{ background-color: #553b9e; } + + } $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24; @@ -170,6 +172,17 @@ $font-sizes: 8, 10, 12, 14, 16, 18, 20, 22, 24; .projectName{ background-color: #3f3855; } + .LauncherArea { + color: #ffffff; + } + + .editor-body .single-line { + background: #343434; + } + + .serial-no { + color: #ffffff; + } } .topBar { diff --git a/ui/src/ide/sidebar/FileBrowser.tsx b/ui/src/ide/sidebar/FileBrowser.tsx index e23223d..f973c7b 100644 --- a/ui/src/ide/sidebar/FileBrowser.tsx +++ b/ui/src/ide/sidebar/FileBrowser.tsx @@ -128,6 +128,8 @@ const FileItem = ( sum: './images/editor/go-icon.svg', py: './images/editor/py-icon.svg', ipynb: './images/editor/py-icon.svg', + java: './images/editor/java-icon.svg', + class: './images/editor/java-icon.svg', js: './images/editor/js-icon.svg', json: './images/editor/json-icon.svg', png: './images/editor/image-icon.svg', @@ -144,7 +146,8 @@ const FileItem = ( txt: './images/editor/txt-icon.svg', gitignore: './images/editor/git-icon.svg', }; - return extension != null ? iconMap[extension] : './images/editor/go-icon.svg'; + const icon = extension != null ? iconMap[extension] : './images/editor/unknown-file-icon.svg'; + return icon!= null ? icon : './images/editor/unknown-file-icon.svg'; }; const [isEditing, setIsEditing] = useState(false); const [contentName, setContentName] = useState(content.name);