From 43e303886715d6115273cfba014a54805d3a1389 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquart Date: Mon, 21 Mar 2022 17:13:10 +0000 Subject: Add PVC Widget #5076 --- app/src/main/res/drawable/bg_graph_bar.xml | 20 ++ app/src/main/res/drawable/bg_widget.xml | 28 ++ app/src/main/res/drawable/dummy_img_map_picker.png | Bin 339121 -> 0 bytes .../main/res/drawable/dummy_leakage_analytics.png | Bin 25328 -> 0 bytes app/src/main/res/drawable/dummy_trackers_usage.png | Bin 16635 -> 0 bytes app/src/main/res/drawable/ic_quick_privacy_off.png | Bin 99093 -> 0 bytes app/src/main/res/drawable/ic_quick_privacy_on.png | Bin 90230 -> 0 bytes app/src/main/res/drawable/ic_settings.xml | 10 + app/src/main/res/drawable/ic_shield_off.xml | 18 +- app/src/main/res/drawable/ic_shield_on.xml | 22 +- app/src/main/res/drawable/ic_switch_disabled.xml | 8 + app/src/main/res/drawable/ic_switch_enabled.xml | 22 ++ app/src/main/res/layout/widget.xml | 391 +++++++++++++++++++++ app/src/main/res/values/colors.xml | 14 + app/src/main/res/values/strings.xml | 18 + app/src/main/res/xml/widget_info.xml | 27 ++ 16 files changed, 558 insertions(+), 20 deletions(-) create mode 100644 app/src/main/res/drawable/bg_graph_bar.xml create mode 100644 app/src/main/res/drawable/bg_widget.xml delete mode 100644 app/src/main/res/drawable/dummy_img_map_picker.png delete mode 100644 app/src/main/res/drawable/dummy_leakage_analytics.png delete mode 100644 app/src/main/res/drawable/dummy_trackers_usage.png delete mode 100644 app/src/main/res/drawable/ic_quick_privacy_off.png delete mode 100644 app/src/main/res/drawable/ic_quick_privacy_on.png create mode 100644 app/src/main/res/drawable/ic_settings.xml create mode 100644 app/src/main/res/drawable/ic_switch_disabled.xml create mode 100644 app/src/main/res/drawable/ic_switch_enabled.xml create mode 100644 app/src/main/res/layout/widget.xml create mode 100644 app/src/main/res/xml/widget_info.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/bg_graph_bar.xml b/app/src/main/res/drawable/bg_graph_bar.xml new file mode 100644 index 0000000..cdeae6e --- /dev/null +++ b/app/src/main/res/drawable/bg_graph_bar.xml @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/bg_widget.xml b/app/src/main/res/drawable/bg_widget.xml new file mode 100644 index 0000000..b0d91de --- /dev/null +++ b/app/src/main/res/drawable/bg_widget.xml @@ -0,0 +1,28 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/dummy_img_map_picker.png b/app/src/main/res/drawable/dummy_img_map_picker.png deleted file mode 100644 index c1cf32b..0000000 Binary files a/app/src/main/res/drawable/dummy_img_map_picker.png and /dev/null differ diff --git a/app/src/main/res/drawable/dummy_leakage_analytics.png b/app/src/main/res/drawable/dummy_leakage_analytics.png deleted file mode 100644 index 5379cd4..0000000 Binary files a/app/src/main/res/drawable/dummy_leakage_analytics.png and /dev/null differ diff --git a/app/src/main/res/drawable/dummy_trackers_usage.png b/app/src/main/res/drawable/dummy_trackers_usage.png deleted file mode 100644 index 9b7e090..0000000 Binary files a/app/src/main/res/drawable/dummy_trackers_usage.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_quick_privacy_off.png b/app/src/main/res/drawable/ic_quick_privacy_off.png deleted file mode 100644 index 90f1b04..0000000 Binary files a/app/src/main/res/drawable/ic_quick_privacy_off.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_quick_privacy_on.png b/app/src/main/res/drawable/ic_quick_privacy_on.png deleted file mode 100644 index 99f6719..0000000 Binary files a/app/src/main/res/drawable/ic_quick_privacy_on.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_settings.xml b/app/src/main/res/drawable/ic_settings.xml new file mode 100644 index 0000000..e68deb7 --- /dev/null +++ b/app/src/main/res/drawable/ic_settings.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_shield_off.xml b/app/src/main/res/drawable/ic_shield_off.xml index f3565d5..7c2fc8e 100644 --- a/app/src/main/res/drawable/ic_shield_off.xml +++ b/app/src/main/res/drawable/ic_shield_off.xml @@ -3,13 +3,13 @@ android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> - - + + diff --git a/app/src/main/res/drawable/ic_shield_on.xml b/app/src/main/res/drawable/ic_shield_on.xml index 39416ed..b70dc6e 100644 --- a/app/src/main/res/drawable/ic_shield_on.xml +++ b/app/src/main/res/drawable/ic_shield_on.xml @@ -3,15 +3,15 @@ android:height="25dp" android:viewportWidth="24" android:viewportHeight="25"> - - + + diff --git a/app/src/main/res/drawable/ic_switch_disabled.xml b/app/src/main/res/drawable/ic_switch_disabled.xml new file mode 100644 index 0000000..4158483 --- /dev/null +++ b/app/src/main/res/drawable/ic_switch_disabled.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/app/src/main/res/drawable/ic_switch_enabled.xml b/app/src/main/res/drawable/ic_switch_enabled.xml new file mode 100644 index 0000000..10e83f7 --- /dev/null +++ b/app/src/main/res/drawable/ic_switch_enabled.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/app/src/main/res/layout/widget.xml b/app/src/main/res/layout/widget.xml new file mode 100644 index 0000000..612221a --- /dev/null +++ b/app/src/main/res/layout/widget.xml @@ -0,0 +1,391 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index d867b74..2bf09cc 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -26,4 +26,18 @@ @lineageos.platform:color/color_default_blue1 #263238 #AADCFE + #FFE1F5FE + #FF81D4FA + #FF039BE5 + #FF01579B + + + + #DEFFFFFF + #BDFFFFFF + #FFFFFF + #61FFFFFF + + #33000000 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 30f017c..a0df574 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -113,4 +113,22 @@ Following trackers are in use Enable or disable this tracker for the following apps Tracker + EXAMPLE + Add widget + This is an app widget description + + + Extended privacy + Your online privacy is protected + Your online privacy is unprotected + @string/dashboard_state_trackers_label + @string/dashboard_state_trackers_off + @string/dashboard_state_trackers_on + @string/dashboard_state_geolocation_label + @string/dashboard_state_geolocation_off + @string/dashboard_state_geolocation_on + @string/dashboard_state_ipaddress_label + @string/dashboard_state_ipaddress_off + @string/dashboard_state_ipaddress_on + @string/dashboard_graph_trackers_legend \ No newline at end of file diff --git a/app/src/main/res/xml/widget_info.xml b/app/src/main/res/xml/widget_info.xml new file mode 100644 index 0000000..b20fd31 --- /dev/null +++ b/app/src/main/res/xml/widget_info.xml @@ -0,0 +1,27 @@ + + + + \ No newline at end of file -- cgit v1.2.1