diff --git a/package.json b/package.json index b2ed4dabdd..3495b2a211 100644 --- a/package.json +++ b/package.json @@ -35,9 +35,9 @@ "forge": "./forge.config.js" }, "dependencies": { - "@blueprintjs/core": "^3.36.0", - "@blueprintjs/popover2": "^0.12.2", - "@blueprintjs/select": "^3.15.0", + "@blueprintjs/core": "^4.8.0", + "@blueprintjs/popover2": "^1.5.1", + "@blueprintjs/select": "^4.5.3", "@octokit/rest": "^16.43.1", "@sentry/electron": "^2.5.3", "@vertedinde/fiddle-core": "^1.0.3", diff --git a/src/less/blueprint.less b/src/less/blueprint.less index c0b9d29fd0..39219ba771 100644 --- a/src/less/blueprint.less +++ b/src/less/blueprint.less @@ -5,46 +5,46 @@ @import "~@blueprintjs/core/lib/less/variables.less"; // Override some of the colors -.fiddle.bp3-dark { - .bp3-menu, - .bp3-popover .bp3-popover-content { +.fiddle.bp4-dark { + .bp4-menu, + .bp4-popover2 .bp4-popover2-content { background-color: @background-1; } - .bp3-popover .bp3-popover-arrow-fill { + .bp4-popover2 .bp4-popover2-arrow-fill { fill: @background-1; } - .bp3-button:not([class*="bp3-intent-"]) { + .bp4-button:not([class*="bp4-intent-"]) { background-color: @background-1; } - .bp3-button.bp3-minimal { + .bp4-button.bp4-minimal { background-color: unset; } - .bp3-button:hover, - .bp3-button.bp3-minimal:hover { + .bp4-button:hover, + .bp4-button.bp4-minimal:hover { background-color: rgba(138, 155, 168, 0.15); } - .bp3-menu-item.bp3-active.bp3-intent-primary { + .bp4-menu-item.bp4-active.bp4-intent-primary { background-color: @foreground-3; } - .bp3-dialog { + .bp4-dialog { background-color: @background-4; - .bp3-dialog-header { + .bp4-dialog-header { background-color: @background-3; } } - .bp3-running-text { + .bp4-running-text { font-size: 14px; } - .bp3-alert-contents { + .bp4-alert-contents { width: 100%; } } diff --git a/src/less/components/commands.less b/src/less/components/commands.less index 7029d3e5ed..518814a6b5 100644 --- a/src/less/components/commands.less +++ b/src/less/components/commands.less @@ -10,8 +10,8 @@ header { display: flex; width: 100%; - .bp3-popover-target { - width: 100%; + .bp4-popover2-target { + width: 10%; } } @@ -58,13 +58,13 @@ header { &:last-of-type { margin-right: 10px; - .bp3-button-group { + .bp4-button-group { margin-left: 5px; } } } - .bp3-control-group { + .bp4-control-group { margin-right: 0.5rem; } diff --git a/src/less/components/dialogs.less b/src/less/components/dialogs.less index cee3b0f970..8520e372e2 100644 --- a/src/less/components/dialogs.less +++ b/src/less/components/dialogs.less @@ -178,11 +178,15 @@ } .dialog-add-version { - .bp3-file-input { + .dialog-bisect-popover .bp4-button-group { + display: block; + } + + .bp4-file-input { width: 100%; } - .bp3-callout { + .bp4-callout { margin-top: 1rem; } } diff --git a/src/less/components/settings.less b/src/less/components/settings.less index 8b9f502de5..f754515f0c 100644 --- a/src/less/components/settings.less +++ b/src/less/components/settings.less @@ -35,18 +35,18 @@ width: 250px; } - .bp3-input-group { + .bp4-input-group { margin-bottom: 15px; } - .bp3-divider { + .bp4-divider { margin-top: 1rem; margin-bottom: 1rem; margin-left: 0; margin-right: 0; } - .bp3-callout { + .bp4-callout { max-width: 850px; } @@ -55,6 +55,10 @@ .action { text-align: right; + + .bp4-popover2-target { + display: block; + } } } @@ -85,10 +89,6 @@ } } - .bp3-popover-target { - display: inherit; - } - .disabled-version { width: 100%; } diff --git a/src/less/components/show-me.less b/src/less/components/show-me.less index 09bd008729..a7ebba094b 100644 --- a/src/less/components/show-me.less +++ b/src/less/components/show-me.less @@ -6,7 +6,7 @@ margin-top: 0; }; - .bp3-callout { + .bp4-callout { margin-bottom: 10px; } } diff --git a/src/less/components/sidebar.less b/src/less/components/sidebar.less index c240ad0a12..66ad8146dc 100644 --- a/src/less/components/sidebar.less +++ b/src/less/components/sidebar.less @@ -5,15 +5,15 @@ font-size: 14px; } -.add-file-input .bp3-tree-node-label { +.add-file-input .bp4-tree-node-label { overflow: visible; } -.bp3-tree-node-caret-none { +.bp4-tree-node-caret-none { min-width: 8px; } -.bp3-tree-node-content-1 { +.bp4-tree-node-content-1 { padding-left: 0; } @@ -28,13 +28,13 @@ } .package-tree { - .bp3-tree-node-content { - .bp3-tree-node-secondary-label { + .bp4-tree-node-content { + .bp4-tree-node-secondary-label { min-width: 100px; } } - .bp3-tree-node-list { + .bp4-tree-node-list { margin: 5px 0; } } @@ -46,7 +46,7 @@ background: @background-1; color: @dark-gray1; - .bp3-dark & { + .bp4-dark & { color: @white; } } diff --git a/src/less/components/version-select.less b/src/less/components/version-select.less index d8d7cc0dac..c10fca699e 100644 --- a/src/less/components/version-select.less +++ b/src/less/components/version-select.less @@ -1,4 +1,4 @@ -.bp3-fill { +.bp4-fill { .version-chooser { width: 100%; } diff --git a/src/renderer/app.tsx b/src/renderer/app.tsx index 87d63e48ea..6e6264009a 100644 --- a/src/renderer/app.tsx +++ b/src/renderer/app.tsx @@ -221,9 +221,9 @@ export class App { } if (theme.isDark || theme.name.includes('dark')) { - document.body.classList.add('bp3-dark'); + document.body.classList.add('bp4-dark'); } else { - document.body.classList.remove('bp3-dark'); + document.body.classList.remove('bp4-dark'); } } diff --git a/src/renderer/components/commands-action-button.tsx b/src/renderer/components/commands-action-button.tsx index 6bd96a00e6..0ea5c26c1b 100644 --- a/src/renderer/components/commands-action-button.tsx +++ b/src/renderer/components/commands-action-button.tsx @@ -5,11 +5,10 @@ import { ButtonGroup, IToastProps, Menu, - MenuItem, - Popover, Position, Toaster, } from '@blueprintjs/core'; +import { MenuItem2, Popover2 } from '@blueprintjs/popover2'; import { clipboard } from 'electron'; import { when } from 'mobx'; import { observer } from 'mobx-react'; @@ -395,17 +394,17 @@ export const GistActionButton = observer( const menu = ( - this.setActionType(GistActionType.publish)} /> - this.setActionType(GistActionType.update)} /> - this.setActionType(GistActionType.delete)} @@ -414,9 +413,9 @@ export const GistActionButton = observer( ); return ( - +