Skip to content

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
  (Fix brave/brave-browser#844)
- Badge displays '99+' when block count is > 99
- Shields are disabled for non-http(s) sites
  (Fix brave/brave-browser#503)
- Default icon before a tab loads is the shields-on icon
- Set shields badge count for active tab only
  (Fix brave/brave-browser#743)

Address some features of brave/brave-browser#668
  • Loading branch information
petemill committed Aug 27, 2018
1 parent 27c815c commit b2511ea
Show file tree
Hide file tree
Showing 25 changed files with 145 additions and 38 deletions.
8 changes: 6 additions & 2 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ 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-32.png",
"$target_gen_dir/brave_extension/build/img/icon-48.png",
"$target_gen_dir/brave_extension/build/img/icon-64.png",
"$target_gen_dir/brave_extension/build/img/icon-128.png",
"$target_gen_dir/brave_extension/build/img/icon-256.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 modified app/assets/img/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/img/icon-16-disabled.png
Binary file not shown.
Binary file modified app/assets/img/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/img/icon-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/img/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/img/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/img/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 b2511ea

Please sign in to comment.