Skip to content

Commit

Permalink
Merge pull request #2201 from dgcampbe/breezy-weather
Browse files Browse the repository at this point in the history
Initial attempt to add breezy weather support to the main app.
  • Loading branch information
Donnnno authored Jul 27, 2024
2 parents 02bb1e0 + 587ae68 commit eb55c19
Show file tree
Hide file tree
Showing 55 changed files with 1,817 additions and 25 deletions.
11 changes: 8 additions & 3 deletions app/src/black/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
<color name="splashColor">#f1f1f1</color>

<!-- Shortcut Icons -->
<color name="shortcutIconBackground">#FFF</color>
<color name="shortcutIconForeground">#000000</color>
<color name="shortcutIconBackground">#fff</color>
<color name="shortcutIconForeground">#000</color>

<!-- Clock -->
<color name="clockColor">#000000</color>
<color name="clockColor">#000</color>

<!-- Icons -->
<color name="icon_color">#000</color>
<color name="icon_background_color">#fff</color>

</resources>
11 changes: 8 additions & 3 deletions app/src/black/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
<color name="splashColor">#f1f1f1</color>

<!-- Shortcut Icons -->
<color name="shortcutIconBackground">#FFF</color>
<color name="shortcutIconForeground">#000000</color>
<color name="shortcutIconBackground">#fff</color>
<color name="shortcutIconForeground">#000</color>

<!-- Clock -->
<color name="clockColor">#000000</color>
<color name="clockColor">#000</color>

<!-- Icons -->
<color name="icon_color">#fff</color>
<color name="icon_background_color">#000</color>

</resources>
9 changes: 5 additions & 4 deletions app/src/dayNight/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
<color name="splashColor">#222222</color>

<!-- Shortcut Icons -->
<color name="shortcutIconBackground">#000000</color>
<color name="shortcutIconForeground">#FFF</color>
<color name="shortcutIconBackground">#000</color>
<color name="shortcutIconForeground">#fff</color>

<!-- Icons -->
<color name="icon_color">#FFFFFF</color>
<color name="icon_color">#fff</color>
<color name="icon_background_color">#000</color>

<!-- Clock -->
<color name="clockColor">#FFFFFF</color>
<color name="clockColor">#fff</color>
</resources>
7 changes: 4 additions & 3 deletions app/src/dayNight/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

<!-- Shortcut Icons -->
<color name="shortcutIconBackground">#FFF</color>
<color name="shortcutIconForeground">#000000</color>
<color name="shortcutIconForeground">#000</color>

<!-- Icons -->
<color name="icon_color">#000000</color>
<color name="icon_color">#000</color>
<color name="icon_background_color">#fff</color>

<!-- Clock -->
<color name="clockColor">#000000</color>
<color name="clockColor">#000</color>
</resources>
17 changes: 17 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,29 @@
tools:replace="android:icon"
tools:targetApi="n">

<meta-data
android:name="org.breezyweather.PROVIDER_CONFIG"
android:resource="@xml/breezy_icon_provider_config" />
<meta-data
android:name="org.breezyweather.DRAWABLE_FILTER"
android:resource="@xml/breezy_icon_provider_drawable_filter" />
<meta-data
android:name="org.breezyweather.ANIMATOR_FILTER"
android:resource="@xml/breezy_icon_provider_animator_filter" />
<meta-data
android:name="org.breezyweather.SHORTCUT_FILTER"
android:resource="@xml/breezy_icon_provider_shortcut_filter" />

