From 77610601a8523111f1f0f4202758edc7491e08c4 Mon Sep 17 00:00:00 2001 From: VishnuSanal Date: Sat, 18 Nov 2023 18:13:02 +0530 Subject: [PATCH] updatw widget BG color --- .../java/phone/vishnu/quotes/receiver/QuoteWidget.java | 7 +++++++ app/src/main/res/drawable/widget_background.xml | 2 +- app/src/main/res/values-night/colors.xml | 1 + app/src/main/res/values/colors.xml | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/phone/vishnu/quotes/receiver/QuoteWidget.java b/app/src/main/java/phone/vishnu/quotes/receiver/QuoteWidget.java index d4cd83f..8fffb99 100644 --- a/app/src/main/java/phone/vishnu/quotes/receiver/QuoteWidget.java +++ b/app/src/main/java/phone/vishnu/quotes/receiver/QuoteWidget.java @@ -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( diff --git a/app/src/main/res/drawable/widget_background.xml b/app/src/main/res/drawable/widget_background.xml index 9156f90..aa6636e 100644 --- a/app/src/main/res/drawable/widget_background.xml +++ b/app/src/main/res/drawable/widget_background.xml @@ -7,6 +7,6 @@ android:topLeftRadius="24dp" android:topRightRadius="24dp" /> - + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 6b216bf..db3d1a9 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -20,6 +20,7 @@ @color/BGColor + @color/BGColor @color/textColorLight diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 87702cb..9205438 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -25,6 +25,7 @@ #DCDCDC + @color/sliderIconColor @color/textColor