Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
Initialize the Browser Action and set some settings:
Browse files Browse the repository at this point in the history
- Badge color
- Higher resolution (vector) icon
- Badge displays '99+' when block count is > 99
- Shields are disabled for non-http(s) sites
- Default icon before a tab loads is the shields-on icon
  • Loading branch information
petemill committed Aug 26, 2018
1 parent 27c815c commit 64a8c88
Show file tree
Hide file tree
Showing 19 changed files with 105 additions and 16 deletions.
6 changes: 2 additions & 4 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ action("brave-extension") {
"$target_gen_dir/brave_extension/build/js/braveShieldsPanel.bundle.js",
"$target_gen_dir/brave_extension/build/braveShieldsPanel.html",
"$target_gen_dir/brave_extension/build/bravelizer.css",
"$target_gen_dir/brave_extension/build/img/icon-128.png",
"$target_gen_dir/brave_extension/build/img/icon-16.png",
"$target_gen_dir/brave_extension/build/img/icon-16-disabled.png",
"$target_gen_dir/brave_extension/build/img/icon-48.png",
"$target_gen_dir/brave_extension/build/img/icon.svg",
"$target_gen_dir/brave_extension/build/img/icon-off.svg",
"$target_gen_dir/brave_extension/build/_locales/en_US/messages.json",
]

Expand Down
11 changes: 11 additions & 0 deletions app/actions/runtimeActions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

import * as types from '../constants/runtimeActionTypes'

export function runtimeDidStartup () {
return {
type: types.RUNTIME_DID_STARTUP
}
}
Binary file removed app/assets/img/icon-128.png
Binary file not shown.
Binary file removed app/assets/img/icon-16-disabled.png
Binary file not shown.
Binary file removed app/assets/img/icon-16.png
Binary file not shown.
Binary file removed app/assets/img/icon-48.png
Binary file not shown.
7 changes: 7 additions & 0 deletions app/assets/img/icon-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 64a8c88

Please sign in to comment.