e
mellobacon committed
Dec 12, 2022 at 21:31 UTC
f5b6b94635513cbea2d291df840b71616f528b38
2 files changed
+7
-3
src/components/Editor/CodeMirrorEditor.svelte
-1
@@ -8,7 +8,6 @@
8
import { file_language, file_linefeed, line_info } from "./scripts/Editor";
9
import { fs } from "@tauri-apps/api";
10
import settings from "../../config/nucleus-settings.json";
11
- import { addNotification, NotifType } from "../Notifications/Notifications";
11
import { executeEditorShortcut } from "../../config/config";
12
13
const shortcuts = Object.entries(settings.shortcuts);
src/components/Footer/Footer.svelte
+7
-2
@@ -1,5 +1,5 @@
1
<script lang="ts">
2
- import { Terminal } from "carbon-icons-svelte"
2
+ import { Locked, Notification, Terminal, Unlocked } from "carbon-icons-svelte"
3
import { isfile } from "../Tabs/scripts/Tab";
4
import { invoke } from "@tauri-apps/api/tauri";
5
import { homeDir } from '@tauri-apps/api/path';
@@ -58,6 +58,7 @@
58
</span>
59
{#each tools as tool}
60
<span class="tool" class:updated={$unreadnotifications}>
61
+ <Notification></Notification>
62
<!-- svelte-ignore a11y-click-events-have-key-events -->
63
<span class="toolname" on:click={() => {togglePanel(tool)}}>{tool.name}</span>
64
<span class="notification"></span>
@@ -66,6 +67,10 @@
67
</div>
68
{#if $isfile}
69
<div id="codeinfo">
70
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
71
+ <span title="Readonly toggle">
72
+ <Unlocked></Unlocked>
73
+ </span>
74
<span title="End of Line Sequence">{$file_linefeed}</span>
75
<span>{$line_info.line} : {$line_info.col}</span>
76
<!-- svelte-ignore a11y-click-events-have-key-events -->
@@ -141,7 +146,7 @@
146
.toolname {
147
margin-left: 5px;
148
}
144
- :global(#tools span svg) {
149
+ :global(#tools span svg), :global(#codeinfo span svg) {
150
width: 18px;
151
height: 18px;
152
}