Skip to content

Commit 9601119

Browse files
authored
Merge pull request #47 from tmr232/jetbrains-settings
Jetbrains: Allow changing settings
2 parents c9df1e4 + eb2458c commit 9601119

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- The JetBrains plugin can now change settings: flat switch, simplification, highlighting, and color scheme
12+
913
## [0.0.12] - 2024-12-18
1014

1115
### Added

src/jetbrains/src/App.svelte

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,23 @@
6363
return;
6464
}
6565
};
66+
67+
let simplify = true;
68+
let flatSwitch = false;
69+
let highlight = true;
70+
window.setSimplify = (flag: boolean) => (simplify = flag);
71+
window.setFlatSwitch = (flag: boolean) => (flatSwitch = flag);
72+
window.setHighlight = (flag: boolean) => (highlight = flag);
6673
</script>
6774

6875
<main>
6976
<Jetbrains
7077
{codeAndOffset}
7178
bind:this={display}
7279
{colorList}
80+
{simplify}
81+
{flatSwitch}
82+
{highlight}
7383
on:node-clicked={navigateTo}
7484
/>
7585
</main>

0 commit comments

Comments
 (0)