Skip to content

Commit dc84b38

Browse files
committed
feat: replace phoenix code support button with user profile button
1 parent 3a2db30 commit dc84b38

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/extensionsIntegrated/Phoenix/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ define(function (require, exports, module) {
3838
let $icon;
3939

4040
function _addToolbarIcon() {
41-
const helpButtonID = "help-button";
41+
const helpButtonID = "user-profile-button";
4242
$icon = $("<a>")
4343
.attr({
4444
id: helpButtonID,
4545
href: "#",
46-
class: "help",
47-
title: Strings.CMD_SUPPORT
46+
class: "user",
47+
title: Strings.CMD_USER_PROFILE
4848
})
4949
.appendTo($("#main-toolbar .bottom-buttons"));
5050
$icon.on('click', ()=>{
51-
Phoenix.app.openURLInDefaultBrowser(brackets.config.support_url);
51+
console.log("User profile button was clicked");
5252
});
5353
}
5454
function _showUnSupportedBrowserDialogue() {

src/nls/root/strings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ define({
626626
"CMD_AUTO_UPDATE": "Auto Update",
627627
"CMD_HOW_TO_USE_BRACKETS": "How to Use {APP_NAME}",
628628
"CMD_SUPPORT": "{APP_NAME} Support",
629+
"CMD_USER_PROFILE": "User Profile",
629630
"CMD_DOCS": "Help, Getting Started",
630631
"CMD_SUGGEST": "Suggest a Feature",
631632
"CMD_REPORT_ISSUE": "Report Issue",

src/styles/brackets.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@ a, img {
672672
background-image: url("images/discuss-icon.svg");
673673
}
674674

675+
.user {
676+
background-image: url("images/circle-user-solid.svg");
677+
}
678+
675679
#editor-holder {
676680
position: relative;
677681

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)