Skip to content

Commit

Permalink
fix(edgeless): modify blackground default value (#5856)
Browse files Browse the repository at this point in the history
  • Loading branch information
regischen authored Dec 26, 2023
1 parent b343d15 commit c17c158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ export class EdgelessToolbar extends WithDisposable(LitElement) {

const Content =
type === 'frameNavigator' ? this._FrameNavigator : this._DefaultContent;

return html`
<style>
.edgeless-toolbar-container {
Expand All @@ -633,6 +634,7 @@ export class EdgelessToolbar extends WithDisposable(LitElement) {
@dblclick=${stopPropagation}
@mousedown=${stopPropagation}
@pointerdown=${stopPropagation}
@mouseenter=${() => (this._mouseOnToolbar = true)}
@mouseleave=${() => (this._mouseOnToolbar = false)}
>
${Content}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class EdgelessNavigatorSettingButton extends WithDisposable(LitElement) {
`;

@state()
blackBackground = false;
blackBackground = true;

@property({ attribute: false })
popperShow = false;
Expand Down Expand Up @@ -77,7 +77,7 @@ export class EdgelessNavigatorSettingButton extends WithDisposable(LitElement) {
const blackBackground = sessionStorage.getItem(
PresentationConsts.BlackBackground
);
this.blackBackground = blackBackground === 'true';
this.blackBackground = blackBackground !== 'false';
}

private _onBlackBackgroundChange = (checked: boolean) => {
Expand Down

1 comment on commit c17c158

@vercel
Copy link

@vercel vercel bot commented on c17c158 Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blocksuite – ./packages/playground

try-blocksuite.vercel.app
blocksuite-git-master-toeverything.vercel.app
blocksuite-toeverything.vercel.app

Please sign in to comment.