Merge branch 'master' into dragbarfix

pull/2791/head
bunsenstraat 2 years ago committed by GitHub
commit 65baac76e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/remix-ide/src/app/tabs/theme-module.js
  2. 4
      apps/remix-ide/src/assets/css/themes/remix-black_undtds.css
  3. 71
      apps/remix-ide/src/assets/css/themes/remix-hacker_owl.css
  4. 10
      libs/remix-ui/workspace/src/lib/components/file-render.tsx

@ -8,10 +8,11 @@ const _paq = window._paq = window._paq || []
const themes = [ const themes = [
{ name: 'Dark', quality: 'dark', url: 'assets/css/themes/remix-dark_tvx1s2.css' }, { name: 'Dark', quality: 'dark', url: 'assets/css/themes/remix-dark_tvx1s2.css' },
{ name: 'Light', quality: 'light', url: 'assets/css/themes/remix-light_powaqg.css' }, { name: 'Light', quality: 'light', url: 'assets/css/themes/remix-light_powaqg.css' },
{ name: 'HackerOwl', quality: 'dark', url: 'assets/css/themes/remix-hacker_owl.css' },
{ name: 'Midcentury', quality: 'light', url: 'assets/css/themes/remix-midcentury_hrzph3.css' }, { name: 'Midcentury', quality: 'light', url: 'assets/css/themes/remix-midcentury_hrzph3.css' },
{ name: 'Black', quality: 'dark', url: 'assets/css/themes/remix-black_undtds.css' }, { name: 'Black', quality: 'dark', url: 'assets/css/themes/remix-black_undtds.css' },
{ name: 'Candy', quality: 'light', url: 'assets/css/themes/remix-candy_ikhg4m.css' }, { name: 'Candy', quality: 'light', url: 'assets/css/themes/remix-candy_ikhg4m.css' },
{ name: 'HackerOwl', quality: 'dark', url: 'assets/css/themes/remix-hacker_owl.css' },
{ name: 'Cerulean', quality: 'light', url: 'assets/css/themes/bootstrap-cerulean.min.css' }, { name: 'Cerulean', quality: 'light', url: 'assets/css/themes/bootstrap-cerulean.min.css' },
{ name: 'Flatly', quality: 'light', url: 'assets/css/themes/bootstrap-flatly.min.css' }, { name: 'Flatly', quality: 'light', url: 'assets/css/themes/bootstrap-flatly.min.css' },
{ name: 'Spacelab', quality: 'light', url: 'assets/css/themes/bootstrap-spacelab.min.css' }, { name: 'Spacelab', quality: 'light', url: 'assets/css/themes/bootstrap-spacelab.min.css' },

@ -7,7 +7,7 @@
--red: #823a3a; --red: #823a3a;
--orange: #e46b15; --orange: #e46b15;
--yellow: #ffc107; --yellow: #ffc107;
--green: #065337; --green: #1ea171;
--teal: #20c997; --teal: #20c997;
--cyan: #053c64; --cyan: #053c64;
--white: #d5d5d5; --white: #d5d5d5;
@ -15,7 +15,7 @@
--gray-dark: #343a40; --gray-dark: #343a40;
--primary: #b5b4bc; --primary: #b5b4bc;
--secondary: #3d3e44; --secondary: #3d3e44;
--success: #366a57; --success: #6bceaa;
--info: #086CB5; --info: #086CB5;
--warning: #c26829; --warning: #c26829;
--danger: #823a3a; --danger: #823a3a;

@ -8,7 +8,7 @@
--red: #b84040; --red: #b84040;
--orange: #E5D17D; --orange: #E5D17D;
--yellow: #ffc107; --yellow: #ffc107;
--green: #C4E07F; --green: #87e07f;
--teal: #20c997; --teal: #20c997;
--cyan: #355f7d; --cyan: #355f7d;
--white: #fff; --white: #fff;
@ -21,7 +21,11 @@
--warning: #c97539; --warning: #c97539;
--danger: #b84040; --danger: #b84040;
--light: #011C32; --light: #011C32;
--dark: #fff4fd; // light purple --dark: #fff4fd;
--text: #babbcc;
--body-bg: #011628;
--custom-select: #252525;
--text-bg-mark: #a5a5a5;
--custom-select: #011627; --custom-select: #011627;
--text-background: #011626; --text-background: #011626;
--breakpoint-xs: 0; --breakpoint-xs: 0;
@ -33,21 +37,12 @@
--theme-divider-color: #04101ad4; --theme-divider-color: #04101ad4;
--theme-foreground-gray: #4b6479; --theme-foreground-gray: #4b6479;
--theme-foreground-comment: #637777; --theme-foreground-comment: #637777;
--theme-foreground-alpha-1: #ffffffce;
--theme-background-input: #0a1b28a3; --theme-background-input: #0a1b28a3;
--theme-background: #011627; --theme-background: #011627;
--theme-background-panels: #011628;
--theme-bg-btn-secondary: #011C32;
--theme-bg-btn-dark--hover: #033863; --theme-bg-btn-dark--hover: #033863;
--theme-border-tab: 1px solid #274052; --theme-border-tab: 1px solid #274052;
--theme-border-default: 1px solid #07121ca6; --theme-border-default: 1px solid #07121ca6;
--theme-form-placeholder: #dfe1ea; // replace var(--theme-form-placeholder) --theme-form-placeholder: #dfe1ea;
--theme-ace-identifier: #ffcb8bcc;
--theme-ace-operator: #ffcb8b;
--theme-ace-symbols: #7fdbca;
--theme-ace-keyword: #c792ea;
--font-family-sans-serif: "Saira", -apple-system, BlinkMacSystemFont, --font-family-sans-serif: "Saira", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
@ -89,9 +84,9 @@ body {
font-kerning: normal; font-kerning: normal;
font-weight: 400; font-weight: 400;
line-height: 1.5; line-height: 1.5;
color: #87A2B7; // #ccd9e6 color: #87A2B7;
text-align: left; text-align: left;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
} }
*::-webkit-scrollbar { *::-webkit-scrollbar {
width: 8px; width: 8px;
@ -473,7 +468,7 @@ mark {
} }
.img-thumbnail { .img-thumbnail {
padding: 0.25rem; padding: 0.25rem;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: 2px; border-radius: 2px;
max-width: 100%; max-width: 100%;
@ -1389,7 +1384,7 @@ pre code {
border: 0; border: 0;
} }
.table-striped tbody tr:nth-of-type(odd) { .table-striped tbody tr:nth-of-type(odd) {
background-color: var(--theme-background-panels); background-color: var(--body-bg);
} }
.table-hover tbody tr:hover { .table-hover tbody tr:hover {
color: #fff; color: #fff;
@ -1558,7 +1553,7 @@ pre code {
} }
.table .thead-light th { .table .thead-light th {
color: #fff; color: #fff;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
border-color: #51536b; border-color: #51536b;
} }
.table-dark { .table-dark {
@ -2186,7 +2181,7 @@ fieldset:disabled a.btn {
} }
.btn-secondary { .btn-secondary {
color: #fff; color: #fff;
background-color: var(--theme-bg-btn-secondary); background-color: var(--light);
border-color: #284053; border-color: #284053;
} }
.btn-secondary:hover { .btn-secondary:hover {
@ -2378,8 +2373,8 @@ fieldset:disabled a.btn {
} }
.btn-dark { .btn-dark {
color: #fff; color: #fff;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
border-color: var(--theme-background-panels); border-color: var(--body-bg);
} }
.btn-dark:hover { .btn-dark:hover {
color: #fff; color: #fff;
@ -2393,8 +2388,8 @@ fieldset:disabled a.btn {
.btn-dark.disabled, .btn-dark.disabled,
.btn-dark:disabled { .btn-dark:disabled {
color: #fff; color: #fff;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
border-color: var(--theme-background-panels); border-color: var(--body-bg);
} }
.btn-dark:not(:disabled):not(.disabled).active, .btn-dark:not(:disabled):not(.disabled).active,
.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled):active,
@ -2619,13 +2614,13 @@ fieldset:disabled a.btn {
box-shadow: 0 0 0 0.2rem rgba(42, 44, 63, 0.5); box-shadow: 0 0 0 0.2rem rgba(42, 44, 63, 0.5);
} }
.btn-outline-dark { .btn-outline-dark {
color: var(--theme-background-panels); color: var(--body-bg);
border-color: var(--theme-background-panels); border-color: var(--body-bg);
} }
.btn-outline-dark:hover { .btn-outline-dark:hover {
color: #fff; color: #fff;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
border-color: var(--theme-background-panels); border-color: var(--body-bg);
} }
.btn-outline-dark.focus, .btn-outline-dark.focus,
.btn-outline-dark:focus { .btn-outline-dark:focus {
@ -2633,15 +2628,15 @@ fieldset:disabled a.btn {
} }
.btn-outline-dark.disabled, .btn-outline-dark.disabled,
.btn-outline-dark:disabled { .btn-outline-dark:disabled {
color: var(--theme-background-panels); color: var(--body-bg);
background-color: transparent; background-color: transparent;
} }
.btn-outline-dark:not(:disabled):not(.disabled).active, .btn-outline-dark:not(:disabled):not(.disabled).active,
.btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled):active,
.show > .btn-outline-dark.dropdown-toggle { .show > .btn-outline-dark.dropdown-toggle {
color: #fff; color: #fff;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
border-color: var(--theme-background-panels); border-color: var(--body-bg);
} }
.btn-outline-dark:not(:disabled):not(.disabled).active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus,
.btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled):active:focus,
@ -3480,15 +3475,15 @@ input[type="submit"].btn-block {
outline: 0; outline: 0;
} }
.custom-range:focus::-webkit-slider-thumb { .custom-range:focus::-webkit-slider-thumb {
box-shadow: 0 0 0 1px var(--theme-background-panels), inset 0 1px 1px rgba(0, 0, 0, 0.075), box-shadow: 0 0 0 1px var(--body-bg), inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 0 3px rgba(0, 122, 166, 0.25); 0 0 0 3px rgba(0, 122, 166, 0.25);
} }
.custom-range:focus::-moz-range-thumb { .custom-range:focus::-moz-range-thumb {
box-shadow: 0 0 0 1px var(--theme-background-panels), inset 0 1px 1px rgba(0, 0, 0, 0.075), box-shadow: 0 0 0 1px var(--body-bg), inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 0 3px rgba(0, 122, 166, 0.25); 0 0 0 3px rgba(0, 122, 166, 0.25);
} }
.custom-range:focus::-ms-thumb { .custom-range:focus::-ms-thumb {
box-shadow: 0 0 0 1px var(--theme-background-panels), inset 0 1px 1px rgba(0, 0, 0, 0.075), box-shadow: 0 0 0 1px var(--body-bg), inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 0 3px rgba(0, 122, 166, 0.25); 0 0 0 3px rgba(0, 122, 166, 0.25);
} }
.custom-range::-moz-focus-outer { .custom-range::-moz-focus-outer {
@ -3657,7 +3652,7 @@ input[type="submit"].btn-block {
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active { .nav-tabs .nav-link.active {
color: #fff; color: #fff;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
border-color: var(--theme-divider-color); border-color: var(--theme-divider-color);
} }
.nav-tabs .dropdown-menu { .nav-tabs .dropdown-menu {
@ -4443,7 +4438,7 @@ a.badge-light:focus {
} }
.badge-dark { .badge-dark {
color: #fff; color: #fff;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
} }
a.badge-dark:focus, a.badge-dark:focus,
a.badge-dark:hover { a.badge-dark:hover {
@ -5060,7 +5055,7 @@ a.close.disabled {
width: 100%; width: 100%;
color: #fff; color: #fff;
posaira-events: auto; posaira-events: auto;
background-color: var(--theme-background-panels); background-color: var(--body-bg);
background-clip: padding-box; background-clip: padding-box;
border: 1px solid #2c3244; border: 1px solid #2c3244;
border-radius: 2px; border-radius: 2px;
@ -5711,7 +5706,7 @@ button.bg-light:hover {
background-color: #161720 !important; background-color: #161720 !important;
} }
.bg-dark { .bg-dark {
background-color: var(--theme-background-panels) !important; background-color: var(--body-bg) !important;
} }
a.bg-dark:focus, a.bg-dark:focus,
a.bg-dark:hover, a.bg-dark:hover,
@ -8738,13 +8733,13 @@ a.text-dark:hover {
background: var(--text-background); background: var(--text-background);
} }
.plugins-header { .plugins-header {
background-color: var(--theme-background-panels) !important; background-color: var(--body-bg) !important;
border-bottom: 1px solid #2C3244 !important; border-bottom: 1px solid #2C3244 !important;
} }
.plugins-list-header { .plugins-list-header {
justify-content: flex-start !important; justify-content: flex-start !important;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
background-color: var(--theme-background-panels) !important background-color: var(--body-bg) !important
} }
.plugins-list-title { .plugins-list-title {
margin: 0 0.5rem 0 0 !important; margin: 0 0.5rem 0 0 !important;

@ -83,12 +83,12 @@ export const FileRender = (props: RenderFileProps) => {
iconY='pr-3 fa fa-folder-open' iconY='pr-3 fa fa-folder-open'
key={`${file.path + props.index}`} key={`${file.path + props.index}`}
label={<> label={<>
<div className="d-flex flex-row"> <Draggable isDraggable={props.focusEdit.element !== null} file={file} expandedPath={props.expandPath} handleClickFolder={props.handleClickFolder}>
<Draggable isDraggable={props.focusEdit.element !== null} file={file} expandedPath={props.expandPath} handleClickFolder={props.handleClickFolder}> <div className="d-flex flex-row">
<FileLabel fileDecorations={props.fileDecorations} file={file} focusEdit={props.focusEdit} editModeOff={props.editModeOff} /> <FileLabel fileDecorations={props.fileDecorations} file={file} focusEdit={props.focusEdit} editModeOff={props.editModeOff} />
</Draggable> <FileDecorationIcons file={file} fileDecorations={props.fileDecorations} />
<FileDecorationIcons file={file} fileDecorations={props.fileDecorations} /> </div>
</div> </Draggable>
</>} </>}
onClick={handleFolderClick} onClick={handleFolderClick}
onContextMenu={handleContextMenu} onContextMenu={handleContextMenu}

Loading…
Cancel
Save