{renderBackdrop(onClickBackdrop)}
-
diff --git a/frontend/app/theme.less b/frontend/app/theme.less
index 9398402a0..80208749c 100644
--- a/frontend/app/theme.less
+++ b/frontend/app/theme.less
@@ -69,7 +69,7 @@
// xterm-decoration-overview-ruler: 8
// xterm-decoration-top: 2
- /* modal colors */
+ // modal colors
--modal-bg-color: #232323;
--modal-header-bottom-border-color: rgba(241, 246, 243, 0.15);
--modal-border-color: rgba(255, 255, 255, 0.12); /* toggle colors */
@@ -78,15 +78,10 @@
--toggle-thumb-color: var(--main-text-color);
--toggle-checked-bg-color: var(--accent-color);
- /* link color */
+ // link color
--link-color: #58c142;
- /* button colors */
- --button-primary-color: #58c142;
- --button-focus-border-color: rgba(88, 193, 66, 0.8);
- --button-primary-text-color: #000000;
-
- /* form colors */
+ // form colors
--form-element-border-color: rgba(241, 246, 243, 0.15);
--form-element-bg-color: var(--main-bg-color);
--form-element-text-color: var(--main-text-color);
@@ -106,4 +101,45 @@
--conn-icon-color-8: #58c142;
--bulb-color: rgb(255, 221, 51);
+
+ // term colors (16 + 6) form the base terminal theme
+ // for consistency these colors should be used by plugins/applications
+ --term-black: #000000;
+ --term-red: #cc0000;
+ --term-green: #4e9a06;
+ --term-yellow: #c4a000;
+ --term-blue: #3465a4;
+ --term-magenta: #bc3fbc;
+ --term-cyan: #06989a;
+ --term-white: #d0d0d0;
+ --term-bright-black: #555753;
+ --term-bright-red: #ef2929;
+ --term-bright-green: #58c142;
+ --term-bright-yellow: #fce94f;
+ --term-bright-blue: #32afff;
+ --term-bright-magenta: #ad7fa8;
+ --term-bright-cyan: #34e2e2;
+ --term-bright-white: #e7e7e7;
+
+ --term-gray: #8b918a; // not an official terminal color
+ --term-cmdtext: #ffffff;
+ --term-foreground: #d3d7cf;
+ --term-background: #000000;
+ --term-selection-background: #ffffff60;
+ --term-cursor-accent: #000000;
+
+ // button colors
+ --button-focus-border-color: rgba(88, 193, 66, 0.5);
+ --button-green-text-color: var(--term-black);
+ --button-green-bg: var(--term-green);
+ --button-green-border-color: rgb(26, 52, 21);
+ --button-grey-text-color: var(--main-text-color);
+ --button-grey-bg: rgba(255, 255, 255, 0.04);
+ --button-grey-border-color: rgba(255, 255, 255, 0.1);
+ --button-red-text-color: var(--main-text-color);
+ --button-red-bg: var(--term-red);
+ --button-red-border-color: #ff1818;
+ --button-yellow-text-color: var(--term-black);
+ --button-yellow-bg: var(--term-yellow);
+ --button-yellow-border-color: #fbd93f;
}
diff --git a/frontend/app/view/preview/preview.tsx b/frontend/app/view/preview/preview.tsx
index d4eba1e46..0a504182c 100644
--- a/frontend/app/view/preview/preview.tsx
+++ b/frontend/app/view/preview/preview.tsx
@@ -289,9 +289,9 @@ export class PreviewModel implements ViewModel {
onClick: () => this.updateOpenFileModalAndError(true),
},
];
- let saveClassName = "secondary";
+ let saveClassName = "grey";
if (get(this.newFileContent) !== null) {
- saveClassName = "primary";
+ saveClassName = "green";
}
if (isCeView) {
viewTextChildren.push({
@@ -307,7 +307,7 @@ export class PreviewModel implements ViewModel {
elemtype: "textbutton",
text: "Preview",
className:
- "secondary border-radius-4 vertical-padding-2 horizontal-padding-10 font-size-11 font-weight-500",
+ "grey border-radius-4 vertical-padding-2 horizontal-padding-10 font-size-11 font-weight-500",
onClick: () => this.setEditMode(false),
});
}
@@ -316,7 +316,7 @@ export class PreviewModel implements ViewModel {
elemtype: "textbutton",
text: "Edit",
className:
- "secondary border-radius-4 vertical-padding-2 horizontal-padding-10 font-size-11 font-weight-500",
+ "grey border-radius-4 vertical-padding-2 horizontal-padding-10 font-size-11 font-weight-500",
onClick: () => this.setEditMode(true),
});
}