Skip to content

Commit 5d0e787

Browse files
Merge pull request #205 from tareqimbasher/feat/user-styles
User can change appearance of application and editor
2 parents f61e973 + 005c417 commit 5d0e787

95 files changed

Lines changed: 1639 additions & 1066 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Apps/NetPad.Apps.App/App/package-lock.json

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Apps/NetPad.Apps.App/App/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"exceljs": "^4.3.0",
6060
"highlight.js": "^11.9.0",
6161
"monaco-editor": "^0.39.0",
62+
"monaco-themes": "^0.4.4",
6263
"path-browserify": "^1.0.1",
6364
"sanitize-html": "^2.12.1",
6465
"split.js": "^1.6.5"

src/Apps/NetPad.Apps.App/App/src/core/@application/context-menu/context-menu.scss

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
@import "~styles/themes";
2-
31
context-menu {
42
position: fixed;
53
z-index: 100001;
64
opacity: 0;
75
visibility: hidden;
8-
@include theme(background-color, contextMenuBackgroundColor);
6+
background: var(--context-menu-background);
97
border-radius: 2px;
108
min-width: 285px;
119
max-width: 600px;
@@ -14,15 +12,6 @@ context-menu {
1412
0 8px 10px 1px rgb(0 0 0 / 14%),
1513
0 3px 14px 2px rgb(0 0 0 / 12%),
1614
0 5px 5px -3px rgb(0 0 0 / 20%);
17-
box-shadow:
18-
0 8px 10px 1px rgb(0 0 0 / 14%),
19-
0 3px 14px 2px rgb(0 0 0 / 12%),
20-
0 5px 5px -3px rgb(0 0 0 / 20%);
21-
box-shadow:
22-
0 8px 10px 1px rgb(0 0 0 / 14%),
23-
0 3px 14px 2px rgb(0 0 0 / 12%),
24-
0 5px 5px -3px rgb(0 0 0 / 20%);
25-
transition: visibility 0.2s, opacity 0.2s linear;
2615
transition: visibility 0.2s, opacity 0.2s linear;
2716

2817
&.visible {
@@ -37,7 +26,7 @@ context-menu {
3726
padding: 2px 5px;
3827

3928
&:hover {
40-
@include theme(background-color, contextMenuItemBackgroundColor);
29+
background: var(--context-menu-item-hover-background);
4130
}
4231

4332
.item-container {
@@ -65,7 +54,6 @@ context-menu {
6554
}
6655

6756
hr {
68-
//padding: 0;
6957
margin: 3px 0;
7058
background-color: white;
7159
}

0 commit comments

Comments
 (0)