diff --git a/res/drawable/button_drawable.xml b/res/drawable/button_drawable.xml
new file mode 100644
index 0000000000000000000000000000000000000000..49032fe1248db2c7c1b3a74bac4de9e0bf7b0ab0
--- /dev/null
+++ b/res/drawable/button_drawable.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/res/drawable/ic_account_circle.xml b/res/drawable/ic_account_circle.xml
index c85bb90b16a989dc1598ff66a860cad15dc30a28..7b55736ff7489d5de406bf7241ec69779e98af48 100644
--- a/res/drawable/ic_account_circle.xml
+++ b/res/drawable/ic_account_circle.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_add.xml b/res/drawable/ic_add.xml
index fe7c5414eafc724f16145ad2b4c10cdbc399ea80..9c6a2abe17dc413521232bbc5c5083019a5acb61 100644
--- a/res/drawable/ic_add.xml
+++ b/res/drawable/ic_add.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_arrow_back.xml b/res/drawable/ic_arrow_back.xml
index 65eedbc3c9e3fe3b8fabf8967c0bdd66ff19f988..afa5b58fa7beef8e5b7fc097a644f20a07b61da5 100644
--- a/res/drawable/ic_arrow_back.xml
+++ b/res/drawable/ic_arrow_back.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_baseline_calendar_dayofmonth.xml b/res/drawable/ic_baseline_calendar_dayofmonth.xml
index fd08d39ef8f0d2672b0ad01333851356250869dd..f750846400312afa3863564987623776dd9f9129 100644
--- a/res/drawable/ic_baseline_calendar_dayofmonth.xml
+++ b/res/drawable/ic_baseline_calendar_dayofmonth.xml
@@ -1,5 +1,5 @@
-
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
diff --git a/res/drawable/ic_colorpicker.xml b/res/drawable/ic_colorpicker.xml
index 56097317ff7ada413d81a00be2e4568a88f265fb..418be80e85677c5aa116a8ca563b1e62f8615308 100644
--- a/res/drawable/ic_colorpicker.xml
+++ b/res/drawable/ic_colorpicker.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_create.xml b/res/drawable/ic_create.xml
index 7edd0d24b48486acc17dcbcfa422f673a4ded417..ea1dc07dc6653d3b5161699f6459b0b46a1bef3e 100644
--- a/res/drawable/ic_create.xml
+++ b/res/drawable/ic_create.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_delete_event.xml b/res/drawable/ic_delete_event.xml
index 0f54fac45963866bc4d2fecbab8b0dceb5f79cab..fadc29db299c21cc9f25ecd7a0fac7f77c39154e 100644
--- a/res/drawable/ic_delete_event.xml
+++ b/res/drawable/ic_delete_event.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_description.xml b/res/drawable/ic_description.xml
index 9a8032321896234b6d1248420c87cc93e0f0a278..3b3cfc6cb3bd07678b863810770cbf45544c83b2 100644
--- a/res/drawable/ic_description.xml
+++ b/res/drawable/ic_description.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_edit_event.xml b/res/drawable/ic_edit_event.xml
index bd6c5ea4bb00b49d2f9ef63c0fd3fc8b5d092511..db28c372a0d53d915bba894de8c2b568d0f5d839 100644
--- a/res/drawable/ic_edit_event.xml
+++ b/res/drawable/ic_edit_event.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_info_outline.xml b/res/drawable/ic_info_outline.xml
index 8f6eec51634b52df0d5f9d6c007f50cfe128dd1c..2c8666e91e27137d833b3353b4d73933a90734d6 100755
--- a/res/drawable/ic_info_outline.xml
+++ b/res/drawable/ic_info_outline.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_menu_cancel.xml b/res/drawable/ic_menu_cancel.xml
index 2f0d622a041244817dbae8660da04030477d1e4b..8099e3af98d2fe93d9e01cdb94b8822245c3e9d9 100644
--- a/res/drawable/ic_menu_cancel.xml
+++ b/res/drawable/ic_menu_cancel.xml
@@ -1,5 +1,5 @@
-
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
diff --git a/res/drawable/ic_menu_navigator.xml b/res/drawable/ic_menu_navigator.xml
index ddd88a311141dc7e01912c22439580a0dc5e62d1..f10a32f12aa5ab119318ea28cc69e103989b665f 100644
--- a/res/drawable/ic_menu_navigator.xml
+++ b/res/drawable/ic_menu_navigator.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_save_event.xml b/res/drawable/ic_save_event.xml
index cd15e02015b76acd89f3533629aa9125c322e6c3..361fc0d661a30413cfa86ab7c7fe7059410370db 100644
--- a/res/drawable/ic_save_event.xml
+++ b/res/drawable/ic_save_event.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_settings.xml b/res/drawable/ic_settings.xml
index fc42a77b06f0d17b3b530021c5f14de1a2e5d583..5d99a5a67b17be1968986db4f89b712d85d8fd12 100644
--- a/res/drawable/ic_settings.xml
+++ b/res/drawable/ic_settings.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/ic_share_event.xml b/res/drawable/ic_share_event.xml
index 254cfc0aee5d90160869fcb09536432c0bf88c6c..f2777172d8241f82a9a7a670c3fce017c1437260 100644
--- a/res/drawable/ic_share_event.xml
+++ b/res/drawable/ic_share_event.xml
@@ -1,4 +1,4 @@
-
diff --git a/res/drawable/menu_selector.xml b/res/drawable/menu_selector.xml
index 97aecb03f9d92098a5677485d2d05fc615c7788e..1f421e802e9d1e9a49b4ad362dfd19125ef86f48 100644
--- a/res/drawable/menu_selector.xml
+++ b/res/drawable/menu_selector.xml
@@ -1,5 +1,5 @@
-
+
\ No newline at end of file
diff --git a/res/drawable/today_icon.xml b/res/drawable/today_icon.xml
index 87b7d69f10b7016563b3e8773a590aa53aa4a259..dc982f307e91cc6cc6d7e1a806fb6344e47204d6 100644
--- a/res/drawable/today_icon.xml
+++ b/res/drawable/today_icon.xml
@@ -18,11 +18,9 @@
+ android:gravity="center"/>
+ android:gravity="center" />
diff --git a/res/layout-sw600dp/agenda_day.xml b/res/layout-sw600dp/agenda_day.xml
index 3603c6732d339dd1a9cddcf5ec962fe9063dc97a..9fb78b4eb0291033ff647436b22297f01f68f509 100644
--- a/res/layout-sw600dp/agenda_day.xml
+++ b/res/layout-sw600dp/agenda_day.xml
@@ -16,7 +16,7 @@
+ app:titleTextColor="@color/appbar_text_color"
+ app:subtitleTextColor="@color/appbar_text_color"
+ android:theme="@style/Widget.CalendarAppTheme.ActionBar"/>
@@ -52,6 +56,7 @@
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
+ android:background="@color/navigation_drawer_color"
app:menu="@menu/calendar_view"
app:itemTextColor="@drawable/menu_selector"
app:itemIconTint="@drawable/menu_selector"
diff --git a/res/layout/app_bar.xml b/res/layout/app_bar.xml
index 9c3eb315ce252894cb1e1cdbb6908ef4582142b1..2ef7f617785f3d6af4bd46f17a1199d508cfdd3f 100644
--- a/res/layout/app_bar.xml
+++ b/res/layout/app_bar.xml
@@ -4,9 +4,10 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
style="@style/Widget.CalendarAppTheme.ActionBar"
+ android:elevation="4dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
- app:titleTextColor="@color/color_default_primary_text"
+ app:titleTextColor="@color/appbar_text_color"
app:theme="@style/Widget.CalendarAppTheme.ActionBar"
app:titleTextAppearance="?attr/settings_titleText"/>
diff --git a/res/layout/edit_event_all.xml b/res/layout/edit_event_all.xml
index 57813d16c468a55e43d0ab977b183dabdbb98529..f26e71fae806a4ceeb36209063c45dad9bda0174 100644
--- a/res/layout/edit_event_all.xml
+++ b/res/layout/edit_event_all.xml
@@ -46,23 +46,28 @@
app:constraint_referenced_ids="timezone_icon,timezone_button" />
-
+ android:paddingTop="10dp">
+
+
+
+ app:layout_constraintTop_toBottomOf="@+id/title_row" />
-
-
-
-
-
-
+ android:layout_height="?attr/actionBarSize">
+
+
-
-
-
-
+
+
diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml
index b14414d392fbb78c17f94e296f4644fb2ac70ff9..ff5ebb4bdfa55b5719cc0f2d46097a3c966a7d84 100644
--- a/res/values-night/colors.xml
+++ b/res/values-night/colors.xml
@@ -1,4 +1,16 @@
- #808080
+ #2e2e2e
+ #5db2ff
+ #121212
+ #1fffffff
+ #1fffffff
+ #bdffffff
+ #deffffff
+ #2e2e2e
+ #1fffffff
+ #2e2e2e
+ #363636
+ #de000000
+ #99ffffff
\ No newline at end of file
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 722227bfe1c4f58822f9e47427ffefaa83f8b072..cb575c4813fb7b2b0ae4eb0239ebaf20d44a2f17 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -19,19 +19,24 @@
-->
- @lineageos.platform:color/color_default_primary
+ #ffffff
@lineageos.platform:color/color_default_primary_dark
- @lineageos.platform:color/color_default_accent
+ #0086ff
@color/colorAccent
@lineageos.platform:color/color_default_primary_text
@lineageos.platform:color/color_default_secondary_text
@lineageos.platform:color/color_default_view_on_accent
- @lineageos.platform:color/color_default_selector
+ #145db2ff
@lineageos.platform:color/color_default_gray2
- @lineageos.platform:color/color_default_foreground
- @lineageos.platform:color/color_default_foreground2
+ #ffffff
+ #eeeeee
+ #99000000
+ #de000000
+ #99000000
- #fafafa
+ #ffffff
+
+ #f0f0f0
@color/date_strip_bg
#f1922d
#b36f28
@@ -58,7 +63,7 @@
#0033b5e5
- @lineageos.platform:color/color_default_background
+ @color/colorPrimary
@lineageos.platform:color/color_default_foreground
#ffc3d9ff
@color/foreground_color
@@ -82,8 +87,8 @@
@color/colorAccent
- #FFCCCCCC
- #FFCCCCCC
+ #14212121
+ #14212121
#ff707070
@color/background_color
@@ -101,7 +106,7 @@
#4C999999
@color/color_gray2
@color/color_gray2
- #ffdedede
+ #14212121
@color/color_default_secondary_text
@@ -115,7 +120,7 @@
@color/color_default_secondary_text
@color/colorAccent
- @lineageos.platform:color/color_default_divider
+ @android:color/transparent
@color/background_color
#000000
@@ -132,7 +137,7 @@
@color/color_default_primary_text
- @color/colorPrimaryDark
+ @color/color_non_focus_item_bg
#FFDDDDDD
@@ -150,7 +155,7 @@
@color/color_default_secondary_text
- #FFBBBBBB
+ @android:color/transparent
@color/colorAccent
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 490a6f7f1271c81450ecd3b7fa712669764b66e0..1a2d523159da0e777868a2e36de23379fa189a93 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -56,4 +56,11 @@
300dp
16dp
+ 13dp
+ 15dp
+ 12dp
+ 5dp
+ 7dp
+ 5dp
+ 3dp
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 6e808c74a768d25088b087e4375019ad84234703..d7f670e612f143988cfe0f61fd8e3f91af83fef7 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -77,14 +77,9 @@
-
-
diff --git a/src/com/android/calendar/DayOfMonthDrawable.java b/src/com/android/calendar/DayOfMonthDrawable.java
index ab0bf18b2725a45158915d2f7420fc210b2516cf..7f6c843fd9b9ab8b00de30bcbe01cb92e2f7ed9c 100644
--- a/src/com/android/calendar/DayOfMonthDrawable.java
+++ b/src/com/android/calendar/DayOfMonthDrawable.java
@@ -44,7 +44,7 @@ public class DayOfMonthDrawable extends Drawable {
mTextSize = c.getResources().getDimension(R.dimen.today_icon_text_size);
mPaint = new Paint();
mPaint.setAlpha(255);
- mPaint.setColor(c.getResources().getColor(R.color.colorAccent));
+ mPaint.setColor(c.getResources().getColor(R.color.appbar_icon_color));
mPaint.setTypeface(Typeface.DEFAULT_BOLD);
mPaint.setTextSize(mTextSize);
mPaint.setTextAlign(Paint.Align.CENTER);
diff --git a/src/com/android/calendar/month/MonthWeekEventsView.java b/src/com/android/calendar/month/MonthWeekEventsView.java
index 7d028175b2864c3e4e2cd7123fcaefc682048076..c48b962ed9ed2e53d3d0c3501cb25703c03c2aa2 100644
--- a/src/com/android/calendar/month/MonthWeekEventsView.java
+++ b/src/com/android/calendar/month/MonthWeekEventsView.java
@@ -28,6 +28,7 @@ import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Paint.Style;
+import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.provider.CalendarContract.Attendees;
@@ -564,14 +565,6 @@ public class MonthWeekEventsView extends SimpleWeekView {
canvas.drawRect(r, p);
}
if (mHasToday) {
- int selectedColor = ContextCompat.getColor(mContext, DynamicTheme.getColorId(DynamicTheme.getPrimaryColor(mContext)));
-
- if (Utils.getSharedPreference(mContext, "pref_theme", "light").equals("light")) {
- p.setColor(selectedColor);
- p.setAlpha(72);
- } else {
- p.setColor(mMonthBGTodayColor);
- }
r.left = computeDayLeftPosition(mTodayIndex);
r.right = computeDayLeftPosition(mTodayIndex + 1);
canvas.drawRect(r, p);
@@ -624,21 +617,42 @@ public class MonthWeekEventsView extends SimpleWeekView {
Time time = new Time(mTimeZone);
time.setJulianDay(julianMonday);
+ int current_date_text_x=getResources().getDimensionPixelSize(R.dimen.current_date_text_x);
+ int current_date_text_y=getResources().getDimensionPixelSize(R.dimen.current_date_text_y);
+ int current_date_event_margin=getResources().getDimensionPixelSize(R.dimen.current_date_text_event_margin);
+
for (; i < numCount; i++) {
+ x = computeDayLeftPosition(i - offset) - (mSidePaddingMonthNumber);
if (mHasToday && todayIndex == i) {
- mMonthNumPaint.setColor(mMonthNumTodayColor);
- mMonthNumPaint.setFakeBoldText(isBold = true);
+ mMonthNumPaint.setFakeBoldText(isBold = false);
if (i + 1 < numCount) {
// Make sure the color will be set back on the next
// iteration
isFocusMonth = !mFocusDay[i + 1];
}
+ mMonthNumPaint.setColor(getContext().getResources().getColor(R.color.color_default_blue1));
+ int current_date_bg_size=getResources().getDimensionPixelSize(R.dimen.current_date_bg_size);
+
+ //check text width & height to calculate circle cx and cy values
+ Rect bounds = new Rect();
+ mMonthNumPaint.getTextBounds(mDayNumbers[i], 0, mDayNumbers[i].length(), bounds);
+
+ int text_height = bounds.height();
+ int text_width = bounds.width();
+
+ canvas.drawCircle(x - current_date_text_x - (text_width / 2),
+ y + current_date_text_y - (text_height / 2) - current_date_event_margin,
+ current_date_bg_size, mMonthNumPaint);
+ mMonthNumPaint.setColor(mMonthNumTodayColor);
} else if (mFocusDay[i] != isFocusMonth) {
isFocusMonth = mFocusDay[i];
mMonthNumPaint.setColor(isFocusMonth ? mMonthNumColor : mMonthNumOtherColor);
}
- x = computeDayLeftPosition(i - offset) - (mSidePaddingMonthNumber);
- canvas.drawText(mDayNumbers[i], x, y, mMonthNumPaint);
+ double relation = Math.sqrt(canvas.getWidth() * canvas.getHeight());
+ mMonthNumPaint.setTextSize((int)relation / 12);
+
+ canvas.drawText(mDayNumbers[i], x-current_date_text_x,
+ y+current_date_text_y - current_date_event_margin, mMonthNumPaint);
if (isBold) {
mMonthNumPaint.setFakeBoldText(isBold = false);
}