Skip to content

Commit

Permalink
updatw widget BG color
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Nov 18, 2023
1 parent 89d1b37 commit 7761060
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Expand Up @@ -102,6 +102,13 @@ private PendingIntent getPendingIntent(Context context, int REQ_CODE) {
}

private void updateQuoteWidget(Context context, Quote quote) {

// quote = new Quote(
// "In the depth of winter, I finally learned that there was within me an invincible
// summer",
// "Albert Camus"
// );

RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.quote_widget);

remoteViews.setImageViewBitmap(
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/widget_background.xml
Expand Up @@ -7,6 +7,6 @@
android:topLeftRadius="24dp"
android:topRightRadius="24dp" />

<solid android:color="@color/BGColor" />
<solid android:color="@color/widgetBGColor" />

</shape>
1 change: 1 addition & 0 deletions app/src/main/res/values-night/colors.xml
Expand Up @@ -20,6 +20,7 @@

<color name="sliderIconColor">@color/BGColor</color>

<color name="widgetBGColor">@color/BGColor</color>
<color name="widgetTextColor">@color/textColorLight</color>

</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Expand Up @@ -25,6 +25,7 @@

<color name="sliderIconColor">#DCDCDC</color>

<color name="widgetBGColor">@color/sliderIconColor</color>
<color name="widgetTextColor">@color/textColor</color>


Expand Down

0 comments on commit 7761060

Please sign in to comment.