Skip to content

Commit e9bd5bb

Browse files
committed
feat: added constants files for new-wireframe button
1 parent e592ee4 commit e9bd5bb

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const STATUS_BAR_PRIORITY = 100;
2+
export const ITEM_TEXT = '$(lightbulb) Quickmock';
3+
export const ITEM_TOOLTIP = 'Create new Quickmock wireframe';
4+
export const ITEM_COLOR = '#309a8a';

packages/vscode-extension/src/status-bar/new-wireframe/new-wireframe.status-bar.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { QUICKMOCK_NEW_WIREFRAME_COMMAND_ID } from '#commands';
22
import * as vscode from 'vscode';
3-
4-
const STATUS_BAR_PRIORITY = 100;
3+
import {
4+
ITEM_COLOR,
5+
ITEM_TEXT,
6+
ITEM_TOOLTIP,
7+
STATUS_BAR_PRIORITY,
8+
} from './new-wireframe.consts';
59

610
export const registerNewWireframeStatusBarItem = (
711
context: vscode.ExtensionContext
@@ -10,9 +14,9 @@ export const registerNewWireframeStatusBarItem = (
1014
vscode.StatusBarAlignment.Left,
1115
STATUS_BAR_PRIORITY
1216
);
13-
item.text = '$(lightbulb) Quickmock';
14-
item.tooltip = 'Create new Quickmock wireframe';
15-
item.color = '#309a8a';
17+
item.text = ITEM_TEXT;
18+
item.tooltip = ITEM_TOOLTIP;
19+
item.color = ITEM_COLOR;
1620
item.command = QUICKMOCK_NEW_WIREFRAME_COMMAND_ID;
1721
item.show();
1822

0 commit comments

Comments
 (0)