<activity
android:name=".activities.MainActivity"
android:launchMode="singleTop"
android:theme="@style/Theme.App.Starting"
android:configChanges="uiMode|orientation|keyboardHidden|screenSize"
android:exported="true">
<intent-filter>
<action android:name="org.breezyweather.ICON_PROVIDER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
Expand Down
64 changes: 64 additions & 0 deletions app/src/main/res/drawable/shortcut_clear_day.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="192dp"
android:height="192dp"
android:viewportWidth="192"
android:viewportHeight="192">
<path
android:pathData="M96,96m-88,0a88,88 0,1 1,176 0a88,88 0,1 1,-176 0"
android:strokeWidth="0"
android:fillColor="@color/icon_background_color"/>
<path
android:pathData="M96,65.86c16.646,0 30.139,13.494 30.139,30.139s-13.494,30.139 -30.139,30.139 -30.139,-13.494 -30.139,-30.139 13.494,-30.139 30.139,-30.139Z"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M96,48L96,59.163"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M96,132.837L96,144"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M144,96L132.837,96"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M59.163,96L48,96"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M129.941,62.059L122.048,69.952"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M69.952,122.048L62.059,129.941"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M129.941,129.941L122.048,122.048"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M69.952,69.952L62.059,62.059"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
60 changes: 60 additions & 0 deletions app/src/main/res/drawable/shortcut_clear_day_f.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="768dp"
android:height="768dp"
android:viewportWidth="768"
android:viewportHeight="768">
<path
android:pathData="M384,303.628c44.388,0 80.372,35.984 80.372,80.372s-35.984,80.372 -80.372,80.372 -80.372,-35.984 -80.372,-80.372 35.984,-80.372 80.372,-80.372Z"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M384,256L384,285.767"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M384,482.233L384,512"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M512,384L482.233,384"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M285.767,384L256,384"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M474.51,293.49L453.461,314.539"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M314.539,453.461L293.49,474.51"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M474.51,474.51L453.461,453.461"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M314.539,314.539L293.49,293.49"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
16 changes: 16 additions & 0 deletions app/src/main/res/drawable/shortcut_clear_night.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="192dp"
android:height="192dp"
android:viewportWidth="192"
android:viewportHeight="192">
<path
android:pathData="M96,96m-88,0a88,88 0,1 1,176 0a88,88 0,1 1,-176 0"
android:strokeWidth="0"
android:fillColor="@color/icon_background_color"/>
<path
android:pathData="M103.803,48.334c7.091,7.097 11.477,16.897 11.477,27.722 0,21.662 -17.561,39.223 -39.223,39.223 -10.825,0 -20.625,-4.386 -27.722,-11.477 3.888,22.629 23.554,39.864 47.293,39.864 26.531,0 48.039,-21.508 48.039,-48.039 0,-23.738 -17.235,-43.405 -39.863,-47.293Z"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/shortcut_clear_night_f.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="768dp"
android:height="768dp"
android:viewportWidth="768"
android:viewportHeight="768">
<path
android:pathData="M404.843,256.668c18.942,18.958 30.658,45.138 30.658,74.055 0,57.867 -46.911,104.778 -104.778,104.778 -28.917,0 -55.097,-11.716 -74.055,-30.658 10.386,60.449 62.922,106.489 126.335,106.489 70.874,0 128.329,-57.455 128.329,-128.329 0,-63.413 -46.04,-115.949 -106.489,-126.335Z"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
34 changes: 34 additions & 0 deletions app/src/main/res/drawable/shortcut_cloudy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="192dp"
android:height="192dp"
android:viewportWidth="192"
android:viewportHeight="192">
<path
android:pathData="M96,96m-88,0a88,88 0,1 1,176 0a88,88 0,1 1,-176 0"
android:strokeWidth="0"
android:fillColor="@color/icon_background_color"/>
<path
android:pathData="M103.561,132.25c5.765,0 10.439,-4.674 10.439,-10.439s-4.674,-10.439 -10.439,-10.439c-0.984,0 -1.933,0.146 -2.835,0.4 0.063,-0.592 0.1,-1.191 0.1,-1.8 0,-9.241 -7.491,-16.732 -16.732,-16.732 -7.158,0 -13.249,4.503 -15.639,10.825 -0.413,-0.036 -0.828,-0.063 -1.25,-0.063 -7.801,0 -14.124,6.324 -14.124,14.124s6.324,14.124 14.124,14.124h36.357Z"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M106.256,83.352c-3.487,0 -6.314,-2.827 -6.314,-6.314s2.827,-6.314 6.314,-6.314c0.595,0 1.169,0.088 1.715,0.242 -0.038,-0.358 -0.06,-0.721 -0.06,-1.089 0,-5.589 4.531,-10.12 10.12,-10.12 4.329,0 8.013,2.724 9.459,6.547 0.25,-0.022 0.501,-0.038 0.756,-0.038 4.718,0 8.543,3.825 8.543,8.543s-3.825,8.543 -8.543,8.543h-21.989Z"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M57.936,107.473c-1.057,-2.179 -1.651,-4.623 -1.651,-7.198 0,-6.912 4.292,-12.811 10.346,-15.233 -0.462,-1.673 -0.726,-3.434 -0.726,-5.261 0,-11.05 8.959,-20.031 20.031,-20.031 7.969,0 14.858,4.667 18.072,11.403"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M116.247,83.347c3.192,2.289 5.283,6.009 5.283,10.236 0,2.135 -0.55,4.138 -1.475,5.877 2.003,-1.629 4.535,-2.598 7.308,-2.598 6.406,0 11.557,5.173 11.557,11.557s-5.151,11.557 -11.557,11.557h-13.516"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
30 changes: 30 additions & 0 deletions app/src/main/res/drawable/shortcut_cloudy_f.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="768dp"
android:height="768dp"
android:viewportWidth="768"
android:viewportHeight="768">
<path
android:pathData="M405.797,488.501c16.62,0 30.093,-13.473 30.093,-30.093s-13.473,-30.093 -30.093,-30.093c-2.837,0 -5.571,0.419 -8.174,1.153 0.183,-1.706 0.288,-3.434 0.288,-5.189 0,-26.639 -21.596,-48.235 -48.235,-48.235 -20.635,0 -38.194,12.982 -45.083,31.205 -1.189,-0.105 -2.387,-0.182 -3.604,-0.182 -22.487,0 -40.717,18.229 -40.717,40.717s18.229,40.717 40.717,40.717h104.808Z"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M413.564,347.539c-10.052,0 -18.201,-8.149 -18.201,-18.201s8.149,-18.201 18.201,-18.201c1.716,0 3.37,0.254 4.944,0.698 -0.11,-1.032 -0.174,-2.077 -0.174,-3.138 0,-16.112 13.062,-29.174 29.174,-29.174 12.481,0 23.101,7.852 27.267,18.873 0.719,-0.063 1.444,-0.11 2.18,-0.11 13.601,0 24.626,11.026 24.626,24.626s-11.026,24.626 -24.626,24.626h-63.39Z"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M274.271,417.073c-3.046,-6.282 -4.759,-13.326 -4.759,-20.75 0,-19.925 12.374,-36.932 29.825,-43.912 -1.333,-4.823 -2.094,-9.899 -2.094,-15.166 0,-31.855 25.827,-57.745 57.745,-57.745 22.971,0 42.833,13.453 52.098,32.87"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M442.367,347.525c9.201,6.6 15.23,17.324 15.23,29.507 0,6.155 -1.586,11.93 -4.252,16.943 5.775,-4.696 13.072,-7.488 21.068,-7.488 18.466,0 33.315,14.912 33.315,33.315s-14.849,33.315 -33.315,33.315h-38.962"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
34 changes: 34 additions & 0 deletions app/src/main/res/drawable/shortcut_fog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="192dp"
android:height="192dp"
android:viewportWidth="192"
android:viewportHeight="192">
<path
android:pathData="M96,96m-88,0a88,88 0,1 1,176 0a88,88 0,1 1,-176 0"
android:strokeWidth="0"
android:fillColor="@color/icon_background_color"/>
<path
android:pathData="M113.782,76.68h0.735c5.883,0 10.642,4.76 10.642,10.642 0,1.185 -0.245,2.308 -0.592,3.371h7.211c5.883,0 10.642,4.78 10.642,10.663s-4.76,10.642 -10.642,10.642h-8.314c0.674,1.41 1.083,2.962 1.083,4.637 0,5.883 -4.76,10.642 -10.642,10.642h-46.104c-5.883,0 -10.663,-4.76 -10.663,-10.642s4.78,-10.663 10.663,-10.663h8.314c-0.695,-1.41 -1.103,-2.962 -1.103,-4.616 0,-1.185 0.245,-2.308 0.592,-3.371h-15.361c-5.883,0 -10.663,-4.78 -10.663,-10.663s4.78,-10.642 10.663,-10.642h0.715"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M60.941,76.682c-0.052,-0.429 -0.08,-0.866 -0.08,-1.309 0,-5.883 4.769,-10.651 10.651,-10.651h31.719c5.883,0 10.651,4.769 10.651,10.651 0,0.443 -0.027,0.88 -0.08,1.309 -0.645,5.265 -5.133,9.342 -10.572,9.342"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M75.607,97.984L95.475,97.984"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M123.454,112.002L99.942,112.002"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
30 changes: 30 additions & 0 deletions app/src/main/res/drawable/shortcut_fog_f.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="768dp"
android:height="768dp"
android:viewportWidth="768"
android:viewportHeight="768">
<path
android:pathData="M437.756,325.595h2.223c17.785,0 32.173,14.388 32.173,32.173 0,3.582 -0.741,6.978 -1.791,10.189h21.799c17.785,0 32.173,14.45 32.173,32.235s-14.388,32.173 -32.173,32.173h-25.133c2.038,4.261 3.273,8.954 3.273,14.018 0,17.785 -14.388,32.173 -32.173,32.173h-139.376c-17.785,0 -32.235,-14.388 -32.235,-32.173s14.45,-32.235 32.235,-32.235h25.133c-2.1,-4.261 -3.335,-8.954 -3.335,-13.956 0,-3.582 0.741,-6.978 1.791,-10.189h-46.438c-17.785,0 -32.235,-14.45 -32.235,-32.235s14.45,-32.173 32.235,-32.173h2.161"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M278.015,325.6c-0.159,-1.296 -0.241,-2.617 -0.241,-3.956 0,-17.784 14.417,-32.2 32.2,-32.2h95.89c17.784,0 32.2,14.417 32.2,32.2 0,1.34 -0.082,2.661 -0.241,3.959 -1.951,15.916 -15.516,28.242 -31.959,28.242"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M322.35,389.997L382.412,389.997"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
<path
android:pathData="M466.997,432.375L395.917,432.375"
android:strokeLineJoin="round"
android:strokeWidth="5"
android:strokeColor="@color/icon_color"
android:strokeLineCap="round"/>
</vector>
Loading

0 comments on commit eb55c19

Please sign in to comment.