Skip to content

Commit b2511ea

Browse files
committed
Initialize the Browser Action and set some settings:
- 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
1 parent 27c815c commit b2511ea

25 files changed

+145
-38
lines changed

BUILD.gn

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ action("brave-extension") {
1717
"$target_gen_dir/brave_extension/build/js/braveShieldsPanel.bundle.js",
1818
"$target_gen_dir/brave_extension/build/braveShieldsPanel.html",
1919
"$target_gen_dir/brave_extension/build/bravelizer.css",
20-
"$target_gen_dir/brave_extension/build/img/icon-128.png",
2120
"$target_gen_dir/brave_extension/build/img/icon-16.png",
22-
"$target_gen_dir/brave_extension/build/img/icon-16-disabled.png",
21+
"$target_gen_dir/brave_extension/build/img/icon-32.png",
2322
"$target_gen_dir/brave_extension/build/img/icon-48.png",
23+
"$target_gen_dir/brave_extension/build/img/icon-64.png",
24+
"$target_gen_dir/brave_extension/build/img/icon-128.png",
25+
"$target_gen_dir/brave_extension/build/img/icon-256.png",
26+
"$target_gen_dir/brave_extension/build/img/icon.svg",
27+
"$target_gen_dir/brave_extension/build/img/icon-off.svg",
2428
"$target_gen_dir/brave_extension/build/_locales/en_US/messages.json",
2529
]
2630

app/actions/runtimeActions.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
3+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
import * as types from '../constants/runtimeActionTypes'
6+
7+
export function runtimeDidStartup () {
8+
return {
9+
type: types.RUNTIME_DID_STARTUP
10+
}
11+
}

app/assets/img/icon-128.png

-8.64 KB
Loading

app/assets/img/icon-16-disabled.png

-872 Bytes
Binary file not shown.

app/assets/img/icon-16.png

-1.3 KB
Loading

app/assets/img/icon-256.png

15.6 KB
Loading

app/assets/img/icon-32.png

1.63 KB
Loading

app/assets/img/icon-48.png

-2.85 KB
Loading

app/assets/img/icon-64.png

3.59 KB
Loading

app/assets/img/icon-off.svg

+7
Loading

0 commit comments

Comments
 (0)