Skip to content

Commit 5656b1a

Browse files
committed
changed menu item svg's to png's
1 parent 1efe650 commit 5656b1a

16 files changed

+15
-13
lines changed

src/RichTextMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export default class RichTextMenu extends React.Component<{view: EditorView,
173173
componentDidMount() {
174174

175175
if (!this.props.view || this.props.model.metadata.get("markdownMode") === true) {
176-
this.setState({inactiveMarks: ["strong", "em", "underline", "strikethrough", "heading", "bullet_list", "ordered_list", "blockquote", "code", "link", "image", "stick"]});
176+
this.setState({inactiveMarks: ["strong", "em", "underline", "strikethrough", "heading", "bullet_list", "ordered_list", "blockquote", "code", "link", "image"]});
177177
}
178178

179179
}

src/menuitem.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,29 +58,29 @@ export default class MenuItem extends React.Component<{format: string, active: b
5858
getImgSrc() {
5959
switch (this.props.format) {
6060
case "strong":
61-
return require("../static/scribe-format-bold.svg");
61+
return require("../static/scribe-format-bold.png");
6262
case "em":
63-
return require("../static/scribe-format-italic.svg");
63+
return require("../static/scribe-format-italic.png");
6464
case "underline":
65-
return require("../static/scribe-format-underline.svg");
65+
return require("../static/scribe-format-underline.png");
6666
case "code":
67-
return require("../static/scribe-format-code.svg");
67+
return require("../static/scribe-format-code.png");
6868
case "strikethrough":
69-
return require("../static/scribe-format-strikethrough.svg");
69+
return require("../static/scribe-format-strikethrough.png");
7070
case "heading":
71-
return require("../static/scribe-format-text-style.svg");
71+
return require("../static/scribe-format-text-style.png");
7272
case "bullet_list":
73-
return require("../static/scribe-format-list-bulleted.svg");
73+
return require("../static/scribe-format-list-bulleted.png");
7474
case "ordered_list":
75-
return require("../static/scribe-format-list-numbered.svg");
75+
return require("../static/scribe-format-list-numbered.png");
7676
case "blockquote":
77-
return require("../static/scribe-format-blockquote.svg");
77+
return require("../static/scribe-format-blockquote.png");
7878
case "link":
79-
return require("../static/scribe-format-link.svg");
79+
return require("../static/scribe-format-link.png");
8080
case "image":
81-
return require("../static/scribe-format-photo.svg");
81+
return require("../static/scribe-format-photo.png");
8282
case "stick":
83-
return require("../static/scribe-stick.svg");
83+
return require("../static/scribe-stick.png");
8484
default:
8585
break;
8686
}
@@ -152,6 +152,7 @@ export default class MenuItem extends React.Component<{format: string, active: b
152152
// alt="formatting"
153153
id={this.props.format}
154154
src={this.getImgSrc()}
155+
style={{height: "24px", width: "24px"}}
155156
className="inactive-menu-icon"
156157
title={this.props.tooltip}
157158
/>
@@ -166,6 +167,7 @@ export default class MenuItem extends React.Component<{format: string, active: b
166167
className={this.getClassName()}
167168
src={this.getImgSrc()}
168169
title={this.props.tooltip}
170+
style={{height: "24px", width: "24px"}}
169171
onClick={this.props.format !== "stick" ? this.props.handleClick : () => null} />
170172
)
171173
}

static/scribe-checkmark.png

224 Bytes
Loading

static/scribe-format-blockquote.png

131 Bytes
Loading

static/scribe-format-bold.png

261 Bytes
Loading

static/scribe-format-code.png

257 Bytes
Loading

static/scribe-format-italic.png

201 Bytes
Loading

static/scribe-format-link-off.png

476 Bytes
Loading

static/scribe-format-link.png

340 Bytes
Loading
165 Bytes
Loading

0 commit comments

Comments
 (0)